joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a8e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8e98
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x5c]
call fcn.004104d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x64]
movzx ecx, byte [eax + 0x4e]
test ecx, ecx
je 0x45a935
mov dword [ebp - 0x68], 1
jmp 0x45a93c
mov dword [ebp - 0x68], 0
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x14], edx
push 4
lea eax, [ebp - 0x14]
push eax
push 1
push 6
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov byte [ebp - 0x5c], 1
push 0x61528a
lea ecx, [ebp - 0x58]
call fcn.00408b60
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov ecx, dword [ebp - 0x60]
or ecx, 1
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00409a40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588574
mov esp, ebp
pop ebp
ret 4
Function at 0x46fb25
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x46fb6a
call fcn.0047a42d
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46fb6a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x46fb86
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0047a5c6
mov ebx, eax
test edi, edi
je 0x46fb84
test esi, esi
je 0x46fb84
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x475e83
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0047a42d
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x475eba
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00475edb
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4f0cfb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00479885
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4f0d37
call fcn.004f0f1a
mov dword [esi + 0xc], 1
jmp 0x4f0d3c
call fcn.004f0f1a
cmp dword [esi], 0
je 0x4f0d85
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4f0d5f
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0046fbdd
jmp 0x4f0d70
push 0xff
mov ecx, esi
call fcn.00413c40
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0046dacc
jmp 0x4f0da9
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4f0da9
push dword [esi]
push dword [ebp - 4]
call fcn.0047cfb2
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f0e6f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004f0f1a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4f0eb7
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0046fbdd
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0046dacc
jmp 0x4f0ec2
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0047cfb2
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5536b6
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005842bf
call fcn.0047a481
cmp dword [eax + 0x14], 0
jne 0x5536d1
mov ecx, esi
pop esi
jmp fcn.00552ab7
pop esi
ret

