joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402bfc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
xor edx, edx
mov ebx, eax
mov dx, word [eax + 4]
sub edx, 0xd7b0
je 0x402c28
cmp edx, 3
ja 0x402cbe
call dword [ebx + 0x24]
test eax, eax
je 0x402c28
call fcn.00402580
mov word [ebx + 4], 0xd7b3
mov dword [ebx + 8], esi
mov dword [ebx + 0x24], 0x402bd4
mov dword [ebx + 0x1c], 0x4027b0
cmp byte [ebx + 0x48], 0
je 0x402ca5
mov eax, 0xc0000000
mov dl, byte [0x405008]
and edx, 0x70
shr edx, 2
mov edx, dword [edx + 0x405050]
mov ecx, 2
sub edi, 3
je 0x402c87
mov ecx, 3
inc edi
je 0x402c87
mov eax, 0x40000000
inc edi
mov word [ebx + 4], 0xd7b2
je 0x402c87
mov eax, 0x80000000
mov word [ebx + 4], 0xd7b1
push 0
push 0x80
push ecx
push 0
push edx
push eax
lea eax, [ebx + 0x48]
push eax
call sub.KERNEL32.DLL_UnhandledExceptionFilter
cmp eax, 0xffffffff
je 0x402cc5
mov dword [ebx], eax
jmp 0x402cd5
mov dword [ebx + 0x24], 0x4027b0
cmp edi, 3
je 0x402cb5
push 0xfffffffffffffff6
jmp 0x402cb7
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetCommandLineA
jmp 0x402c9c
mov eax, 0x66
jmp 0x402cd0
mov word [ebx + 4], 0xd7b0
call sub.KERNEL32.DLL_LeaveCriticalSection
call fcn.00402580
pop edi
pop esi
pop ebx
ret

Function at 0x402ea4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40500c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402f3c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f1c
xor eax, eax
push ebp
push 0x402f15
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402f58
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f1c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40500c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40500c], ax
mov esp, ebp
pop ebp
ret

Function at 0x403584
Capabilities:
Accept command line arguments

Disassembly:
push ecx
cmp byte [0x406034], 0
je 0x4035e5
cmp word [0x406208], 0xd7b2
jne 0x4035ad
cmp dword [0x406210], 0
jbe 0x4035ad
mov eax, 0x406204
call dword [0x406220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x405070
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetCommandLineA
push eax
call sub.KERNEL32.DLL_VirtualAlloc
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40360c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetCommandLineA
push eax
call sub.KERNEL32.DLL_VirtualAlloc
pop edx
ret
cmp byte [0x405018], 0
jne 0x403601
push 0
push 0x405090
push 0x405070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4014c0
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 0x4014d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4014ed
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 0x40150e
cmp esi, eax
jae 0x4014e7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401500
cmp esi, eax
jae 0x4014e7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4034f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42b338
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebp
mov ebp, dword [esp + 0x5c]
test ebp, ebp
je 0x403622
lea ecx, [esp + 8]
call fcn.00425236
mov eax, dword [esp + 0x58]
test eax, eax
mov dword [esp + 0x50], 0
je 0x403531
mov eax, dword [eax + 4]
push ebx
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.0042560a
mov eax, dword [esp + 0x18]
push ebp
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x70]
sub ebx, ecx
lea ecx, [esp + 0x3c]
push ecx
push 0x18
sub esi, edi
push ebp
mov dword [esp + 0x1c], esi
call dword [sym.imp.GDI32.dll_GetObjectW]
lea edx, [esp + 0x24]
push edx
push 0x18
push ebp
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp edi, esi
mov ebp, dword [esp + 0x2c]
mov eax, edi
mov dword [esp + 0x68], eax
jge 0x403603
jmp 0x4035a0
mov esi, dword [esp + 0x10]
lea esp, [esp]
lea ecx, [eax + ebp]
cmp ecx, esi
jle 0x4035ab
mov ebp, esi
sub ebp, eax
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x40]
mov ecx, esi
cmp ecx, ebx
jge 0x4035f5
lea esp, [esp]
lea edx, [esi + edi]
cmp edx, ebx
jle 0x4035cb
mov edi, ebx
sub edi, esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x64]
push 0xcc0020
push 0
push 0
push ecx
push ebp
push edi
push eax
mov eax, dword [edx + 4]
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x68]
add esi, edi
cmp esi, ebx
jl 0x4035c0
mov ecx, dword [esp + 0x10]
add eax, ebp
cmp eax, ecx
mov dword [esp + 0x68], eax
jl 0x403595
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00425688
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
pop ebp
mov dword fs:[0], ecx
add esp, 0x50
ret 0x18
Function at 0x407069
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 0x4070bc
call fcn.00427e1f
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x4070bc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4070b2
xor eax, eax
jmp 0x4071d5
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 0x4070ec
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 0x4070ec
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4071d2
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x407119
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00404c56
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4071d2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x407162
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x407162
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40715c
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00404c56
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4071c2
and dword [ebp + 0xc], 0
jmp 0x4071c2
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4071c2
push 0xc
call fcn.00423121
mov esi, eax
test esi, esi
pop ecx
je 0x4071a4
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 0x4071a6
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4071bd
push dword [ebp - 8]
call fcn.0041dbd8
jmp 0x4071c2
call fcn.0041dbaf
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x407127
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40e5d5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x430458
call fcn.00410d5c
mov edi, 0x94
mov eax, edi
call fcn.0040eac0
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 [0x43d9ac], ecx
mov eax, dword [esi + 4]
mov dword [0x43d9b8], eax
mov edx, dword [esi + 8]
mov dword [0x43d9bc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43d9b0], esi
cmp ecx, 2
je 0x40e635
or esi, 0x8000
mov dword [0x43d9b0], esi
shl eax, 8
add eax, edx
mov dword [0x43d9b4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40e670
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e670
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40e688
cmp eax, 0x20b
je 0x40e675
mov dword [ebp - 0x1c], esi
jmp 0x40e69c
cmp dword [ecx + 0x84], 0xe
jbe 0x40e670
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40e696
cmp dword [ecx + 0x74], 0xe
jbe 0x40e670
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041250e
pop ecx
test eax, eax
jne 0x40e6b0
push 0x1c
call fcn.0040e5b1
pop ecx
call fcn.00412405
test eax, eax
jne 0x40e6c1
push 0x10
call fcn.0040e5b1
pop ecx
call fcn.0041219f
mov dword [ebp - 4], esi
call fcn.00411fa1
test eax, eax
jge 0x40e6da
push 0x1b
call fcn.0040e58c
pop ecx
call fcn.00411f02
mov dword [0x43f390], eax
call fcn.00411d98
mov dword [0x43d9a0], eax
call fcn.00411d02
test eax, eax
jge 0x40e6ff
push 8
call fcn.0040e58c
pop ecx
call fcn.00411acf
test eax, eax
jge 0x40e710
push 9
call fcn.0040e58c
pop ecx
push 1
call fcn.0040e8d6
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40e726
push eax
call fcn.0040e58c
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00411a89
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40e747
movzx eax, word [ebp - 0x40]
jmp 0x40e74a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041d52a
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40e768
push edi
call fcn.0040ea03
call fcn.0040ea25
jmp 0x40e79a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00410d97
ret
Function at 0x40e940
Capabilities:
Terminate process

Disassembly:
push 8
push 0x430480
call fcn.00410d5c
push 8
call fcn.00412781
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x43d9ec], esi
jne 0x40e974
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43d9e8], esi
mov al, byte [ebp + 0x10]
mov byte [0x43d9e4], al
cmp dword [ebp + 0xc], edi
jne 0x40e9be
cmp dword [0x43f388], edi
je 0x40e9ae
mov eax, dword [0x43f384]
sub eax, 4
mov dword [0x43f384], eax
cmp eax, dword [0x43f388]
jb 0x40e9ae
mov eax, dword [eax]
cmp eax, edi
je 0x40e98f
call eax
jmp 0x40e98f
push 0x43908c
mov eax, 0x439084
call fcn.0040e8be
pop ecx
push 0x439098
mov eax, 0x439090
call fcn.0040e8be
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40e9ef
cmp dword [ebp + 0x10], edi
jne 0x40e9fd
mov dword [0x43d9ec], esi
push dword [ebp + 8]
call fcn.0040e87c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40e9fc
push 8
call fcn.004126cc
pop ecx
ret
call fcn.00410d97
ret

Function at 0x4110ca
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.0040eac0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411165
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 [0x43d9ac]
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 0x411165
cmp eax, 1
je 0x411186
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 0x411165
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x411132
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x411161
xor eax, eax
inc eax
jmp 0x4111a5
cmp edi, eax
jae 0x411169
xor eax, eax
jmp 0x4111a5
cmp eax, esi
jae 0x411170
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 [0x43d9ac]
jmp 0x411189
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 0x411774
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x43a180]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x43a538]
je 0x4117ab
inc eax
cmp eax, 0x13
jb 0x41179c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x43a538]
jne 0x4118ce
mov eax, dword [0x43d9a4]
cmp eax, 1
je 0x4118a9
cmp eax, edx
jne 0x4117db
cmp dword [0x43a170], 1
je 0x4118a9
cmp ecx, 0xfc
je 0x4118ce
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411811
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00413fc0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00410bf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411845
mov eax, edi
push eax
call fcn.00410bf0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x430b28
push edi
call fcn.00414110
add esp, 0x10
push edi
call fcn.00410bf0
push dword [esi + 0x43a53c]
mov ebx, eax
call fcn.00410bf0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040eac0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00413fc0
push edi
push ebx
call fcn.00413fd0
push 0x430b08
push ebx
call fcn.00413fd0
push dword [esi + 0x43a53c]
push ebx
call fcn.00413fd0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00418662
add esp, 0x2c
jmp 0x4118ce
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x43a53c]
push dword [esi]
call fcn.00410bf0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0040eaa4
add ebp, 0x90
leave
ret
Function at 0x411d98
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x43dc1c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x411de1
call ebp
mov esi, eax
cmp esi, ebx
je 0x411dc7
mov dword [0x43dc1c], 1
jmp 0x411de6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x411ddc
push 2
pop eax
mov dword [0x43dc1c], eax
jmp 0x411de1
mov eax, dword [0x43dc1c]
cmp eax, 1
jne 0x411e3e
cmp esi, ebx
jne 0x411df9
call ebp
mov esi, eax
cmp esi, ebx
jne 0x411df9
xor eax, eax
jmp 0x411ee5
cmp word [esi], bx
mov eax, esi
je 0x411e0e
inc eax
inc eax
cmp word [eax], bx
jne 0x411e00
inc eax
inc eax
cmp word [eax], bx
jne 0x411e00
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00410a2a
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x411e31
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x411ee5
push ebp
push esi
push edi
call fcn.004102e0
add esp, 0xc
jmp 0x411e23
cmp eax, 2
je 0x411e47
cmp eax, ebx
jne 0x411df2
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x411df2
cmp byte [ebp], bl
mov esi, ebp
je 0x411e7d
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x411df2
push esi
add edi, eax
call fcn.00410bf0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x411e5a
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00410a2a
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x411ef6
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x411ed7
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x411eec
push edi
call fcn.00410bf0
push esi
lea edi, [edi + eax + 1]
call fcn.0040eff8
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x411e9d
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00410149
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x411df2
Function at 0x411f02
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x43dc20]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x411f42
call esi
test eax, eax
je 0x411f27
mov dword [0x43dc20], 1
jmp 0x411f47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x411f3e
mov dword [0x43dc20], 2
jmp 0x411f50
xor eax, eax
jmp 0x411f9e
cmp eax, 1
jne 0x411f4b
call esi
jmp 0x411f9e
cmp eax, 2
jne 0x411f3e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x411f96
lea eax, [esi + esi]
push eax
call fcn.00410a2a
mov ebp, eax
test ebp, ebp
pop ecx
je 0x411f96
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x411f9a
push ebp
call fcn.00410149
pop ecx
xor eax, eax
jmp 0x411f9c
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x414e10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x414e3e
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x414e45
cmp ebx, dword [eax + 4]
jae 0x414e45
xor eax, eax
jmp 0x415035
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x414e56
xor eax, eax
inc eax
jmp 0x415034
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x414e6c
cmp ecx, edx
jae 0x414fb1
cmp dword [eax + 4], 0
je 0x414e75
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x414e5d
cmp dword [ebp + 8], 0
je 0x414e97
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x414fb1
cmp eax, esi
jae 0x414fb1
mov eax, dword [0x43de08]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x414ebc
cmp dword [esi*4 + 0x43de10], edi
je 0x414fb5
inc esi
cmp esi, eax
jl 0x414eaa
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415031
cmp dword [ebp - 8], 0x1000000
jne 0x415031
test byte [ebp - 0xc], 0xcc
je 0x414f3a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x415031
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x415031
cmp word [eax + 0x18], 0x10b
jne 0x415031
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x415031
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x414f3a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x414f3a
test byte [ecx + 0x27], 0x80
jne 0x414fb1
push 1
push 0x43de50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x414e4e
mov ecx, dword [0x43de08]
test ecx, ecx
mov edx, ecx
jle 0x414f6e
lea eax, [ecx*4 + 0x43de0c]
cmp dword [eax], edi
je 0x414f6e
dec edx
sub eax, 4
test edx, edx
jg 0x414f62
test edx, edx
jne 0x414f9f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x414f7b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x414f93
lea eax, [edx*4 + 0x43de10]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x414f81
cmp ecx, 0x10
jge 0x414f9f
inc ecx
mov dword [0x43de08], ecx
push 0
push 0x43de50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x414e4e
xor eax, eax
jmp 0x415034
test esi, esi
jle 0x414e4e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x43de50
call ebx
test eax, eax
jne 0x414e4e
cmp dword [esi*4 + 0x43de10], edi
je 0x41500b
mov eax, dword [0x43de08]
lea esi, [eax - 1]
test esi, esi
jl 0x414ff9
cmp dword [esi*4 + 0x43de10], edi
je 0x414ff5
dec esi
jns 0x414fe9
test esi, esi
jge 0x415009
cmp eax, 0x10
jge 0x415004
inc eax
mov dword [0x43de08], eax
lea esi, [eax - 1]
jmp 0x41500b
je 0x415023
xor ecx, ecx
test esi, esi
jl 0x415023
lea eax, [ecx*4 + 0x43de10]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x415011
push 0
push 0x43de50
call ebx
jmp 0x414e4e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418662
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43df40], ebx
push esi
push edi
jne 0x4186e2
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41871d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x43df40], eax
je 0x41871d
push 0x432354
push edi
call esi
push 0x432340
push edi
mov dword [0x43df44], eax
call esi
cmp dword [0x43d9ac], 2
mov dword [0x43df48], eax
jne 0x4186e2
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43df50], eax
je 0x4186e2
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x43df4c], eax
mov eax, dword [0x43df4c]
test eax, eax
je 0x418727
call eax
test eax, eax
je 0x41870e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43df50]
test eax, eax
je 0x41870e
test byte [ebp - 8], 1
jne 0x418727
cmp dword [0x43d9b8], 4
jb 0x418721
or byte [ebp + 0x12], 0x20
jmp 0x418746
xor eax, eax
jmp 0x418756
or byte [ebp + 0x12], 4
jmp 0x418746
mov eax, dword [0x43df44]
test eax, eax
je 0x418746
call eax
mov ebx, eax
test ebx, ebx
je 0x418746
mov eax, dword [0x43df48]
test eax, eax
je 0x418746
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43df40]
pop edi
pop esi
pop ebx
leave
ret