joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2422
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4b2468
push 6
call fcn.004c46d2
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x50ca11]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00402e94
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.004c5840
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4b24bb
push ebx
call fcn.004c46cc
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4b24f4
push 6
call fcn.004c46d2
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4b2510
push eax
mov ebx, eax
call fcn.0040125a
inc eax
push eax
call fcn.004c46c6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4b2515
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4b2526
push ebx
call fcn.004c46cc
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4c5fb0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4c5fce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4c5fc3
pop esi
ret

Function at 0x4c60b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x4c6133
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4c6133
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4c6126
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x4c6be0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
test ebx, ebx
push edi
jne 0x4c6bf9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebx
call fcn.004c9cb0
add esp, 4
test eax, eax
jne 0x4c6c0e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4c6c28
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x4c6c28
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x4c6d10
mov ebp, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push esi
push esi
push ebp
call edi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x4c6c60
push 2
push esi
push esi
push ebp
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4c6c77
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
sub esi, ebx
jmp 0x4c6c7b
mov esi, dword [esp + 0x2c]
push esi
call fcn.004da309
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c6cb4
push 2
push eax
push eax
push ebp
call edi
push ebx
call fcn.004da332
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
xor edi, edi
test edx, edx
mov ecx, ebx
jbe 0x4c6cd0
mov al, byte [ecx]
test al, al
je 0x4c6cd0
cmp al, 0x1a
je 0x4c6cd0
inc edi
inc ecx
cmp edi, edx
jb 0x4c6cc0
lea ecx, [edi + 1]
push ecx
call fcn.004c4910
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push 0
lea eax, [edi + edx]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push ebx
push esi
call fcn.004cf040
push ebx
mov byte [edi + esi], 0
call fcn.004da332
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x4c6d8b
mov ebx, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
test edi, edi
mov ebp, eax
jne 0x4c6d2a
or eax, 0xffffffff
jmp 0x4c6d2e
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
mov ecx, ebx
call dword [edx + 0x30]
mov edx, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x4c6d5d
mov cl, byte [edx]
test cl, cl
je 0x4c6d5d
cmp cl, 0x1a
je 0x4c6d5d
inc edi
inc edx
cmp edi, eax
jb 0x4c6d4c
lea edx, [edi + 1]
push edx
call fcn.004c4910
add esp, 4
lea ecx, [edi + ebp]
mov esi, eax
mov eax, dword [ebx]
push 0
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov edx, dword [esp + 0x10]
push edi
push edx
push esi
call fcn.004cf040
add esp, 0xc
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4c7090
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.004da309
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4c70fa
push esi
lea edi, [eax + 0x400]
call fcn.004da332
push edi
call fcn.004da309
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x4c70ca
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4c7116
push ecx
push esi
call fcn.004c9590
add esp, 8
mov ebx, eax
push esi
call fcn.004da332
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4cc210
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5aaff4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4cc223
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4cc264
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5ab09c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4cc296
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4cc29a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4cc28b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4cc2b8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4cc2bc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4cc2ad
xor ecx, ecx
mov eax, 0x5ab004
xor ebx, ebx
mov bl, byte [ecx + 0x5ab0ac]
cmp byte [esp + ebx + 0x14], 0
je 0x4cc2e7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5ab0c4]
cmp byte [esp + ebx + 0x14], 0
je 0x4cc2fe
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4cc2ce
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4cc257
lea edx, [esp + 0x84]
push edx
call fcn.004cc340
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4dccdc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4dcd1e
call fcn.004e0030
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4dcd1e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4dcd15
xor eax, eax
jmp 0x4dcd26
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004dcd2c
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ddcb7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4e18f8
call fcn.004d0504
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004e0030
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4ddcf6
call fcn.004e0030
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4ddd04
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4ddd12
or eax, 0xffffffff
jmp 0x4dddfa
mov ecx, esi
call fcn.004ddc2d
mov dword [ebp - 0x14], eax
call fcn.004db31e
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4ddd49
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4ddd49
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004db2d2
push dword [ebp - 0x14]
call fcn.004dae04
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004dd9c5
cmp eax, edi
je 0x4dddbc
test byte [esi + 0x24], 0x10
je 0x4ddd8a
push 4
mov ecx, esi
pop ebx
call fcn.004da804
test ah, 1
je 0x4ddd82
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004dce2e
cmp dword [esi + 0x1c], edi
je 0x4dddbc
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004da838
jmp 0x4dddbc
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4dddd0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4ddde9
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4ddde9
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004ddc67
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4dfba2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4dfbd0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dfbee
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004dfb08
jmp 0x4dfbee
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4dfbee
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004dfb08
test edi, edi
mov eax, edi
jne 0x4dfbd8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401d40
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push 0xffffffffffffffff
push str..pipeprobe_inside_msg_QQ_SessionKey
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x401e6c
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push str..pipeprobe_inside_msg_QQ_SessionKey
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401e6b
push ebx
mov ebx, dword [esp + 0x14]
mov eax, ebx
push edi
mov dword [esp + 0x10], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401d94
sub eax, edx
inc eax
cmp ax, 0x3ff
mov dword [esp + 0xc], eax
jle 0x401db0
mov dword [esp + 0xc], 0x3ff
mov eax, str.acct
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401db8
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
push str.acct
push esi
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 2
lea eax, [esp + 0x18]
push eax
push esi
call edi
movsx edx, word [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push ebx
push esi
call edi
mov ebx, dword [esp + 0x1c]
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401e02
sub eax, ecx
inc eax
cmp ax, 0x3ff
mov dword [esp + 0xc], eax
jle 0x401e1e
mov dword [esp + 0xc], 0x3ff
mov eax, str.sessionkey
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e26
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
push str.sessionkey
push esi
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 2
lea eax, [esp + 0x18]
push eax
push esi
call edi
movsx edx, word [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
inc edx
push edx
push ebx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
add esp, 8
ret
Function at 0x403872
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x18
push 0x40a288
call fcn.00403cc0
mov edi, 0x94
mov eax, edi
call fcn.00403750
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40c864], ecx
mov eax, dword [esi + 4]
mov dword [0x40c870], eax
mov edx, dword [esi + 8]
mov dword [0x40c874], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40c868], esi
cmp ecx, 2
je 0x4038d2
or esi, 0x8000
mov dword [0x40c868], esi
shl eax, 8
add eax, edx
mov dword [0x40c86c], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40390b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40390b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403923
cmp eax, 0x20b
je 0x403910
mov dword [ebp - 0x1c], edi
jmp 0x403937
cmp dword [ecx + 0x84], 0xe
jbe 0x40390b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x403931
cmp dword [ecx + 0x74], 0xe
jbe 0x40390b
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00405b67
pop ecx
test eax, eax
jne 0x403963
cmp dword [0x40c850], 2
je 0x403950
call fcn.00405379
push 0x1c
call fcn.00405201
push 0xff
call fcn.00405066
pop ecx
pop ecx
call fcn.00405ac5
mov dword [ebp - 4], edi
call fcn.0040591a
test eax, eax
jge 0x40397c
push 0x1b
call fcn.0040384d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ddf4], eax
call fcn.004057f8
mov dword [0x40c848], eax
call fcn.00405756
test eax, eax
jge 0x4039a2
push 8
call fcn.0040384d
pop ecx
call fcn.00405523
test eax, eax
jge 0x4039b3
push 9
call fcn.0040384d
pop ecx
push 1
call fcn.00405096
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x4039c9
push eax
call fcn.0040384d
pop ecx
mov eax, dword [0x40c884]
mov dword [0x40c888], eax
push eax
push dword [0x40c87c]
push dword [0x40c878]
call fcn.004016a0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x4039f8
push esi
call fcn.004051c1
call fcn.004051e3
jmp 0x403a2a
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00403cfb
ret
Function at 0x405100
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40c8a4], esi
push edi
jne 0x405120
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40c8a0], esi
mov byte [0x40c89c], al
jne 0x405186
mov ecx, dword [0x40dde8]
test ecx, ecx
je 0x405167
mov eax, dword [0x40dde4]
sub eax, 4
cmp eax, ecx
jmp 0x405160
mov eax, dword [eax]
test eax, eax
je 0x405152
call eax
mov eax, dword [0x40dde4]
sub eax, 4
cmp eax, dword [0x40dde8]
mov dword [0x40dde4], eax
jae 0x40514a
mov eax, 0x40c020
mov esi, 0x40c028
cmp eax, esi
mov edi, eax
jae 0x405186
mov eax, dword [edi]
test eax, eax
je 0x40517f
call eax
add edi, 4
cmp edi, esi
jb 0x405177
mov eax, 0x40c02c
mov esi, 0x40c030
cmp eax, esi
mov edi, eax
jae 0x4051a5
mov eax, dword [edi]
test eax, eax
je 0x40519e
call eax
add edi, 4
cmp edi, esi
jb 0x405196
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4051bf
push dword [ebp + 8]
mov dword [0x40c8a4], 1
call fcn.00405066
pop ebp
ret

