joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1208c880
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x120c96c8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x1208c8b9
inc eax
mov dword [esi + 0x10], eax
jmp 0x1208c9cc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x1208c8cd
mov eax, 0xffffffc7
jmp 0x1208c9ce
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x1208c8de
cmp dword [esi + 8], eax
jne 0x1208c8cd
cmp dword [esi + 8], eax
jne 0x1208c8f7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x1208c8f7
mov eax, 0xffffffc7
jmp 0x1208c9ce
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x1208c90b
push eax
mov ecx, ebx
call fcn.1208c0b0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.120628f0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x1208c93c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.12062910
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.1208b820
test eax, eax
mov dword [esp + 0x38], eax
je 0x1208c96f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x120cdca8
call fcn.12062af0
mov eax, dword [esp + 0x38]
jmp 0x1208c9ce
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.1208c6e0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x1208c9b3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.1208c700
mov esi, eax
test esi, esi
jne 0x1208c9e3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.1208c6e0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x1208c985
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x120cdca8
call fcn.12062af0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x120cdca8
call fcn.12062af0
mov eax, esi
jmp 0x1208c9ce

Function at 0x1208faa0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x1208fb00
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x1208fb00
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x1208fb00
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x1208fb00
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x1208fb40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x12095a20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x120c9cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.120c3258
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.120953c0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.120c3186
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.120bfa61
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.120bfa61
push 1
push 0
push 0
mov ecx, esi
call fcn.120bfa09
push 1
push 0
push 1
mov ecx, esi
call fcn.120bfa09
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.120c32ca
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x12095ba0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x120c9d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.120c3258
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.120953c0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.120c3186
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x12095c64
cmp dword [esp + 0x40], 1
jne 0x12095c62
cmp ecx, eax
jge 0x12095c64
mov eax, ecx
cmp eax, 0xc8
jge 0x12095c70
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.12095a20
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.120c32ca
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x120963e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x120c9d83
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.120bde98
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.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.120c3500
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.120c4a1c
test eax, eax
je 0x120964fc
mov ecx, dword [esp + 0x3c]
call fcn.120c352d
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 0x120964c0
push edi
mov ecx, esi
call fcn.120c0b7a
mov ecx, esi
call fcn.12096660
cmp dword [esp + 0x38], 1
jne 0x120964f5
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.120c0cb5
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 0x12098f10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x12098f43
push esi
call fcn.1209c020
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x12098f3c
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 0x12098fc9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x12098fb2
mov eax, dword [esi + 8]
test eax, eax
je 0x12098f67
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 0x12098fae
cmp eax, 2
je 0x12098fb2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x12098f5a
cmp eax, 3
je 0x12098f8d
cmp eax, 1
jne 0x12098f5a
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 0x12098f5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x12098f5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.12098ff0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x12098fd8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.12098ff0
add esp, 4
pop esi
ret
Function at 0x120a7c70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
cmp eax, 0x182
je 0x120a7cab
cmp eax, 0x1e6
je 0x120a7cab
push eax
push ebx
push ecx
push edx
mov eax, 1
cpuid
mov dword [ebp - 4], edx
pop edx
pop ecx
pop ebx
pop eax
mov eax, dword [ebp - 4]
pop ebx
shr eax, 0x17
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x120a7d00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x120ca258
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.120a81f0
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x20], 0
call fcn.120a82b0
test eax, eax
jge 0x120a7d67
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.120a8220
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
lea ecx, [esp + 0xc]
call fcn.120a8230
mov edi, eax
push edi
call fcn.120bc62b
mov esi, eax
add esp, 4
test esi, esi
jne 0x120a7db1
lea ecx, [esp + 0xc]
call fcn.120a8250
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.120a8220
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.120a82d0
cmp edi, eax
je 0x120a7df9
push esi
call fcn.120bc654
add esp, 4
lea ecx, [esp + 0xc]
call fcn.120a8250
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.120a8220
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
lea ecx, [esp + 0xc]
call fcn.120a8250
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push ecx
push edx
push esi
push edi
push eax
mov ecx, ebx
call fcn.120a7ff0
push esi
mov edi, eax
call fcn.120bc654
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.120a8220
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
Function at 0x120a7ff0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x120ca2f4
push eax
mov eax, dword [esp + 0x20]
mov dword fs:[0], esp
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x15c]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x168]
cmp eax, esi
jne 0x120a802d
push edi
push ebx
call fcn.120a7e50
cmp eax, 5
ja case.default.0x120a8036
jmp dword [eax*4 + 0x120a81d8]
push str.Error:_CDXImage___Unsupported_Image_type.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x120a8036
lea ecx, [esp + 0xc]
call fcn.120a98b0
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x160]
push eax
push edi
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], esi
call fcn.120a9920
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a98f0
jmp case.default.0x120a8036
lea ecx, [esp + 0xc]
call fcn.120a8320
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x160]
push edx
push edi
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 1
call fcn.120a8420
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a8360
jmp case.default.0x120a8036
lea ecx, [esp + 0xc]
call fcn.120a9350
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x160]
push ecx
push edi
push ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 2
call fcn.120a9400
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a9390
jmp case.default.0x120a8036
lea ecx, [esp + 0xc]
call fcn.120a8ff0
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x160]
push eax
push edi
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 3
call fcn.120a90e0
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a9030
jmp case.default.0x120a8036
lea ecx, [esp + 0xf0]
call fcn.120a8db0
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x160]
push edx
push edi
push ebx
push eax
lea ecx, [esp + 0x100]
mov dword [esp + 0x168], 4
call fcn.120a8e40
lea ecx, [esp + 0xf0]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.120a8df0
mov ecx, dword [esp + 0x150]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x150
ret 0x14

Function at 0x120a82d0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 8]
neg eax
sbb eax, eax
and eax, ecx
ret 8
Function at 0x120ab660
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.ChangeDisplaySettingsA
push edi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0x40
push 4
push esi
call ebp
push str.ClipCursor
push edi
mov dword [esi], 0x8c2
call ebx
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push 0x40
push 4
push esi
call ebp
push str.RegisterClassA
push edi
mov dword [esi], 0x4c2
call ebx
lea edx, [esp + 0x10]
mov esi, eax
push edx
push 0x40
push 0xa
push esi
call ebp
mov ecx, esi
mov eax, 0x90909090
add esi, 5
push str.SetCursorPos
mov dword [ecx], eax
push edi
lea edx, [esi + 6]
mov byte [ecx + 4], al
mov eax, 0x120ab5c0
sub eax, esi
mov dword [0x120fe7c4], edx
sub eax, 5
mov dword [esi], 0xe9
mov dword [esi + 1], eax
call ebx
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push 0x40
push 5
push esi
call ebp
mov eax, 0x120ab610
lea edx, [esi + 5]
sub eax, esi
mov dword [0x120fe7c8], edx
sub eax, 5
mov dword [esi], 0xe9
mov dword [esi + 1], eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x120bec74
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x120becac
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.120bcd45
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.120bcd1d
jmp 0x120becb8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x120c0365
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 0x120c03a7
call fcn.120c5d06
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x120c03a7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x120c039e
xor eax, eax
jmp 0x120c03af
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.120c03b5
pop edi
pop esi
pop ebx
ret 4
Function at 0x401140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
push edi
push 2
mov edi, eax
push 1
xor ebx, ebx
push edi
mov dword [0x417740], ebx
mov dword [0x41773c], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x40129c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [0x417740], eax
je 0x4012a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [0x417738], eax
je 0x4012a6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0x28
jbe 0x4012a6
mov eax, dword [0x417738]
cmp dword [eax], 0x28
jne 0x4012a6
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [0x417734], ecx
movzx ecx, word [eax + 0xe]
cmp cx, 0x18
mov dword [0x417730], edx
jne 0x4011d3
mov dword [esp + 0xc], ebx
jmp 0x4011e8
mov edx, dword [eax + 0x20]
cmp edx, ebx
jne 0x4011e1
mov edx, 1
shl edx, cl
movzx ecx, dx
mov dword [esp + 0xc], ecx
push ebp
mov ebp, eax
movzx ecx, word [ebp + 0xe]
cmp ecx, 4
je 0x401204
cmp ecx, 8
jne 0x40128c
mov edi, 0x100
jmp 0x401209
mov edi, 0x10
lea edx, [edi*4 + 8]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, ebx
je 0x401287
cmp edi, ebx
mov word [esi], 0x300
mov word [esi + 2], di
jle 0x401261
lea eax, [esi + 5]
lea ecx, [ebp + 0x29]
lea esp, [esp]
movzx edx, byte [ecx + 1]
mov byte [eax - 1], dl
movzx edx, byte [ecx]
mov byte [eax], dl
movzx edx, byte [ecx - 1]
mov byte [eax + 1], dl
mov byte [eax + 2], bl
add ecx, 4
add eax, 4
sub edi, 1
jne 0x401240
push esi
call dword [sym.imp.GDI32.dll_CreatePalette]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
mov dword [0x41773c], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x417738]
movzx ecx, word [esp + 0x10]
lea edx, [eax + ecx*4 + 0x28]
mov dword [0x417744], edx
pop ebp
mov eax, dword [0x417740]
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x417740]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
xor eax, eax
pop esi
mov dword [0x417740], eax
pop ebx
pop ecx
ret
Function at 0x401d4b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416358]
jne 0x401d55
repz ret
jmp fcn.00403cba

Function at 0x403945
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x416130]
je 0x403960
inc edi
cmp edi, 0x17
jb 0x403951
cmp edi, 0x17
jae 0x403ae0
push ebp
push 3
call fcn.004065e0
cmp eax, 1
pop ecx
je 0x403aac
push 3
call fcn.004065e0
test eax, eax
pop ecx
jne 0x403994
cmp dword [section..data], 1
je 0x403aac
cmp ebx, 0xfc
je 0x403adf
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x416e70
push ebp
call fcn.0040657b
add esp, 0xc
test eax, eax
je 0x4039ca
push esi
push esi
push esi
push esi
push esi
call fcn.00405145
add esp, 0x14
push 0x104
mov esi, 0x416e89
push esi
push 0
mov byte [0x416f8d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403a0e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040657b
add esp, 0xc
test eax, eax
je 0x403a0e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00405145
add esp, 0x14
push esi
call fcn.004064f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403a53
push esi
call fcn.004064f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x417184
push 0x4137e4
sub ecx, eax
push ecx
push eax
call fcn.00406438
add esp, 0x14
test eax, eax
je 0x403a53
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00405145
add esp, 0x14
jmp 0x403a55
xor esi, esi
push 0x4137e0
push ebx
push ebp
call fcn.004063c7
add esp, 0xc
test eax, eax
je 0x403a75
push esi
push esi
push esi
push esi
push esi
call fcn.00405145
add esp, 0x14
push dword [edi*8 + 0x416134]
push ebx
push ebp
call fcn.004063c7
add esp, 0xc
test eax, eax
je 0x403a97
push esi
push esi
push esi
push esi
push esi
call fcn.00405145
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040620a
add esp, 0xc
jmp 0x403adf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x403adf
cmp ebp, 0xffffffff
je 0x403adf
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x416134]
push dword [esi]
call fcn.004064f0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40620a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040483f
xor ebx, ebx
cmp dword [0x417608], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4062e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4063c0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41394c
push edi
call esi
cmp eax, ebx
je 0x4063c0
push eax
call fcn.004047d1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x417608], eax
call esi
push eax
call fcn.004047d1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41760c], eax
call esi
push eax
call fcn.004047d1
mov dword [0x417610], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004035b0
test eax, eax
pop ecx
pop ecx
je 0x4062ae
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405145
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4062e0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004047d1
cmp eax, ebx
pop ecx
mov dword [0x417618], eax
je 0x4062e0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004047d1
pop ecx
mov dword [0x417614], eax
mov eax, dword [0x417614]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x406365
cmp dword [0x417618], ecx
je 0x406365
push eax
call fcn.00404848
push dword [0x417618]
mov esi, eax
call fcn.00404848
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x406365
cmp edi, ebx
je 0x406365
call esi
cmp eax, ebx
je 0x406332
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406332
test byte [ebp - 0x18], 1
jne 0x406365
lea eax, [ebp - 0x10]
push eax
call fcn.0040365f
test eax, eax
pop ecx
je 0x40634d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405145
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40635c
or dword [ebp + 0x10], 0x200000
jmp 0x4063a0
or dword [ebp + 0x10], 0x40000
jmp 0x4063a0
mov eax, dword [0x41760c]
cmp eax, dword [ebp - 8]
je 0x4063a0
push eax
call fcn.00404848
cmp eax, ebx
pop ecx
je 0x4063a0
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4063a0
mov eax, dword [0x417610]
cmp eax, dword [ebp - 8]
je 0x4063a0
push eax
call fcn.00404848
cmp eax, ebx
pop ecx
je 0x4063a0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x417608]
call fcn.00404848
cmp eax, ebx
pop ecx
je 0x4063c0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4063c2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret