joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401600
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x1020
call fcn.00403908
sub esp, eax
mov esi, edx
lea edi, [ebp - 0x100c]
mov eax, dword [esp + eax]
mov dword [esp], 0
mov ebx, eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], 0x800
mov dword [esp + 8], edi
mov dword [esp + 4], 0x67
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
test eax, eax
jne 0x401661
test byte [section..data], 2
jne 0x40171f
mov eax, edi
call fcn.00401050
mov eax, 0x406046
call fcn.00401050
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x1014], esi
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x1010]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0x3100
call dword [sym.imp.kernel32.dll_FormatMessageW]
sub esp, 0x1c
test eax, eax
jne 0x4016f8
test byte [section..data], 2
jne 0x4016d2
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.FormatMessage_failed_n
mov dword [esp + 8], str.fatal_error
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call fcn.00401500
jmp 0x4016c5
mov eax, dword [ebp - 0x1010]
call fcn.00401050
mov eax, dword [ebp - 0x1010]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
push eax
mov eax, 0x406062
call fcn.00401050
jmp 0x4016c5
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.LoadString_failed__error__ld_n
mov dword [esp + 8], str.fatal_string_error
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call fcn.00401500
jmp 0x401661
Function at 0x403860
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x4038d0
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401f10
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]

Function at 0x4059f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426d76
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45190c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebx], 0x428da8
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
or dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], ecx
mov eax, dword [ecx + 4]
and dword [ebx + 0x8c], 0xffffffc0
and byte [ebx + 0x91], 0x80
or dword [ebx + 0x94], 0xffffffff
or dword [ebx + 0x98], 0xffffffff
mov dword [ebx + 0x64], eax
xor eax, eax
inc eax
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], edx
mov byte [ebx + 0x90], 0x4f
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], edx
mov dword [ebx + 0xa8], edx
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x405acb
mov eax, dword [ecx + 0x24]
mov dword [ebx + 0x78], eax
mov dword [ecx + 0x24], ebx
mov eax, dword [ebx + 0x5c]
lea edi, [ebx + 0x58]
push 1
push edx
push edi
mov dword [eax + 4], ebx
lea esi, [ebx + 0x54]
mov ecx, dword [ebx + 0x60]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
push 4
push dword [esi]
mov esi, dword [0x4280f8]
push 6
call esi
push 8
push dword [edi]
mov dword [ebx + 0x7c], eax
push 2
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x88], eax
mov eax, ebx
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401e60
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 0x401e79
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401eb4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401eb0
lea ebx, [ebx]
cmp esi, eax
jae 0x401eb4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401ea0
cmp esi, eax
jb 0x401eba
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 0x4021d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x4021ff
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret
xor eax, eax
ret

Function at 0x402210
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
mov eax, dword [0x45593c]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push edi
call dword [0x456cf8]
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x402256
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00428dec
add esp, 0x12c
ret
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40223d
lea ecx, [ecx]
lea ecx, [esp + 0x2c]
push ecx
call fcn.0043fcf0
push 0x442c38
push eax
call fcn.00428e80
add esp, 0xc
test eax, eax
je 0x402291
mov edi, 1
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402270
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x130]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00428dec
add esp, 0x12c
ret

Function at 0x4022c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
mov eax, dword [0x45593c]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push edi
call dword [0x456cf8]
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x402306
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00428dec
add esp, 0x12c
ret
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4022ed
lea ecx, [ecx]
lea ecx, [esp + 0x2c]
push ecx
call fcn.0043fcf0
push 0x442c44
push eax
call fcn.00428e80
add esp, 0xc
test eax, eax
je 0x402341
mov edi, 1
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402320
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x130]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00428dec
add esp, 0x12c
ret
Function at 0x402430
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x45593c]
xor eax, esp
mov dword [esp + 0x804], eax
mov eax, dword [esp + 0x810]
push eax
push ecx
lea eax, [esp + 0xc]
push str._s_s
push eax
call fcn.004299c4
add esp, 0x10
lea eax, [esp + 4]
call fcn.00402370
test eax, eax
jne 0x402500
movzx ecx, word [esp + 0x80c]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x442c50
push ecx
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4024fe
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4024fe
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4024fd
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x28]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4024fd
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00428dec
add esp, 0x808
ret

Function at 0x4025d0
Capabilities:
Resume thread
Terminate thread

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x40262a
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 0x14]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402619
mov eax, dword [esi + 0x14]
push 0xfffffc18
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, 1
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14], 0
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, edi
pop edi
pop esi
ret
Function at 0x408664
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x18]
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, esi
call fcn.004025d0
test eax, eax
jl 0x4086c0
push 0
push 0
push esi
push 0x405300
push 0
push 0
call fcn.0042a119
add esp, 0x18
test eax, eax
mov dword [esi + 0x14], eax
jne 0x4086be
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4086ae
call esi
pop esi
ret 4
call esi
and eax, 0xffff
or eax, 0x80070000
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x409230
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x45593c]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x114
lea eax, [esp + 4]
push 0
push eax
call fcn.00428e00
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x409285
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00428dec
add esp, 0x118
ret
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.00428dec
add esp, 0x118
ret
Function at 0x40b170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45593c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
call dword [0x456cf8]
mov esi, dword [ebp + 8]
xor edi, edi
cmp esi, edi
mov ebx, eax
mov dword [ebp - 8], edi
je 0x40b1c2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x40b1c2
lea edi, [eax + eax]
mov eax, edi
call fcn.00429d60
mov eax, esp
push ebx
push edi
push esi
push eax
call fcn.00401e20
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0xc]
mov ecx, dword [esi]
add eax, 1
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40b1ed
mov dword [esi + 4], 4
jmp 0x40b1f2
mov eax, 1
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428dec
mov esp, ebp
pop ebp
ret 4

Function at 0x40b210
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x45593c]
xor eax, ebp
mov dword [ebp + 0x390], eax
mov eax, dword [ebp + 0x39c]
push ebx
push esi
push edi
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], eax
call dword [0x456cf8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x80]
push 0
lea ecx, [ebp - 0x74]
push ecx
mov ecx, dword [eax]
push 0x400
lea edx, [ebp - 0x70]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x40b275
cmp eax, 0xea
jne 0x40b2f7
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jg 0x40b2bb
lea eax, [edi + edi]
call fcn.00429d60
mov esi, esp
test esi, esi
je 0x40b2bb
mov ecx, dword [ebp - 0x78]
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x70]
push eax
push 0
push ecx
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40b2bd
xor eax, eax
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b2c0
mov edi, dword [ebp - 0x7c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40b2d3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x40b243
mov eax, dword [ebp - 0x74]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x390]
xor ecx, ebp
call fcn.00428dec
add ebp, 0x394
mov esp, ebp
pop ebp
ret 4
Function at 0x40b370
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, ecx
xor ebx, ebx
push edi
push str.Kernel32
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call ebp
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
je 0x40b3c7
push 0x445b08
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
push 0x445af8
push eax
call edi
mov ecx, dword [esi + 4]
push 0x445ae8
push ecx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
cmp dword [esi + 8], ebx
je 0x40b3d6
cmp dword [esi + 0xc], ebx
je 0x40b3d6
cmp dword [esi + 0x10], ebx
jne 0x40b41d
cmp dword [esi + 4], ebx
je 0x40b41d
push 0x445adc
call ebp
cmp eax, ebx
mov dword [esi], eax
je 0x40b41d
push str.ZwQuerySystemInformation
push eax
call edi
mov edx, dword [esi + 4]
push 0x445ab0
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
push 0x445aa4
push eax
call edi
mov ecx, dword [esi + 4]
push 0x445a98
push ecx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x40b5f0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x668
mov eax, dword [0x45593c]
xor eax, esp
mov dword [esp + 0x664], eax
push esi
mov esi, dword [esp + 0x670]
test esi, esi
mov dword [esp + 4], ecx
jne 0x40b62e
xor eax, eax
pop esi
mov ecx, dword [esp + 0x664]
xor ecx, esp
call fcn.00428dec
add esp, 0x668
ret 4
push edi
push esi
lea eax, [esp + 0x260]
push 0x445b48
push eax
call fcn.004299c4
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b666
xor eax, eax
jmp 0x40b6fa
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [ecx]
lea eax, [esp + 0x3c]
push eax
push esi
lea ecx, [esp + 0x268]
push str._s_s
push ecx
call fcn.004299c4
add esp, 0x10
test byte [esp + 0x10], 0x10
je 0x40b6d1
lea edx, [esp + 0x3c]
push 0x445b44
push edx
call fcn.0042abfc
add esp, 8
test eax, eax
je 0x40b6df
lea eax, [esp + 0x3c]
push 0x445b3c
push eax
call fcn.0042abfc
add esp, 8
test eax, eax
je 0x40b6df
lea ecx, [esp + 0x260]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.0040b5f0
jmp 0x40b6df
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push edi
call ebp
test eax, eax
jne 0x40b670
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop ebp
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
xor ecx, esp
call fcn.00428dec
add esp, 0x668
ret 4
Function at 0x40b820
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
cmp dword [ecx + 4], 0
push esi
je 0x40b877
cmp dword [ecx + 8], 0
je 0x40b84a
cmp dword [ecx + 0xc], 0
je 0x40b84a
cmp dword [ecx + 0x10], 0
je 0x40b84a
mov edx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push edx
call fcn.0040b720
jmp 0x40b871
cmp dword [ecx + 0x14], 0
je 0x40b877
cmp dword [ecx + 0x1c], 0
je 0x40b877
cmp dword [ecx + 0x18], 0
je 0x40b877
cmp dword [ecx + 0x20], 0
je 0x40b877
mov edx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push edx
call fcn.0040b450
mov esi, eax
test esi, esi
jne 0x40b87d
xor al, al
pop esi
ret 4
mov eax, dword [esp + 8]
push edi
push eax
push 0x40b5a0
call dword [sym.imp.USER32.dll_EnumWindows]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40b8bd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp edi, 1
pop edi
sete al
pop esi
ret 4
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp edi, edi
pop edi
sete al
pop esi
ret 4
Function at 0x40fc23
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40fc5c
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040fbbc
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040ea68
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x411734
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 0x411777
call fcn.00416197
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x411777
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x411792
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004112ee
test ebx, ebx
mov esi, eax
je 0x411790
test edi, edi
je 0x411790
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x414db3
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 0x414ddc
call fcn.00416197
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_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x414dff
push eax
push dword [esi + 4]
call fcn.00414d3e
push esi
push eax
mov ecx, 0x4591f4
call fcn.004149d7
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x415641
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x440adc
call fcn.0042ad31
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00415603
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401680
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 4], eax
jne 0x4156a7
push eax
push dword [esi + 8]
call fcn.00414d3e
push dword [esi + 0xc]
mov ecx, 0x4591f4
push eax
call fcn.004149d7
mov eax, esi
call fcn.0042ae09
ret 0x18
Function at 0x4181cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x418212
call fcn.00416197
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x418212
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x418255
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41823e
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41823e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x418252
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x419e04
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 0x419e32
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419e50
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00419d6e
jmp 0x419e50
mov eax, dword [esi + 0x14]
test eax, eax
je 0x419e50
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00419d6e
test edi, edi
mov eax, edi
jne 0x419e3a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x459270]
test ecx, ecx
je 0x419f13
jmp 0x419e03
ret 8

Function at 0x41c4b9
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x41c4c2
xor eax, eax
jmp 0x41c52b
cmp dword [esp + 8], 0
jne 0x41c4ce
call fcn.004119ef
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0042dc9c
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41c509
push dword [esi + 0x10]
call fcn.00429f64
test eax, eax
pop ecx
jne 0x41c509
mov esi, dword [esi + 0xc]
call fcn.0042b0e0
push esi
push dword [eax]
push 1
call fcn.0041662c
push dword [esi + 0x10]
call fcn.00429f93
test eax, eax
pop ecx
je 0x41c528
push dword [esi + 0x10]
call fcn.0042d993
push eax
call fcn.00401d40
pop ecx
pop ecx
jmp 0x41c4f7
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x41c534
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x41c53e
call fcn.004119ef
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0042ddd1
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x41c56b
mov esi, dword [esi + 0xc]
call fcn.0042b0e0
push esi
push dword [eax]
push 1
call fcn.0041662c
pop esi
ret 8

Function at 0x428dec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45593c]
jne 0x428df6
repz ret
jmp fcn.004311cc