Function at 0x405201
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x40c1b0]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40c1f0]
je 0x405238
inc eax
cmp eax, 0x13
jb 0x405229
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40c1f0]
jne 0x40535b
mov eax, dword [0x40c850]
cmp eax, 1
je 0x405336
cmp eax, edx
jne 0x405268
cmp dword [0x40c1c4], 1
je 0x405336
cmp ecx, 0xfc
je 0x40535b
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40529e
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00405cc0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00405ef0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4052d2
mov eax, edi
push eax
call fcn.00405ef0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a2cc
push edi
call fcn.00405dc0
add esp, 0x10
push edi
call fcn.00405ef0
push dword [esi + 0x40c1f4]
mov ebx, eax
call fcn.00405ef0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403750
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405cc0
push edi
push ebx
call fcn.00405cd0
push 0x40a2c8
push ebx
call fcn.00405cd0
push dword [esi + 0x40c1f4]
push ebx
call fcn.00405cd0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00405bb8
add esp, 0x2c
jmp 0x40535b
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x40c1f4]
push dword [esi]
call fcn.00405ef0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00403602
add ebp, 0x90
leave
ret
Function at 0x405bb8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40c9bc], ebx
push esi
push edi
jne 0x405c38
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405c73
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40c9bc], eax
je 0x405c73
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40c9c0], eax
call esi
cmp dword [0x40c864], 2
mov dword [0x40c9c4], eax
jne 0x405c38
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40c9cc], eax
je 0x405c38
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40c9c8], eax
mov eax, dword [0x40c9c8]
test eax, eax
je 0x405c7d
call eax
test eax, eax
je 0x405c64
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40c9cc]
test eax, eax
je 0x405c64
test byte [ebp - 8], 1
jne 0x405c7d
cmp dword [0x40c870], 4
jb 0x405c77
or byte [ebp + 0x12], 0x20
jmp 0x405c9c
xor eax, eax
jmp 0x405cac
or byte [ebp + 0x12], 4
jmp 0x405c9c
mov eax, dword [0x40c9c0]
test eax, eax
je 0x405c9c
call eax
mov ebx, eax
test ebx, ebx
je 0x405c9c
mov eax, dword [0x40c9c4]
test eax, eax
je 0x405c9c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40c9bc]
pop edi
pop esi
pop ebx
leave
ret