joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x114
mov eax, dword [0x443d44]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x11c]
push ebx
push ebp
mov ebp, dword [esp + 0x120]
test ebp, ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
jbe 0x405c43
push 0x103
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call fcn.00420a90
add esp, 0xc
push 0x104
lea edx, [esp + 0x18]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x14]
push str..exe
push eax
call fcn.0041f370
mov ecx, dword [str..dll]
mov dword [eax], ecx
mov dl, byte [0x43b0ec]
mov byte [eax + 4], dl
add esp, 8
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405c43
mov edx, dword [esp + 0x10]
lea esi, [edi + 0x1010]
push esi
lea ecx, [esp + 0x18]
push ecx
lea ebx, [edi + 0x1014]
push ebp
mov ecx, ebx
call fcn.0040bfe0
add esp, 0xc
test eax, eax
je 0x405c1f
mov dword [edi + 0x1024], ebp
jmp 0x405c45
mov eax, dword [esi]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x405c34
push eax
call edi
mov dword [esi], 0
mov eax, dword [ebx]
test eax, eax
je 0x405c43
push eax
call edi
mov dword [ebx], 0
xor eax, eax
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e4c4
add esp, 0x114
ret 8
Function at 0x407270
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4344a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x443d44]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x443d44]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push 0x104
lea eax, [esp + 0x59]
push ebx
mov dword [esp + 0x170], 1
push eax
mov byte [esp + 0x60], bl
call fcn.00420a90
add esp, 0xc
push 0x105
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x18]
call fcn.00402230
push 0x38
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.00420a90
mov edi, dword [esp + 0x17c]
mov ebp, dword [esp + 0x180]
add esp, 0xc
neg esi
sbb esi, esi
lea ecx, [esp + 0x18]
and esi, 5
push ecx
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x20], 0x40
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x407367
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407387
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x168], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x168], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0041e4c4
add esp, 0x158
ret 8
Function at 0x4086e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x433f68
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push edi
mov eax, dword [0x443d44]
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.00413ec5
push eax
lea ecx, [esp + 0x30]
call fcn.004176e4
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.00413ec5
mov ecx, eax
call fcn.004174ed
cmp dword [esi + 0x120], 0
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
jne 0x408801
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x11c]
call fcn.00417651
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.00417889
test edi, edi
je 0x4087bb
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x120]
push edi
push eax
call fcn.0041790e
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 0x40881e
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.00417738
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x44
ret 4
Function at 0x4094f0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x31c
mov eax, dword [0x443d44]
xor eax, esp
mov dword [esp + 0x318], eax
push 0x310
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00420a90
mov ecx, dword [esp + 0x32c]
mov eax, 0x43ad0c
add esp, 0xc
mov dword [esp + 4], ecx
lea edx, [eax + 1]
jmp 0x409530
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409530
sub eax, edx
je 0x409554
push 0x43ad0c
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0041f2fd
add esp, 0xc
mov eax, 0x43ad0c
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409560
sub eax, edx
je 0x409587
push 0x43ad0c
lea eax, [esp + 0x110]
push 0x104
push eax
call fcn.0041f2fd
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x409270
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.0041e4c4
add esp, 0x31c
ret

Function at 0x409920
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x31c
mov eax, dword [0x443d44]
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.00420a90
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409960
sub eax, edx
je 0x409980
push esi
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.0041f2fd
add esp, 0xc
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409985
sub eax, edx
je 0x4099a8
push edi
lea edx, [esp + 0x114]
push 0x104
push edx
call fcn.0041f2fd
add esp, 0xc
mov eax, ebp
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4099b0
sub eax, edx
je 0x4099d3
push ebp
lea eax, [esp + 0x218]
push 0x104
push eax
call fcn.0041f2fd
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x4095c0
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.0041e4c4
add esp, 0x31c
ret
Function at 0x40b380
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x433f08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x443d44]
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.00418ef2
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.00419b2c
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.00419555
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 0x43a9b8
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.004196b6
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.00419555
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x1c]
call fcn.004196b6
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 0x40bc00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x40bc20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x443d44]
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.00420a90
add esp, 0xc
push ebx
push 2
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bc9e
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 0x40bc87
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.0041e4c4
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
mov edi, dword [ebp + 8]
je 0x40bcd8
lea edx, [esp + 0x34]
push edx
push edi
call fcn.0041e9a4
add esp, 8
test eax, eax
je 0x40bcd3
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40bcb0
jmp 0x40bcd8
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 0x40bcfb
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.0041e4c4
mov esp, ebp
pop ebp
ret

Function at 0x40bd20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
mov eax, dword [0x443d44]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
push 0x124
xor edi, edi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00420a90
add esp, 0xc
push edi
push 2
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bd7e
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0041e4c4
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40bdac
lea ecx, [ecx]
cmp ebx, dword [esp + 0x10]
je 0x40bda7
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40bd90
jmp 0x40bdac
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0041e4c4
mov esp, ebp
pop ebp
ret
Function at 0x40c310
Capabilities:
Create thread
Enumerate process modules

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x228
push 0xfffffffffffffffe
push 0x43f858
push 0x420500
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x443d44]
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.00420a90
add esp, 0xc
mov dword [ebp - 0x28], 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 0x40c390
xor eax, eax
jmp 0x40c473
lea edx, [ebp]
push edx
push ebx
call sub.KERNEL32.dll_Module32First
cmp eax, esi
je 0x40c3e5
mov edi, edi
lea ecx, [ebp + 0x120]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40c3c8
test dl, dl
je 0x40c3c4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40c3c8
add eax, 2
add ecx, 2
test dl, dl
jne 0x40c3a8
xor eax, eax
jmp 0x40c3cd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x40c3d7
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 0x40c3a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], esi
je 0x40c389
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
push 0x43bbb8
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 0x40c389
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 0x40c464
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 0x40c464
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.0040c49e
mov eax, dword [ebp - 0x28]
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.0041e4c4
add ebp, 0x228
mov esp, ebp
pop ebp
ret

Function at 0x40da66
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 0x40da7e
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 0x40db26
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 0x414f40
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x414f79
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.0040cca7
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004076a0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4165bd
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x43ad0c
mov ecx, edi
call fcn.00402550
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x416610
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x416623
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0040cca7
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004076a0
jmp 0x416623
mov ecx, esi
call fcn.00416dbd
test eax, eax
je 0x416623
push edi
mov ecx, eax
call fcn.00414f40
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x416c07
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 0x416c4a
call fcn.0041198a
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 0x416c4a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x416c65
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004167be
test ebx, ebx
mov esi, eax
je 0x416c63
test edi, edi
je 0x416c63
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x418ef2
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 0x418f1b
call fcn.0041198a
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 0x418f3e
push eax
push dword [esi + 4]
call fcn.00418e7d
push esi
push eax
mov ecx, 0x446e6c
call fcn.00418b1d
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x419943
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x433ad2
call fcn.00420392
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.00419905
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00402880
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x4199aa
push eax
push dword [esi + 8]
call fcn.00418e7d
push dword [esi + 0xc]
mov ecx, 0x446e6c
push eax
call fcn.00418b1d
mov eax, esi
call fcn.00420431
ret 0x1c

Function at 0x41a7a8
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 0x41a7d6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41a7f4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041a712
jmp 0x41a7f4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41a7f4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041a712
test edi, edi
mov eax, edi
jne 0x41a7de
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x446f08]
test ecx, ecx
je 0x41a8b7
jmp 0x41a7a7
ret 8

Function at 0x41d2ac
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x41d2b5
xor eax, eax
jmp 0x41d31e
cmp dword [esp + 8], 0
jne 0x41d2c1
call fcn.0040cb3d
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00423a7c
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41d2fc
push dword [esi + 0x10]
call fcn.004237c1
test eax, eax
pop ecx
jne 0x41d2fc
mov esi, dword [esi + 0xc]
call fcn.0042071a
push esi
push dword [eax]
push 1
call fcn.0041bfe1
push dword [esi + 0x10]
call fcn.004237f0
test eax, eax
pop ecx
je 0x41d31b
push dword [esi + 0x10]
call fcn.00423715
push eax
call fcn.0040bf50
pop ecx
pop ecx
jmp 0x41d2ea
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x41d327
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x41d331
call fcn.0040cb3d
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00423bb1
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x41d35e
mov esi, dword [esi + 0xc]
call fcn.0042071a
push esi
push dword [eax]
push 1
call fcn.0041bfe1
pop esi
ret 8

Function at 0x41e4c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x443d44]
jne 0x41e4ce
repz ret
jmp fcn.004243f3
Function at 0x42e89a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00426381
xor ebx, ebx
cmp dword [0x447bc8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42e96f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42e8da
xor eax, eax
jmp 0x42ea33
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4398dc
push edi
call esi
cmp eax, ebx
je 0x42e8d3
push eax
call fcn.0042631e
mov dword [esp], 0x4398cc
push edi
mov dword [0x447bc8], eax
call esi
push eax
call fcn.0042631e
mov dword [esp], 0x4398b8
push edi
mov dword [0x447bcc], eax
call esi
push eax
call fcn.0042631e
mov dword [0x447bd0], eax
lea eax, [ebp - 8]
push eax
call fcn.004207f4
test eax, eax
pop ecx
pop ecx
je 0x42e93d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00424501
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42e96f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042631e
cmp eax, ebx
pop ecx
mov dword [0x447bd8], eax
je 0x42e96f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042631e
pop ecx
mov dword [0x447bd4], eax
mov eax, dword [0x447bd4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42e9e8
cmp dword [0x447bd8], esi
je 0x42e9e8
push eax
call fcn.0042638a
pop ecx
call eax
cmp eax, ebx
je 0x42e9b5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x447bd8]
call fcn.0042638a
pop ecx
call eax
test eax, eax
je 0x42e9b5
test byte [ebp - 0x18], 1
jne 0x42e9e8
lea eax, [ebp - 0xc]
push eax
call fcn.0042082b
test eax, eax
pop ecx
je 0x42e9d0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00424501
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42e9df
or dword [ebp + 0x10], 0x200000
jmp 0x42ea19
or dword [ebp + 0x10], 0x40000
jmp 0x42ea19
mov eax, dword [0x447bcc]
cmp eax, esi
je 0x42ea19
push eax
call fcn.0042638a
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42ea19
mov eax, dword [0x447bd0]
cmp eax, esi
je 0x42ea19
push dword [ebp - 4]
push eax
call fcn.0042638a
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x447bc8]
call fcn.0042638a
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret