joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476301
Capabilities:
Decrypt data using aes via x86 extensions
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x184], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x1c], edi
test dl, 0xf
je 0x476366
lea eax, [esp + 0x80]
mov esi, edx
neg eax
lea ecx, [esp + 0x80]
and eax, 0xf
add eax, ecx
push 0x3d
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
jmp 0x476368
mov eax, edx
movdqa xmm0, xmmword [eax + 0x50]
mov edx, dword [ebp + 0x10]
movdqa xmm3, xmmword [eax]
movdqa xmm4, xmmword [eax + 0x10]
movdqa xmm5, xmmword [eax + 0x20]
movdqa xmm6, xmmword [eax + 0x30]
movdqa xmm7, xmmword [eax + 0x40]
movdqu xmm2, xmmword [ecx]
sar edx, 4
movdqa xmmword [esp + 0x70], xmm0
movdqa xmm0, xmmword [eax + 0x60]
movdqa xmmword [esp + 0x20], xmm0
movdqa xmm0, xmmword [eax + 0x70]
movdqa xmmword [esp + 0x50], xmm0
movdqa xmm0, xmmword [eax + 0x80]
movdqa xmmword [esp + 0x30], xmm0
movdqa xmm0, xmmword [eax + 0x90]
movdqa xmmword [esp + 0x40], xmm0
movdqa xmm0, xmmword [eax + 0xa0]
movdqa xmmword [esp + 0x60], xmm0
test edx, edx
jle 0x476438
sub edi, esi
movdqu xmm1, xmmword [esi]
movdqa xmm0, xmm1
pxor xmm0, xmm3
aesdec xmm0, xmm4
aesdec xmm0, xmm5
aesdec xmm0, xmm6
aesdec xmm0, xmm7
aesdec xmm0, xmmword [esp + 0x70]
aesdec xmm0, xmmword [esp + 0x20]
aesdec xmm0, xmmword [esp + 0x50]
aesdec xmm0, xmmword [esp + 0x30]
aesdec xmm0, xmmword [esp + 0x40]
aesdeclast xmm0, xmmword [esp + 0x60]
pxor xmm0, xmm2
movdqa xmm2, xmm1
movdqu xmmword [edi + esi], xmm0
lea esi, [esi + 0x10]
dec edx
jne 0x4763db
movdqu xmmword [ecx], xmm2
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
xor ecx, esp
call fcn.004b9a6c
mov esp, ebp
pop ebp
ret

