joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401240
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 0x401259
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40126d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40128e
cmp esi, eax
jae 0x401267
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401280
cmp esi, eax
jae 0x401267
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4021b0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402211
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x4021f3
cmp eax, 2
jne 0x402203
test esi, esi
mov eax, dword [esp + 0x14]
je 0x40220d
mov cl, byte [eax + esi - 1]
test cl, cl
je 0x40220d
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x402b50
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [ecx]
push esi
push edi
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x14]
xor esi, esi
lea edx, [esp + 0xc]
push edx
push esi
push 0x2001f
push esi
push esi
push esi
push eax
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402b82
mov esi, dword [esp + 8]
test eax, eax
mov edi, eax
jne 0x402ba8
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x18]
inc eax
push eax
push edi
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test esi, esi
je 0x402bb3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x404ce0
Capabilities:
Check http status code
Create http request

Disassembly:
push ecx
push edi
push 0
push 0
push 0
push 0
push 0x433024
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
je 0x404dc4
push ebx
mov ebx, dword [esp + 0x10]
push esi
push 0
push 0x4000000
push 0
push 0
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [esp + 0x14], 0
je 0x404d9a
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x20000013
push esi
mov dword [esp + 0x20], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x404d8c
cmp dword [esp + 0x14], 0xc8
jne 0x404d8c
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404d80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
pop ebx
mov eax, 1
pop edi
pop ecx
ret 4
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
jmp 0x404da1
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404dbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret 4
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404de2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop edi
pop ecx
ret 4
Function at 0x405f30
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
push edi
je 0x405f4d
push 0xffffffffffffffff
push eax
mov dword [esi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 4]
xor edi, edi
cmp ecx, edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
jne 0x405f6c
xor eax, eax
jmp 0x405f74
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x3c], edi
xor edx, edx
nop
cmp ecx, edi
je 0x405f9c
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x405f9c
mov eax, dword [ecx + edx*4]
mov eax, dword [eax + 8]
add dword [esi + 0x38], eax
inc edx
jmp 0x405f80
lea ecx, [esp + 8]
push ecx
push edi
push esi
push 0x405e10
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop edi
mov dword [esi + 0x1c], eax
pop esi
mov eax, edx
pop ecx
ret

Function at 0x407560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4310c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x24]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push eax
mov esi, ecx
push ebp
mov dword [esp + 0x18], esi
call fcn.00428db0
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esi], method.CDialog.virtual_0
lea edi, [esi + 0x70]
call fcn.004282b2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
mov byte [esp + 0x28], 1
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
call fcn.0040acb0
add esp, 0xc
push ebp
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.FakeWnd_X_X_X_d
push edi
call fcn.004030b0
mov ecx, dword [esp + 0x2c]
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14

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

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408268
test al, 0x10
je 0x408271
xor eax, eax
pop esi
add esp, 0x24
ret 4
lea eax, [esp + 4]
push eax
push esi
call fcn.00415a37
mov eax, dword [esp + 0x20]
add esp, 8
pop esi
add esp, 0x24
ret 4
Function at 0x408290
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x404
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x1c]
push 0x4334d0
push eax
call fcn.004154b5
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0xc], esi
je 0x408369
mov ebx, dword [edi + 0x20]
mov eax, dword [ebp + 0xc]
push 0
push ebx
push eax
call fcn.00415f42
mov byte [esp + 0x1c], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
push esi
push 0x400
stosw word es:[edi], ax
lea ecx, [esp + 0x24]
push 1
push ecx
stosb byte es:[edi], al
call fcn.00415e67
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x408341
mov edx, dword [ebp + 0xc]
push edx
push esi
lea eax, [esp + 0x18]
push 1
push eax
call fcn.0041540d
add esp, 0x10
cmp esi, eax
jne 0x408341
add ebx, esi
mov esi, dword [ebp + 8]
cmp ebx, dword [esi + 0x24]
jae 0x408344
mov ecx, dword [esp + 0xc]
push ecx
push 0x400
lea edx, [esp + 0x18]
push 1
push edx
call fcn.00415e67
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x408300
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0xc]
push eax
call fcn.004152b5
mov eax, dword [esi + 0x24]
add esp, 4
cmp ebx, eax
jae 0x408374
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esi + 0x34], 3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x408390
Capabilities:
Delete file

Disassembly:
sub esp, 0xc8
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
xor edi, edi
cmp eax, edi
jne 0x4083ae
pop edi
xor eax, eax
pop esi
add esp, 0xc8
ret
mov eax, dword [esi + 8]
xor edx, edx
cmp eax, edi
push ebx
jle 0x4083da
mov eax, dword [esi + 4]
xor ecx, ecx
lea ecx, [ecx]
mov dword [ecx + eax + 0x34], edi
mov eax, dword [esi + 4]
mov ebx, dword [ecx + eax + 0x30]
mov dword [esp + edx*4 + 0xc], ebx
mov ebx, dword [esi + 8]
inc edx
add ecx, 0x38
cmp edx, ebx
jl 0x4083c0
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, edi
jle 0x408421
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ecx]
mov edx, dword [esi + 4]
mov eax, dword [edi + edx + 0x1c]
push eax
call ebp
mov ecx, dword [esi + 4]
mov dword [edi + ecx + 0x30], 0xffffffff
mov eax, dword [esi + 8]
inc ebx
add edi, 0x38
cmp ebx, eax
jl 0x408400
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0xc8
ret
Function at 0x408520
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi - 0xc]
push edi
mov edi, dword [esp + 0xc]
push 0
push eax
push esi
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x408565
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40855e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
xor eax, eax
pop esi
ret 8
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40857f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, 1
pop esi
ret 8
Function at 0x4088f0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4310f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edx, dword [esi + 8]
or ebp, 0xffffffff
xor eax, eax
test edx, edx
mov ecx, 0x31
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebp
mov dword [esp + 0xe0], 0
rep stosd dword es:[edi], eax
jle 0x40894e
mov ecx, dword [esi + 4]
add ecx, 0x30
lea ecx, [ecx]
mov edi, dword [ecx]
mov dword [esp + eax*4 + 0x10], edi
inc eax
add ecx, 0x38
cmp eax, edx
jl 0x408940
mov ebx, dword [esp + 0xe8]
mov eax, dword [ebx - 0xc]
test eax, eax
je 0x40896c
lea eax, [esp + 0xe8]
lea ecx, [esi + 0x10]
push eax
call fcn.00401ee0
mov edx, dword [esi + 8]
push 0x186a0
push 1
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 8]
xor eax, eax
test edx, edx
jle 0x40899e
mov ecx, dword [esi + 4]
add ecx, 0x34
cmp dword [ecx], 3
je 0x408a06
inc eax
add ecx, 0x38
cmp eax, edx
jl 0x408991
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebp
je 0x4089be
test al, 1
je 0x4089b3
and eax, 0xfffffffe
mov ecx, dword [esi + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi + 8]
test eax, eax
jle 0x408a6b
mov eax, dword [esi + 0x10]
push 0x432b58
push eax
call fcn.004154b5
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x408a1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebx - 0x10]
mov dword [esp + 0xe0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x408ada
lea eax, [ebx - 0x10]
mov dword [esp + 0xe0], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jmp 0x408ada
mov eax, dword [esi + 8]
xor edi, edi
test eax, eax
jle 0x408a5f
xor ebx, ebx
lea ebx, [ebx]
mov eax, dword [esi + 4]
push ebp
add eax, ebx
push eax
mov ecx, esi
call fcn.00408290
test eax, eax
je 0x408aa9
mov ecx, dword [esi + 4]
mov dword [ebx + ecx + 0x30], 0xffffffff
mov eax, dword [esi + 8]
inc edi
add ebx, 0x38
cmp edi, eax
jl 0x408a30
mov ebx, dword [esp + 0xe8]
push ebp
call fcn.004152b5
add esp, 4
or ebp, 0xffffffff
lea eax, [ebx - 0x10]
mov dword [esp + 0xe0], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x408a89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd4
ret 4
push ebp
call fcn.004152b5
imul edi, edi, 0x38
mov edx, dword [esi + 4]
mov eax, dword [esp + 0xec]
or ecx, 0xffffffff
add eax, 0xfffffff0
mov dword [edi + edx + 0x30], ecx
add esp, 4
mov dword [esp + 0xe0], ecx
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408ae4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x408a8e
Function at 0x409e80
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
push esi
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409ee2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x40a8f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x431348
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x40a9f0
push esi
call fcn.004282b2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x14], 0
jge 0x40a958
push 0x104
lea ecx, [esp + 0xc]
call fcn.00401af0
mov esi, dword [esp + 8]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x40a96c
xor eax, eax
jmp 0x40a980
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a971
sub eax, edx
js 0x40aa00
cmp eax, dword [esi - 8]
jg 0x40aa00
push edi
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.00401de0
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40a9c5
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x40a9c5
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x78], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x40a9ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.00401220
int3
Function at 0x40acb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
cmp edi, 2
jne 0x40ace7
movzx eax, word [esp + 0xc]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov esi, eax
push 0
push esi
call fcn.0040ac60
add esp, 8
push esi
mov edi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, edi
pop edi
pop esi
ret
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x40acf7
call fcn.0042d643
mov esi, dword [eax + 0xc]
movzx edx, word [esp + 0xc]
push ebx
push ebp
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebp
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push 0
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edx, dword [esp + 0x18]
push 0
push edx
call fcn.0040ac10
add esp, 8
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
ret
Function at 0x40c276
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40c2c9
call fcn.0042d643
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40c2c9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40c2bf
xor eax, eax
jmp 0x40c3e2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40c2f9
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40c2f9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40c3df
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40c326
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040cd0a
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40c3df
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40c36f
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40c36f
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40c369
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040cd0a
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40c3cf
and dword [ebp + 0xc], 0
jmp 0x40c3cf
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40c3cf
push 0xc
call fcn.004277b8
mov esi, eax
test esi, esi
pop ecx
je 0x40c3b1
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40c3b3
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40c3ca
push dword [ebp - 8]
call fcn.00422eda
jmp 0x40c3cf
call fcn.00422eb1
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40c334
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4158e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00417b3d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41590a
test byte [esp + 8], 2
je 0x41590a
call fcn.00417b2b
mov dword [eax], 0xd
call fcn.00417b34
mov dword [eax], 5
jmp 0x4158e3
xor eax, eax
ret
Function at 0x416226
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00415030
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4162c1
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x44435c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4162c1
cmp eax, 1
je 0x4162e2
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4162c1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41628e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4162bd
xor eax, eax
inc eax
jmp 0x416301
cmp edi, eax
jae 0x4162c5
xor eax, eax
jmp 0x416301
cmp eax, esi
jae 0x4162cc
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x44435c]
jmp 0x4162e5
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416352
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x436c48
call fcn.00416ca4
mov edi, 0x94
mov eax, edi
call fcn.00415030
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x44435c], ecx
mov eax, dword [esi + 4]
mov dword [0x444368], eax
mov edx, dword [esi + 8]
mov dword [0x44436c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x444360], esi
cmp ecx, 2
je 0x4163b2
or esi, 0x8000
mov dword [0x444360], esi
shl eax, 8
add eax, edx
mov dword [0x444364], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4163ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4163ed
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x416405
cmp eax, 0x20b
je 0x4163f2
mov dword [ebp - 0x1c], esi
jmp 0x416419
cmp dword [ecx + 0x84], 0xe
jbe 0x4163ed
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x416413
cmp dword [ecx + 0x74], 0xe
jbe 0x4163ed
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004187f4
pop ecx
test eax, eax
jne 0x41642d
push 0x1c
call fcn.0041632e
pop ecx
call fcn.00419c38
test eax, eax
jne 0x41643e
push 0x10
call fcn.0041632e
pop ecx
call fcn.0041d781
mov dword [ebp - 4], esi
call fcn.0041d583
test eax, eax
jge 0x416457
push 0x1b
call fcn.00416309
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x445c30], eax
call fcn.0041d461
mov dword [0x444348], eax
call fcn.0041d3bf
test eax, eax
jge 0x41647d
push 8
call fcn.00416309
pop ecx
call fcn.0041d18c
test eax, eax
jge 0x41648e
push 9
call fcn.00416309
pop ecx
push 1
call fcn.00416f2b
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4164a4
push eax
call fcn.00416309
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041d12f
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4164c5
movzx eax, word [ebp - 0x40]
jmp 0x4164c8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00422604
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4164e6
push edi
call fcn.00417058
call fcn.0041707a
jmp 0x416518
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00416cdf
ret