joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402170
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 8], 0
mov dword [0x408e80], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp + 8], 1
jle 0x40222b
mov eax, dword [eax + 4]
lea edx, [ebp - 0x210]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0x80
push 3
push 0
push 1
lea ecx, [ebp - 0x210]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40222b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea edx, [ebp - 4]
push 0
push edx
push edi
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x215b
call esi
jmp 0x402222
push 0
push 0x401040
push 0
push 0x66
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403c2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4086c0
cmp edx, dword [eax]
je 0x403c4f
add eax, 8
inc ecx
cmp eax, 0x408750
jl 0x403c40
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4086c0]
jne 0x403d7d
mov eax, dword [0x408e98]
cmp eax, 1
je 0x403d57
test eax, eax
jne 0x403c80
cmp dword [0x408608], 1
je 0x403d57
cmp edx, 0xfc
je 0x403d7d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403cb7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405520
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404b50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403cfa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404b50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40748c
push edi
call fcn.004059d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405520
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405530
lea eax, [ebp - 0xa0]
push 0x40746c
push eax
call fcn.00405530
push dword [esi + 0x4086c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405530
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405945
add esp, 0x2c
pop edi
jmp 0x403d7d
lea eax, [ebp + 8]
lea esi, [esi + 0x4086c4]
push 0
push eax
push dword [esi]
call fcn.00404b50
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]
pop esi
leave
ret
Function at 0x4023c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4023d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402414
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402410
lea ebx, [ebx]
cmp esi, eax
jae 0x402414
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402400
cmp esi, eax
jb 0x40241a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402b60
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402b9c
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x402ba2
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x24
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0x10
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push 0
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x402bef
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x24
ret
mov eax, 1
add esp, 0x24
ret

Function at 0x405c20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x442d14]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
ja 0x405c57
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0041db69
add esp, 0x108
ret
push 0x103
lea eax, [esp + 0xd]
push ebx
push eax
mov byte [esp + 0x14], bl
call fcn.0041fef0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 8]
push str..exe
push edx
call fcn.0041e7e0
mov ecx, dword [str..dll]
mov dword [eax], ecx
mov dl, byte [0x439fec]
mov byte [eax + 4], dl
add esp, 8
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405c3e
push ebp
push edi
lea ecx, [esp + 0x10]
call fcn.0040ba00
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x405ccc
mov dword [esi + 0xd94], ebx
mov eax, dword [esi + 0xd88]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x405ce5
push eax
call edi
mov dword [esi + 0xd88], ebx
mov eax, dword [esi + 0xd8c]
cmp eax, ebx
je 0x405cf8
push eax
call edi
mov dword [esi + 0xd8c], ebx
mov ecx, dword [esp + 0x110]
mov eax, ebp
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.0041db69
add esp, 0x108
ret
Function at 0x405d20
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x74
push ebx
push esi
push edi
mov edi, eax
lea edx, [eax + 1]
xor ebx, ebx
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405d30
sub eax, edx
add eax, 2
push eax
call fcn.0040c05e
mov esi, eax
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405d50
sub eax, edx
add eax, 2
push eax
push ebx
push esi
call fcn.0041fef0
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405d70
sub eax, edx
push edi
add eax, 2
push eax
push esi
call fcn.0041e775
mov eax, edi
add esp, 0xc
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405d90
sub eax, edi
mov byte [eax + esi], 0x20
xor eax, eax
push 0x44
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x3c]
push ebx
push eax
mov dword [esp + 0x34], ebx
call fcn.0041fef0
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
push ebx
push 0x4000000
mov eax, 0xc
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
push ebx
mov dword [esp + 0x60], 0x44
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov edi, eax
call fcn.0040c063
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
mov dword [eax], edx
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x74
ret 4
Function at 0x407900
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x442d14]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0x124
xor ebx, ebx
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0041fef0
add esp, 0xc
push ebx
push 2
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x407980
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407967
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0041db69
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
mov edi, dword [ebp + 8]
je 0x4079ba
lea edx, [esp + 0x34]
push edx
push edi
call fcn.0041e049
add esp, 8
test eax, eax
je 0x4079b5
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x407992
jmp 0x4079ba
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4079dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0041db69
mov esp, ebp
pop ebp
ret 4
Function at 0x408be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4334e8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push edi
mov eax, dword [0x442d14]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
push eax
call fcn.00413665
push eax
lea ecx, [esp + 0x30]
call fcn.00416e95
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call edi
push eax
call fcn.00413665
mov ecx, eax
call fcn.00416c9e
cmp dword [esi + 0x120], 0
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
jne 0x408d01
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x11c]
call fcn.00416e02
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
lea edi, [esi + 0x12c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.0041703a
test edi, edi
je 0x408cbb
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x120]
push edi
push eax
call fcn.004170bf
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
push 0xcc0020
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x134], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esi + 0x120]
push ecx
push 0
push 0
push eax
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
sub ecx, dword [esp + 0xc]
lea edx, [esi + 0x11c]
test edx, edx
je 0x408d1e
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 4]
push 0
push 0
push edx
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00416ee9
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x44
ret 4
Function at 0x4099d0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x31c
mov eax, dword [0x442d14]
xor eax, esp
mov dword [esp + 0x318], eax
push 0x310
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0041fef0
mov ecx, dword [esp + 0x32c]
mov eax, 0x439ca4
add esp, 0xc
mov dword [esp + 4], ecx
lea edx, [eax + 1]
jmp 0x409a10
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409a10
sub eax, edx
je 0x409a34
push 0x439ca4
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0041e775
add esp, 0xc
mov eax, 0x439ca4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409a40
sub eax, edx
je 0x409a67
push 0x439ca4
lea eax, [esp + 0x110]
push 0x104
push eax
call fcn.0041e775
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x409770
mov dword [esp + 0x31c], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x318]
mov eax, dword [esp + 0x314]
xor ecx, esp
call fcn.0041db69
add esp, 0x31c
ret

Function at 0x409e20
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x31c
mov eax, dword [0x442d14]
xor eax, esp
mov dword [esp + 0x318], eax
push ebp
mov ebp, dword [esp + 0x324]
push 0x310
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0
call fcn.0041fef0
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409e60
sub eax, edx
je 0x409e80
push esi
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.0041e775
add esp, 0xc
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409e85
sub eax, edx
je 0x409ea8
push edi
lea edx, [esp + 0x114]
push 0x104
push edx
call fcn.0041e775
add esp, 0xc
mov eax, ebp
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409eb0
sub eax, edx
je 0x409ed3
push ebp
lea eax, [esp + 0x218]
push 0x104
push eax
call fcn.0041e775
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x409aa0
mov dword [esp + 0x320], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x31c]
mov eax, dword [esp + 8]
pop ebp
xor ecx, esp
call fcn.0041db69
add esp, 0x31c
ret
Function at 0x40b380
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x433488
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x442d14]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [esp + 0x34]
call fcn.0041869d
mov eax, dword [esp + 0x40]
push 0
push 0
push 0x800002
push 1
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], 0
call fcn.004192bf
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
je 0x40b4d1
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov edi, eax
add edi, edi
cmp edi, ebx
je 0x40b4d1
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x40b41a
mov dword [esp + 0x38], 0xffffffff
jmp 0x40b4de
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40b40d
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 0x34]
mov ecx, esi
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
lea ecx, [esp + 0x1c]
call fcn.00418d00
lea ecx, [esp + 0x10]
push ecx
push 1
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x4399b0
push 1
push edi
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
jl 0x40b40d
cmp dword [esp + 0x14], 0
je 0x40b40d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00418e61
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
call fcn.00418d00
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x1c]
call fcn.00418e61
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x40ba00
Capabilities:
Create thread
Enumerate process modules

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x228
push 0xfffffffffffffffe
push 0x43e660
push 0x41f960
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x442d14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x224], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
push 0x220
xor esi, esi
push esi
lea eax, [ebp + 4]
push eax
call fcn.0041fef0
add esp, 0xc
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp], 0x224
mov ecx, dword [ebp + 0x230]
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40ba80
xor eax, eax
jmp 0x40bb7f
lea edx, [ebp]
push edx
push ebx
call sub.KERNEL32.dll_Module32First
cmp eax, esi
je 0x40bad5
mov edi, edi
lea ecx, [ebp + 0x120]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bab8
test dl, dl
je 0x40bab4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bab8
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ba98
xor eax, eax
jmp 0x40babd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x40bac7
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
lea ecx, [ebp]
push ecx
push ebx
call sub.KERNEL32.dll_Module32Next
cmp eax, esi
jne 0x40ba90
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], esi
je 0x40ba79
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
push 0x43aa20
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, esi
je 0x40ba79
mov dword [ebp - 4], esi
mov edx, dword [ebp + 0x230]
push edx
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x40bb70
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x40bb70
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40bb70
cmp dword [ebp - 0x28], 0
je 0x40bb70
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.0040bbaa
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.0041db69
add ebp, 0x228
mov esp, ebp
pop ebp
ret

Function at 0x40d1f6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
ret 0xc

Function at 0x40d20e
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
ret 0xc
Function at 0x40d2b3
Capabilities:
Connect socket

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x4146e0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x414719
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040c437
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00407ba0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x415d5d
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x439ca4
mov ecx, edi
call fcn.00402470
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x415db0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x415dc3
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0040c437
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00407ba0
jmp 0x415dc3
mov ecx, esi
call fcn.00416560
test eax, eax
je 0x415dc3
push edi
mov ecx, eax
call fcn.004146e0
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x4163a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4163ea
call fcn.00411138
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4163ea
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x416405
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00415f5e
test ebx, ebx
mov esi, eax
je 0x416403
test edi, edi
je 0x416403
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41869d
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4186c6
call fcn.00411138
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4186e9
push eax
push dword [esi + 4]
call fcn.00418628
push esi
push eax
mov ecx, 0x445e4c
call fcn.004182c8
mov eax, esi
pop esi
pop ebp
ret 0x18