Function at 0x476fff
Capabilities:
Clear file content

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
xor ebp, ebp
mov eax, dword [ebx + 0x24]
test eax, eax
jle 0x47703c
push esi
cdq
push edi
mov edi, eax
mov esi, edx
mov ecx, edi
mov eax, esi
add ecx, dword [esp + 0x18]
push esi
adc eax, dword [esp + 0x20]
sub ecx, 1
push edi
sbb eax, ebp
push eax
push ecx
call fcn.004c04b0
push esi
push edi
push edx
push eax
call fcn.004c0e50
pop edi
pop esi
jmp 0x477044
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push ebx
call fcn.0049169d
add esp, 0xc
test eax, eax
je 0x477062
push 0x802d
push dword [ebx + 0x20]
push str.winTruncate1
jmp 0x477085
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x477094
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x8030
push dword [ebx + 0x20]
mov dword [ebx + 0x14], eax
push str.winTruncate2
push 0x60a
call fcn.004b704d
mov ebp, eax
add esp, 0x10
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x477317
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47735d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x47735d
push 0x808c
push dword [esi + 0x20]
mov dword [esi + 0x14], eax
push str.winFileSize
push 0x70a
call fcn.004b704d
add esp, 0x10
jmp 0x477371
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, edi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x478bd4
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 0xc]
call fcn.004849ad
mov esi, eax
pop ecx
test esi, esi
jne 0x478bf4
push 7
pop eax
jmp 0x478c8f
push ebx
push edi
call fcn.0048a55b
xor edi, edi
inc edi
test eax, eax
je 0x478c2b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x478c52
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x478c52
lea eax, [ebp - 4]
push eax
call fcn.0049124a
pop ecx
test eax, eax
jne 0x478c02
jmp 0x478c52
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x478c52
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, eax
test edi, edi
jne 0x478c52
lea eax, [ebp - 4]
push eax
call fcn.0049124a
pop ecx
test eax, eax
jne 0x478c2b
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x478c7b
push 0x85f9
push dword [ebp + 0xc]
push str.winDelete
push 0xa0a
call fcn.004b704d
add esp, 0x10
mov ebx, eax
jmp 0x478c84
push dword [ebp - 4]
call fcn.0048af45
pop ecx
push esi
call fcn.004bbb16
pop ecx
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x489553
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x518450]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0xa0]
lea ecx, [ebp - 0x78]
push esi
push edi
push ecx
push 0x104
push eax
push dword [ebp + 0x9c]
mov edi, 0x200
mov dword [ebp - 0x80], edi
call fcn.0047c247
add esp, 0x10
test eax, eax
jne 0x489623
lea eax, [ebp - 0x78]
push eax
call fcn.004849ad
mov esi, eax
pop ecx
test esi, esi
je 0x489626
push ebx
call fcn.0048a55b
test eax, eax
mov eax, esi
je 0x4895ec
xor ecx, ecx
cmp word [esi], cx
je 0x4895d6
cmp word [eax], 0x5c
je 0x4895d1
add eax, 2
cmp word [eax], cx
jne 0x4895c1
jmp 0x4895d6
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x7c]
push eax
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x489615
cmp byte [esi], 0
je 0x489601
cmp byte [eax], 0x5c
je 0x4895fe
inc eax
cmp byte [eax], 0
jne 0x4895f1
jmp 0x489601
mov byte [eax], 0
lea eax, [ebp - 0x7c]
push eax
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov ebx, eax
call fcn.004bbb16
pop ecx
test ebx, ebx
pop ebx
je 0x489626
mov edi, dword [ebp - 0x80]
mov ecx, dword [ebp + 0x90]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004b9a6c
lea esp, [ebp + 0x94]
pop ebp
ret
Function at 0x48963f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x518450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5295d0]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test eax, eax
je 0x48967d
push eax
push 0x4e6420
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call fcn.0047ba30
add esp, 0x10
jmp 0x4896f8
call fcn.0048a55b
mov esi, 0xe6
test eax, eax
je 0x4896c0
lea eax, [ebp - 0x314]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x314]
push eax
call fcn.004b43b8
mov edi, eax
pop ecx
test edi, edi
jne 0x4896dc
push 7
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b9a6c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x210]
push eax
call fcn.004b39fb
jmp 0x4896a5
push edi
push 0x4e6420
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.0047ba30
push edi
call fcn.004bbb16
add esp, 0x14
push str.etilqs_
call fcn.004a7151
mov edx, eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004a7151
add edx, 0x11
add eax, edx
mov edx, dword [ebp + 8]
pop ecx
pop ecx
cmp eax, edx
jl 0x489723
xor eax, eax
inc eax
jmp 0x4896af
lea eax, [ebp - 0x10c]
push eax
call fcn.004a7151
pop ecx
test eax, eax
je 0x489744
lea ecx, [ebp - 0x10c]
cmp byte [ecx + eax - 1], 0x5c
jne 0x489744
dec eax
jne 0x48973a
cmp eax, 0x105
jae 0x4897a4
mov byte [ebp + eax - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
push str._setilqs_
lea eax, [edx - 0x11]
push ebx
push eax
call fcn.0047ba30
push ebx
call fcn.004a7151
mov esi, eax
lea ecx, [ebx + esi]
push ecx
push 0xf
pop edi
push edi
call fcn.0047bce2
add esp, 0x1c
movzx eax, byte [ebx + esi]
xor edx, edx
push 0x3e
pop ecx
div ecx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [ebx + esi], al
inc esi
dec edi
jne 0x489781
mov byte [ebx + esi], 0
xor eax, eax
jmp 0x4896af
call fcn.004ba3a5
int3
Function at 0x48e400
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x3c]
cmp dword [eax], 0
jne 0x48e42f
push dword [ebx + 0x78]
push eax
push ebx
call fcn.0048d0d1
add esp, 0xc
mov dword [esp + 4], eax
test eax, eax
jne 0x48e51b
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x48e469
mov eax, dword [ebx + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.004c0e50
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0xc], edx
lea edx, [esp + 8]
push edx
push 5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
test ebp, ebp
je 0x48e518
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x14], esi
cmp esi, dword [ebx + 0x18]
ja 0x48e50d
test byte [ebp + 0x14], 0x20
jne 0x48e50d
mov eax, dword [ebx + 0x80]
lea ecx, [esi - 1]
cdq
push edx
push eax
push 0
push ecx
call fcn.004c0e50
mov dword [esp + 0x20], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
cmp esi, 1
jne 0x48e4c4
push ebp
call fcn.0048e3bd
mov eax, dword [esp + 0x24]
pop ecx
mov ecx, dword [esp + 0x10]
mov edi, dword [ebp]
push ecx
push eax
push dword [ebx + 0x80]
push edi
push dword [ebx + 0x3c]
call fcn.004a0167
add esp, 0x14
mov dword [esp + 0x10], eax
cmp esi, 1
jne 0x48e4f2
lea esi, [edi + 0x18]
lea edi, [ebx + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
cmp esi, dword [ebx + 0x20]
jbe 0x48e4fa
mov dword [ebx + 0x20], esi
push dword [ebp]
push esi
push dword [ebx + 0x58]
call fcn.00493f95
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [ebp + 8]
test eax, eax
je 0x48e474
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x49bbdb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, dword [esi + 0x200]
and dword [esi + 0x200], 0
cmp dword [esi + 0x40], 0
mov ebx, dword [esi]
jne 0x49bd7d
test edi, edi
je 0x49bd7d
push dword [edi + 0x14]
mov eax, dword [edi]
push ebx
mov dword [esp + 0x1c], eax
call fcn.004a4ffd
mov ebp, dword [esp + 0x44]
mov edx, eax
pop ecx
pop ecx
mov dword [esp + 0x10], edx
mov dword [edi + 0x1c], ebp
jmp 0x49bc2d
mov dword [ebp + 4], edi
mov ebp, dword [ebp + 0x20]
test ebp, ebp
jne 0x49bc27
mov eax, dword [edi]
push eax
mov dword [esp + 0x20], eax
call fcn.004a7151
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push str.trigger
push edx
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0049be2a
add esp, 0x18
test eax, eax
je 0x49bc75
push dword [edi + 0x1c]
lea eax, [esp + 0x28]
push eax
call fcn.0049bf5b
pop ecx
pop ecx
test eax, eax
jne 0x49bd81
cmp byte [ebx + 0x7c], 0
jne 0x49bd1d
push esi
call fcn.0049d9c4
mov dword [esp + 0x1c], eax
pop ecx
test eax, eax
je 0x49bd81
push dword [esp + 0x10]
push 0
push esi
call fcn.00494412
mov eax, dword [esp + 0x4c]
push dword [eax + 4]
push dword [eax]
push ebx
call fcn.00498461
mov ecx, dword [esp + 0x28]
mov esi, eax
push esi
push dword [edi + 4]
cmp ecx, 1
mov edx, str.sqlite_master
push dword [esp + 0x34]
mov eax, str.sqlite_temp_master
cmovne eax, edx
add ecx, ecx
push eax
mov eax, dword [ebx + 8]
push dword [eax + ecx*8]
push str.INSERT_INTO__Q._s_VALUES_trigger__Q__Q_0_CREATE_TRIGGER__q_
push dword [esp + 0x68]
call fcn.0049fd90
push esi
push ebx
call fcn.00498232
mov esi, dword [esp + 0x4c]
push esi
push dword [esp + 0x78]
call fcn.004968c4
add esp, 0x44
push dword [esp + 0x14]
push str.typetrigger_AND_name_q
push ebx
call fcn.0049f6a7
push eax
push esi
push dword [esp + 0x2c]
call fcn.004a9569
add esp, 0x18
cmp byte [ebx + 0x7c], 0
je 0x49bd81
mov ecx, dword [esp + 0x10]
mov esi, edi
mov eax, dword [ebx + 8]
add ecx, ecx
push edi
mov edi, dword [esp + 0x18]
push edi
mov edx, dword [eax + ecx*8 + 0xc]
add edx, 0x28
call fcn.004a7151
pop ecx
push eax
push edi
push edx
call fcn.0049daaf
mov edi, eax
add esp, 0x10
test edi, edi
je 0x49bd52
mov byte [ebx + 0x1e], 1
jmp 0x49bd81
mov edx, dword [esi + 0x18]
cmp dword [esi + 0x14], edx
jne 0x49bd81
push dword [esi + 4]
call fcn.004a7151
push eax
push dword [esi + 4]
lea eax, [edx + 8]
push eax
call fcn.0049da6e
add esp, 0x10
mov ecx, dword [eax + 0x40]
mov dword [esi + 0x20], ecx
mov dword [eax + 0x40], esi
jmp 0x49bd81
mov ebp, dword [esp + 0x3c]
push edi
push ebx
call fcn.00498a41
push ebp
push ebx
call fcn.00498a88
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x4b3d91
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
jle 0x4b3dbc
push ebx
mov ebx, dword [esp + 0x10]
movzx eax, byte [ebx]
mov ecx, edi
shl ecx, 3
movzx edx, byte [eax + 0x4e2658]
xor edx, ecx
xor edi, edx
inc ebx
dec esi
test esi, esi
jg 0x4b3da2
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x4bc7f4
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.004c957c
jmp 0x4bc7fe
push 0x10
push 0x4f4f70
call fcn.004c0a40
call fcn.004c315a
movzx esi, ax
push 2
call fcn.004c9536
pop ecx
call fcn.004c7dd1
test eax, eax
jne 0x4bc82b
push 0x1c
call fcn.004bc8e0
pop ecx
call fcn.004c7c96
test eax, eax
jne 0x4bc83c
push 0x10
call fcn.004bc8e0
pop ecx
call fcn.004c9618
and dword [ebp - 4], 0
call fcn.004c8db1
test eax, eax
jns 0x4bc856
push 0x1b
call fcn.004bc8e0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x52bd78], eax
call fcn.004c9658
mov dword [0x529ea8], eax
call fcn.004c91ff
test eax, eax
jns 0x4bc87c
push 8
call fcn.004c16a4
pop ecx
call fcn.004c943f
test eax, eax
jns 0x4bc88d
push 9
call fcn.004c16a4
pop ecx
push 1
call fcn.004c16be
pop ecx
test eax, eax
je 0x4bc8a0
push eax
call fcn.004c16a4
pop ecx
call fcn.004c96dd
push esi
push eax
push 0
push 0x400000
call main
mov dword [ebp - 0x20], eax
push eax
call fcn.004c191f
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call fcn.004c90a8
pop ecx
pop ecx
ret
Function at 0x4c63f1
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
jne 0x4c640f
call fcn.004c302f
mov dword [eax], 0x16
call fcn.004c467e
jmp 0x4c650b
mov eax, dword [edi + 0xc]
test al, 0x83
je 0x4c650b
test al, 0x40
jne 0x4c650b
test al, 2
je 0x4c6431
or eax, 0x20
mov dword [edi + 0xc], eax
jmp 0x4c650b
or eax, 1
mov dword [edi + 0xc], eax
test eax, 0x10c
jne 0x4c6447
push edi
call fcn.004cd7da
pop ecx
jmp 0x4c644c
mov eax, dword [edi + 8]
mov dword [edi], eax
push dword [edi + 0x18]
push dword [edi + 8]
push edi
call fcn.004bf4a4
pop ecx
push eax
call fcn.004c6510
add esp, 0xc
mov dword [edi + 4], eax
test eax, eax
je 0x4c64f9
cmp eax, 0xffffffff
je 0x4c64f9
test byte [edi + 0xc], 0x82
jne 0x4c64cd
push edi
call fcn.004bf4a4
pop ecx
cmp eax, 0xffffffff
je 0x4c64b8
push edi
call fcn.004bf4a4
pop ecx
cmp eax, 0xfffffffe
je 0x4c64b8
push esi
push edi
call fcn.004bf4a4
mov esi, eax
push edi
sar esi, 5
call fcn.004bf4a4
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [esi*4 + 0x52a778]
pop ecx
pop esi
jmp 0x4c64bd
mov eax, 0x5194c0
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x4c64cd
or dword [edi + 0xc], 0x2000
cmp dword [edi + 0x18], 0x200
jne 0x4c64ec
test byte [edi + 0xc], 8
je 0x4c64ec
test dword [edi + 0xc], 0x400
jne 0x4c64ec
mov dword [edi + 0x18], 0x1000
mov ecx, dword [edi]
dec dword [edi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [edi], ecx
pop edi
ret
push 0x10
pop ecx
push 0x20
test eax, eax
pop edx
cmovne ecx, edx
or dword [edi + 0xc], ecx
and dword [edi + 4], 0
or eax, 0xffffffff
pop edi
ret
Function at 0x4c7e3f
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1fc
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x1f8], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x20c]
push edi
call fcn.004c7e1f
mov esi, eax
pop ecx
test esi, esi
je 0x4c7fe8
push ebx
push 3
call fcn.004c9540
pop ecx
cmp eax, 1
je 0x4c7f90
push 3
call fcn.004c9540
pop ecx
test eax, eax
jne 0x4c7e99
cmp dword [0x52a148], 1
je 0x4c7f90
cmp edi, 0xfc
je 0x4c7fe7
push str.Runtime_Error__n_nProgram:
push 0x314
mov ebp, 0x52a150
push ebp
call fcn.004c8cf5
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0x4c8000
push 0x104
push 0x52a182
push ebx
mov word [0x52a38a], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, 0x2fb
test eax, eax
jne 0x4c7f02
push str._program_name_unknown_
push edi
push 0x52a182
call fcn.004c8cf5
add esp, 0xc
test eax, eax
jne 0x4c8000
mov ecx, 0x52a182
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4c7f0a
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x3c
jbe 0x4c7f4c
lea ecx, [ecx*2 + 0x52a10c]
mov eax, ecx
sub eax, 0x52a182
push 3
sar eax, 1
push 0x4ee7f4
sub edi, eax
push edi
push ecx
call fcn.004ceb0f
add esp, 0x10
test eax, eax
jne 0x4c8000
push 0x4ee7fc
mov edi, 0x314
push edi
push ebp
call fcn.004ceaa4
add esp, 0xc
test eax, eax
jne 0x4c8000
push esi
push edi
push ebp
call fcn.004ceaa4
add esp, 0xc
test eax, eax
jne 0x4c8000
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004cebcb
add esp, 0xc
jmp 0x4c7fe7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, eax
test edx, edx
je 0x4c7fe7
cmp edx, 0xffffffff
je 0x4c7fe7
xor ebx, ebx
mov ecx, ebx
mov al, byte [esi + ecx*2]
mov byte [esp + ecx + 0x14], al
cmp word [esi + ecx*2], bx
je 0x4c7fbd
inc ecx
cmp ecx, 0x1f4
jb 0x4c7fa7
lea ecx, [esp + 0x14]
mov byte [esp + 0x207], bl
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c7fcb
push ebx
lea eax, [esp + 0x14]
sub ecx, esi
push eax
push ecx
lea eax, [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
mov ecx, dword [esp + 0x204]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004b9a6c
add esp, 0x1fc
ret
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004c468e
int3
Function at 0x4c9658
Capabilities:
Query environment variable

Disassembly:
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
xor eax, eax
test edi, edi
je 0x4c96db
push esi
mov esi, edi
cmp word [edi], ax
je 0x4c967f
add esi, 2
cmp word [esi], ax
jne 0x4c966f
add esi, 2
cmp word [esi], ax
jne 0x4c966f
push ebx
push ebp
push eax
push eax
push eax
sub esi, edi
push eax
sar esi, 1
inc esi
push esi
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x4c96cf
push ebp
call fcn.004c2f1d
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4c96cf
xor eax, eax
push eax
push eax
push ebp
push ebx
push esi
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4c96c4
push ebx
call fcn.004bbb16
pop ecx
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x4c96d8
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop ebx
pop esi
pop edi
ret
Function at 0x4cc480
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4cc4bb
mov edi, dword [esp + 0x14]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4cc4b3
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4cc4bd
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4cc4a3
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x4cc590
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4cc5a1
xor eax, eax
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4cc5bc
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
ret
Function at 0x4cebcb
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
sub esp, 0x20
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [0x518760]
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
xor esi, esi
push esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
call ebx
mov ebp, eax
call fcn.004c31aa
mov dword [esp + 0x10], eax
cmp dword [0x52a9bc], esi
jne 0x4cecc0
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4cec4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4ceda6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4ceda6
push 0x4eea8c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ceda6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x52a9bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x52a9c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x52a9c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x52a9cc], eax
test eax, eax
je 0x4cecbc
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x52a9c8], eax
mov edi, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4cece3
test edi, edi
je 0x4cecd5
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esp + 0x10], esi
je 0x4cecf9
push 4
pop eax
jmp 0x4ceda8
cmp dword [esp + 0x10], esi
je 0x4cecf9
push dword [0x52a9bc]
call dword [0x518764]
push 3
jmp 0x4cecdd
mov eax, dword [0x52a9c8]
mov ebx, dword [0x518764]
cmp eax, ebp
je 0x4ced5b
cmp dword [0x52a9cc], ebp
je 0x4ced5b
push eax
call ebx
push dword [0x52a9cc]
mov dword [esp + 0x14], eax
call ebx
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ced5b
test edi, edi
je 0x4ced5b
call eax
test eax, eax
je 0x4ced4f
lea ecx, [esp + 0x1c]
push ecx
push 0xc
lea ecx, [esp + 0x28]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4ced4f
test byte [esp + 0x28], 1
jne 0x4ced5b
mov edi, dword [esp + 0x3c]
or edi, 0x200000
jmp 0x4ced8c
mov eax, dword [0x52a9c0]
cmp eax, ebp
je 0x4ced88
push eax
call ebx
test eax, eax
je 0x4ced88
call eax
mov esi, eax
test esi, esi
je 0x4ced88
mov eax, dword [0x52a9c4]
cmp eax, ebp
je 0x4ced88
push eax
call ebx
test eax, eax
je 0x4ced88
push esi
call eax
mov esi, eax
mov edi, dword [esp + 0x3c]
push dword [0x52a9bc]
call ebx
test eax, eax
je 0x4ceda6
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call eax
jmp 0x4ceda8
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x20
ret