joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e8a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x481843
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00470ce0
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00476677
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00479043
test eax, eax
je 0x43e9bc
mov ecx, dword [esp + 0x3c]
call fcn.004766a4
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43e980
push edi
mov ecx, esi
call fcn.00473c41
mov ecx, esi
call fcn.0043eb70
cmp dword [esp + 0x38], 1
jne 0x43e9b5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00473dd4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x440bb0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440be3
push esi
call fcn.00443d20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x440bdc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x440c69
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440c52
mov eax, dword [esi + 8]
test eax, eax
je 0x440c07
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x440c4e
cmp eax, 2
je 0x440c52
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x440bfa
cmp eax, 3
je 0x440c2d
cmp eax, 1
jne 0x440bfa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x440bfa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x440bfa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440c90
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440c78
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440c90
add esp, 4
pop esi
ret
Function at 0x44d5b0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x44d5fa
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x44d629
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x44d66b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x453fd0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x454073
test eax, eax
jbe 0x454073
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x454073
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45401e
xor esi, esi
jmp 0x454024
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45404f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00404e80
add esi, eax
push esi
mov ebx, esi
call fcn.00404e80
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x454030
pop ebp
test edi, edi
pop edi
jne 0x454073
test ebx, ebx
je 0x454073
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00460250
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x454195
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4542ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4542ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.00471132
mov esi, eax
test esi, esi
je 0x4542ad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4542ad
mov ecx, esi
call fcn.00454120
cmp edi, eax
jge 0x4542ad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x454233
mov dword [esp + 0x34], 1
jmp 0x45428e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4542ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004529c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4704bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0047a634
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4704ec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004704ff
pop edi
pop esi
pop ebx
ret 8

Function at 0x471ad6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x471b0e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046fb46
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046fb1e
jmp 0x471b1a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4733c7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x473409
call fcn.0047a634
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x473409
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x473400
xor eax, eax
jmp 0x473411
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00473417
pop edi
pop esi
pop ebx
ret 4

Function at 0x47ab64
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 0x47ab92
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47abb0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047aaca
jmp 0x47abb0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47abb0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047aaca
test edi, edi
mov eax, edi
jne 0x47ab9a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404b6a
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, 0x40707b
call fcn.004065c0
sub esp, 0x40
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x404c96
push ebx
push 2
call dword [sym.imp.USER32.dll_GetClipboardData]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x404c8f
push edi
lea ecx, [ebp - 0x24]
call fcn.00405ede
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.00405ede
mov byte [ebp - 4], 1
call fcn.00403c62
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call sub.MFC42u.dll_CWnd::FromHandle
push dword [eax + 0x20]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42u.dll_CDC::FromHandle
mov edi, eax
lea eax, [ebp - 0x24]
push eax
mov eax, edi
call fcn.004052e8
lea eax, [ebp - 0x34]
push eax
mov eax, edi
call fcn.004052e8
lea eax, [ebp - 0x4c]
push eax
push 0x18
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0x48]
push dword [ebp - 0x10]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x50], eax
lea eax, [ebp - 0x34]
push eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
call fcn.00403c8f
cmp edi, ebx
jne 0x404c26
xor eax, eax
jmp 0x404c29
mov eax, dword [edi + 4]
push dword [esi + 0x50]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [esi + 0x64], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403c8f
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x4c]
push 0xcc0020
push ebx
push ebx
push dword [ebp - 0x30]
push eax
push ecx
push ebx
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [ebp - 0x24]
call sub.MFC42u.dll_CDC::DeleteDC
push dword [edi + 4]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CDC::CDC
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call sub.MFC42u.dll_CDC::CDC
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x78], 1
mov dword fs:[0], ecx
leave
ret
Function at 0x40509a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
lea eax, [ebp - 0x34]
push eax
push 0x18
push dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x28
push 0x40
call edi
mov esi, eax
mov dword [esi], 0x28
mov eax, dword [ebp - 0x30]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
add eax, 7
push 8
cdq
pop ecx
idiv ecx
mov word [esi + 0xc], 1
mov word [esi + 0xe], 0x20
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x10], ebx
imul eax, dword [esi + 8]
shl eax, 5
push eax
push ebx
mov dword [esi + 0x14], eax
call edi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x405126
push ebx
push esi
push eax
movzx eax, word [esi + 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x40512d
xor eax, eax
jmp 0x4051e0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov word [ebp - 0x1c], 0x4d42
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x20]
lea eax, [ecx + eax*4]
mov ecx, dword [esi]
lea eax, [eax + ecx + 0xe]
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], bx
mov word [ebp - 0x14], bx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi]
lea eax, [ecx + eax*4 + 0xe]
push ebx
mov dword [ebp - 0x12], eax
lea eax, [ebp - 4]
push eax
push 0xe
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x4051d4
push ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x20]
lea eax, [eax*4 + 0x28]
push eax
push esi
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x4051d4
mov eax, dword [ebp - 8]
mov esi, dword [esi + 0x14]
mov dword [ebp + 0x10], eax
mov edi, 0x1000
jmp 0x4051b3
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4051d4
sub esi, edi
add dword [ebp + 0x10], edi
cmp esi, edi
lea eax, [ebp - 4]
push ebx
push eax
ja 0x40519d
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4051d4
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4053c4
Capabilities:
Get system information on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
lea eax, [ebp - 0x24]
push eax
mov dword [esi], 0x4025f4
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 4], eax
imul eax, dword [ebp + 8]
shr eax, 0x10
inc eax
push 0x104
shl eax, 0x10
push 0x2000
mov edi, eax
push edi
push 0
call ebx
test eax, eax
mov dword [esi + 0xc], eax
je 0x40543a
push 4
push 0x1000
push dword [esi + 4]
push eax
call ebx
test eax, eax
mov dword [esi + 0x10], eax
je 0x40543a
mov ecx, dword [esi + 4]
sub edi, ecx
add edi, dword [esi + 0xc]
add eax, 4
mov dword [esi + 0x14], edi
mov dword [esi + 8], eax
mov dword [esi + 0x18], 4
mov dword [esi + 0x1c], ecx
cmp dword [esi + 0xc], 0
pop edi
pop ebx
je 0x405448
cmp dword [esi + 0x10], 0
jne 0x405453
push 0x4025f8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
and dword [esi + 0x20], 0
or dword [esi + 0x24], 0xffffffff
mov eax, esi
leave
ret 4
Function at 0x405fb0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x407250
call fcn.00406248
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x400000], 0x5a4d
jne 0x405ff8
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x405ff8
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x406011
cmp ecx, 0x20b
je 0x405ffe
and dword [ebp - 0x1c], 0
jmp 0x406025
cmp dword [eax + 0x84], 0xe
jbe 0x405ff8
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x40601f
cmp dword [eax + 0x74], 0xe
jbe 0x405ff8
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 2
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x40970c], edi
mov dword [0x409710], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4092e4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4092e0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x409708], eax
call fcn.00406242
cmp dword [section..data], 0
jne 0x406085
push fcn.00406242
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00406230
push 0x401620
push 0x40161c
call sub.msvcrt.dll__initterm
mov eax, dword [0x4092dc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x4092d8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x401618
push 0x4015f4
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], 0
jne 0x4060e9
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x40619a
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp word [eax], 0x22
jne 0x40612c
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x406107
cmp cx, 0x22
jne 0x4060f4
cmp word [eax], 0x22
jne 0x406112
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x406120
cmp cx, 0x20
jbe 0x40610d
test byte [ebp - 0x54], 1
je 0x406139
movzx ecx, word [ebp - 0x50]
jmp 0x40613c
cmp word [eax], 0x20
jbe 0x406112
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x40612c
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call fcn.00406468
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], 0
jne 0x40615c
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x406198
mov eax, esi
call fcn.00406283
ret
Function at 0x406370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x401660
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4063c8
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x40169c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4063bb
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4063ca
xor eax, eax
pop esi
leave
ret 4

Function at 0x40651c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4092cc]
jne 0x406525
ret
jmp 0x40652a
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4092cc]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x409700]
test eax, eax
je 0x40654e
call eax
cmp dword [fcn.00409704], 0
je 0x406595
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [fcn.00409704]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.0040651c
add ebp, 0x2a8
leave
ret
Function at 0x406695
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4067f5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
mov dword [ebp - 0xc], esi
je 0x4067f4
push ebx
push edi
mov edi, dword [esi]
add edi, 0x40
push edi
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
test ebx, ebx
pop ecx
je 0x4067f2
mov ecx, edi
mov eax, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx]
add esi, ebx
xor edi, edi
mov dword [ebp + 0xc], edi
mov ecx, dword [ebp + 0xc]
mov ecx, dword [esi + ecx*4]
xor eax, eax
cmp ecx, dword [eax*8 + 0x40237c]
je 0x406711
inc eax
cmp eax, 4
jl 0x406700
jmp 0x406759
lea edi, [eax*8 + 0x402380]
push dword [edi]
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_GetSysColor]
push dword [edi]
movzx eax, ah
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp + 8]
mov ch, al
mov eax, edi
push dword [eax]
shl ecx, 8
mov dword [ebp + 8], ecx
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
or ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [esi + eax*4], ecx
xor edi, edi
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x10
jl 0x4066f8
mov esi, dword [ebx + 4]
mov eax, dword [ebx + 8]
push edi
mov dword [ebp - 4], esi
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push esi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push dword [ebp - 8]
mov dword [ebp + 8], eax
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp + 8], edi
je 0x4067e7
push dword [ebp + 8]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [0x409380]
call esi
mov cl, byte [ebx + 0xe]
push 0xcc0020
mov dword [ebp - 8], eax
push edi
xor eax, eax
push ebx
inc eax
shl eax, cl
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax*4 + 0x28]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
push edi
push dword [0x409380]
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [ebp - 8]
push dword [0x409380]
call esi
push ebx
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp + 8]
pop ecx
pop edi
pop ebx
pop esi
leave
ret 8