Function at 0x55ff04
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.0047fb60
call fcn.0047a481
cmp dword [eax + 0x14], 0
jne 0x55ff1f
mov ecx, esi
pop esi
jmp fcn.0055f7ed
pop esi
ret
Function at 0x5a0725
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00592d0e
mov dword [ebp - 0x14], eax
cmp dword [0x64f8c8], esi
jne 0x5a0818
push 0x800
push esi
push 0x60b1a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5a07a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5a08f8
push esi
push esi
push 0x60b1a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5a08f8
push 0x60b1b8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5a08f8
push eax
call ebx
push 0x60b1c4
push edi
mov dword [0x64f8c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x60b1d4
push edi
mov dword [0x64f8cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x64f8d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x64f8d8], eax
test eax, eax
je 0x5a0815
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x64f8d4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5a083d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5a0830
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5a0852
push 4
pop eax
jmp 0x5a08fa
cmp dword [ebp - 0x14], esi
je 0x5a0852
push dword [0x64f8c8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5a0837
mov eax, dword [0x64f8d4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5a08b0
cmp dword [0x64f8d8], edi
je 0x5a08b0
push eax
call ebx
push dword [0x64f8d8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5a08b0
test eax, eax
je 0x5a08b0
call ecx
test eax, eax
je 0x5a08a5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5a08a5
test byte [ebp - 8], 1
jne 0x5a08b0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5a08e0
mov eax, dword [0x64f8cc]
cmp eax, edi
je 0x5a08dd
push eax
call ebx
test eax, eax
je 0x5a08dd
call eax
mov esi, eax
test esi, esi
je 0x5a08dd
mov eax, dword [0x64f8d0]
cmp eax, edi
je 0x5a08dd
push eax
call ebx
test eax, eax
je 0x5a08dd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x64f8c8]
call ebx
test eax, eax
je 0x5a08f8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5a08fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00588574
mov esp, ebp
pop ebp
ret
Function at 0x5b05fc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4018b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4018c7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4018f8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4018f4
cmp esi, eax
jae 0x4018f8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4018e4
cmp esi, eax
jb 0x4018fe
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x401ed0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x458
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0040b3f0
xor eax, eax
xor edx, edx
push 0x3fe
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0x6e]
mov ecx, 1
push eax
mov dword [esp + 0x28], 0x44
mov word [esp + 0x58], cx
mov dword [esp + 0x54], 6
mov word [esp + 0x70], dx
call fcn.0040b3f0
mov ecx, dword [esp + 0x474]
push ecx
lea edx, [esp + 0x74]
push 0x417e50
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
lea eax, [esp]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x10
push 0
push 0
push 0
lea edx, [esp + 0x78]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
add esp, 0x458
ret

Function at 0x401f80
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x417e1c
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401ffc
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x14]
push edx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x402004
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x402090
Capabilities:
Create directory
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41524b
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x88
push edi
push esi
mov edi, edx
call fcn.00401f80
add esp, 4
test eax, eax
jne 0x4020d7
xor eax, eax
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop edi
add esp, 0x94
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4020f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x4020f6
cmp eax, 0xb7
jne 0x4020bf
lea eax, [esp + 0xc]
push 3
mov dword [esp + 0xc], eax
push esi
lea eax, [esp + 0x10]
call fcn.00402530
mov dword [esp + 0x94], 0
mov ecx, dword [esp + 8]
push ecx
mov ecx, edi
call fcn.00403e40
mov edi, eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
add esp, 4
cmp eax, edx
je 0x40213b
push eax
call fcn.0040a8fa
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x8c]
xor eax, eax
test edi, edi
setne al
mov dword fs:[0], ecx
pop edi
add esp, 0x94
ret
Function at 0x404300
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
jne 0x404311
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [edi], 0
mov edi, edi
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40432f
mov eax, esi
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x404366
test ecx, ecx
je 0x40435f
test esi, esi
ja 0x404320
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x404380
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
jne 0x404391
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [edi], 0
mov edi, edi
mov eax, 0x400000
cmp esi, 0x400000
ja 0x4043af
mov eax, esi
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x4043e6
test ecx, ecx
je 0x4043df
test esi, esi
ja 0x4043a0
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x404670
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x41ce60], ecx
inc edx
cmp edx, 0x100
jb 0x404673
cmp edx, 0x800
jae 0x404749
lea ecx, [ecx]
mov eax, dword [edx*4 + 0x41ca60]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x41ce60]
inc edx
mov dword [edx*4 + 0x41ce5c], eax
cmp edx, 0x800
jb 0x404720
mov dword [0x41bc74], 0x406fe0
call fcn.004071b0
test eax, eax
jne 0x404766
mov dword [0x41bc74], 0x407090
pop ecx
ret
Function at 0x407290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x41ab9c]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x14]
push edi
mov ebx, edx
mov edx, dword [eax + 0x10]
push ecx
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebx
call fcn.00409380
xor edi, edi
add esp, 4
cmp eax, edi
jne 0x40740b
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xa8]
mov eax, 1
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x78], eax
nop
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0x40000
cmp dword [esp + 0xac], edi
ja 0x407343
jb 0x40733f
cmp ebx, 0x40000
jae 0x407343
mov dword [esp + 0x14], ebx
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
call edx
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x4073f7
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xb8]
push 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
lea eax, [esp + 0x3c]
call fcn.00408ff0
mov esi, eax
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x28], eax
add esp, 0x14
sub ebx, eax
sbb dword [esp + 0xac], 0
test esi, esi
jne 0x4073f7
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x4073d4
test eax, eax
jne 0x4073bd
cmp edi, dword [esp + 0x4c]
je 0x4073d4
mov edx, dword [ebp + 4]
push eax
push ebp
call edx
mov esi, eax
add esp, 8
test esi, esi
jne 0x4073f7
xor edi, edi
jmp 0x407320
cmp ecx, dword [esp + 0xb4]
jne 0x4073f2
cmp dword [esp + 0x14], 0
jne 0x4073f2
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x4073f7
cmp eax, 4
je 0x4073f7
mov esi, 1
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
push eax
call ecx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ae4b
add esp, 0x90
ret
Function at 0x407430
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb0
mov eax, dword [0x41ab9c]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
push ebx
push ebp
mov ebp, dword [esp + 0xc8]
push esi
push edi
xor ebx, ebx
mov edi, 1
mov esi, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
cmp dword [eax + 0x14], edi
je 0x407477
mov eax, edi
jmp 0x4075cd
mov eax, dword [eax + 0x10]
movzx ecx, byte [eax]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00409420
add esp, 4
cmp eax, ebx
jne 0x4075cd
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x78], edi
lea esp, [esp]
mov eax, 0x40000
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
cmp dword [esp + 0xcc], ebx
ja 0x40750c
jb 0x407501
cmp dword [esp + 0xc8], eax
jae 0x40750c
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
call eax
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x4075b9
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xd8]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
lea esi, [esp + 0x38]
call fcn.004095d0
mov esi, eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x24], eax
add esp, 0x10
sub dword [esp + 0xc8], eax
sbb dword [esp + 0xcc], ebx
cmp esi, ebx
jne 0x4075b9
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x40759e
cmp eax, ebx
jne 0x407588
cmp edi, dword [esp + 0x4c]
je 0x40759e
push eax
mov eax, dword [ebp + 4]
push ebp
call eax
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4074e0
jmp 0x4075b9
cmp ecx, dword [esp + 0xd4]
jne 0x4075b4
cmp dword [esp + 0x14], ebx
jne 0x4075b4
cmp dword [esp + 0x20], 1
je 0x4075b9
mov esi, 1
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 4]
push ecx
push eax
call edx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ae4b
add esp, 0xb0
ret
Function at 0x4098c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
and esi, 7
cmp eax, 5
jae 0x4098dd
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
push ebx
lea ebx, [edx + eax - 4]
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
lea edi, [edx + ebp]
cmp edi, ebx
jae 0x40990d
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40990d
inc edi
cmp edi, ebx
jb 0x409900
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x409a15
cmp eax, 3
jbe 0x409940
xor esi, esi
mov al, byte [edi + 4]
mov dword [esp + 0x10], ebp
test al, al
je 0x40997b
cmp al, 0xff
je 0x40997b
and esi, 3
add esi, esi
or esi, 1
inc ebp
jmp 0x4098f3
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x409926
movzx ecx, byte [esi + 0x417eac]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x417ea4], 0
mov al, byte [eax + 4]
je 0x409969
test al, al
je 0x409969
cmp al, 0xff
jne 0x409926
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
inc ebp
jmp 0x4098f3
movzx ecx, byte [edi + 3]
movzx edx, al
movzx eax, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
lea esp, [esp]
sub edx, ebp
sub edx, 5
mov eax, edx
test esi, esi
je 0x4099e7
movzx edx, byte [esi + 0x417eac]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
test bl, bl
je 0x4099cc
cmp bl, 0xff
jne 0x4099e3
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x4099a0
mov ebx, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, eax
shr edx, 8
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x1c]
mov byte [edi + 3], cl
mov byte [edi + 1], al
add ebp, 5
jmp 0x4098f3
pop edi
pop ebx
cmp eax, 3
jbe 0x409a2c
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
lea ecx, [eax - 1]
mov eax, dword [esp + 0x18]
shl esi, cl
and esi, 7
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret

Function at 0x40ae4b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41ab9c]
jne 0x40ae55
repz ret
jmp fcn.00410604
Function at 0x412930
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040d506
and dword [ebp - 4], 0
cmp dword [0x41bc50], 0
mov ebx, eax
jne 0x4129e1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x412a92
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x412a92
push eax
call fcn.0040d494
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41bc50], eax
call esi
push eax
call fcn.0040d494
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41bc54], eax
call esi
push eax
call fcn.0040d494
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41bc58], eax
call esi
push eax
call fcn.0040d494
pop ecx
mov dword [0x41bc60], eax
test eax, eax
je 0x4129e1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d494
pop ecx
mov dword [0x41bc5c], eax
mov eax, dword [0x41bc5c]
cmp eax, ebx
je 0x412a39
cmp dword [0x41bc60], ebx
je 0x412a39
push eax
call fcn.0040d50f
push dword [0x41bc60]
mov esi, eax
call fcn.0040d50f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x412a39
test edi, edi
je 0x412a39
call esi
test eax, eax
je 0x412a30
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x412a30
test byte [ebp - 0xc], 1
jne 0x412a39
or dword [ebp + 0x10], 0x200000
jmp 0x412a72
mov eax, dword [0x41bc54]
cmp eax, ebx
je 0x412a72
push eax
call fcn.0040d50f
pop ecx
test eax, eax
je 0x412a72
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x412a72
mov eax, dword [0x41bc58]
cmp eax, ebx
je 0x412a72
push eax
call fcn.0040d50f
pop ecx
test eax, eax
je 0x412a72
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41bc50]
call fcn.0040d50f
pop ecx
test eax, eax
je 0x412a92
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412a94
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret