joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401340
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47ec08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 8]
cmp ecx, edx
jge 0x4013da
lea ebx, [esi + 0x3c]
lea edi, [esi + 0x18]
mov edx, dword [esi + 0x38]
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, ebx
call fcn.004021e0
push eax
mov ecx, edi
mov dword [esp + 0x3c], 0
call fcn.00402590
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.00402580
fld qword [esi + 0x30]
fcomp qword [ebp + 0xc]
fnstsw ax
test ah, 0x41
je 0x4013c8
fld qword [ebp + 0xc]
fcomp qword [esi + 0x28]
fnstsw ax
test ah, 0x41
jne 0x401450
mov edx, dword [esi + 0x38]
mov ecx, dword [esi + 8]
inc edx
mov eax, edx
mov dword [esi + 0x38], edx
cmp eax, ecx
jl 0x401379
xor eax, eax
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 8]
cmp ecx, edx
jl 0x4013e7
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
push 0x49b290
lea ecx, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x20], 0xffffffff
call fcn.0046370a
mov edi, dword [ebp + 8]
mov edx, dword [esi + 0x20]
lea eax, [esi + 0x24]
push eax
lea ecx, [edi + 0xc]
mov dword [edi + 8], edx
call fcn.004632f6
mov ecx, dword [esi + 0x28]
mov dword [edi + 0x10], ecx
mov edx, dword [esi + 0x2c]
mov dword [edi + 0x14], edx
mov eax, dword [esi + 0x30]
mov dword [edi + 0x18], eax
mov ecx, dword [esi + 0x34]
mov dword [edi + 0x1c], ecx
mov dword [edi], 0x484840
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
mov ecx, dword [edi + 8]
lea edx, [edi + 0xc]
mov dword [esi + 8], ecx
push edx
lea ecx, [esi + 0xc]
call fcn.004632f6
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x1c]
mov dword [esi], 0x484840
mov dword [esi + 0x1c], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403960
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x47efd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x8b
mov dword [esp + 0x18], esi
call fcn.00468683
mov ecx, dword [0x49e254]
lea ebx, [esi + 0x68]
mov dword [esp + 0x1c], 0
mov dword [ebx], ecx
mov edx, dword [0x49e254]
lea ebp, [esi + 0x6c]
mov dword [ebp], edx
lea ecx, [esi + 0x70]
mov byte [esp + 0x1c], 2
call fcn.00402520
lea ecx, [esi + 0x90]
mov byte [esp + 0x1c], 3
call fcn.00402520
push fcn.00401290
push section..text
push 3
lea eax, [esi + 0xb0]
push 0x50
push eax
mov byte [esp + 0x30], 4
call fcn.00450c89
lea edi, [esi + 0x1b0]
mov byte [esp + 0x1c], 5
mov ecx, edi
mov dword [esp + 0x24], edi
call fcn.00448b4d
mov edx, dword [0x49e254]
lea ecx, [edi + 0xbc]
mov dword [ecx], edx
push str.cap0
mov byte [esp + 0x20], 7
mov dword [edi], 0x485020
call fcn.0046370a
xor edi, edi
push str.foucus
mov ecx, ebx
mov byte [esp + 0x20], 8
mov dword [esi], method.CDialog.virtual_0
mov dword [esi + 0x1a0], 1
mov dword [esi + 0x1a4], edi
mov dword [esi + 0x1a8], edi
call fcn.0046370a
push str.gray
mov ecx, ebp
call fcn.0046370a
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x406b80
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x47f716
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x485af8
lea ecx, [esi + 0x730]
mov dword [esp + 0x20], 7
call fcn.0047831a
lea ecx, [esi + 0x728]
mov byte [esp + 0x20], 6
call fcn.00463581
lea ecx, [esi + 0x724]
mov byte [esp + 0x20], 5
call fcn.00463581
lea edi, [esi + 0x688]
mov dword [esp + 0x10], edi
lea ecx, [edi + 0x98]
mov byte [esp + 0x20], 9
call fcn.00463581
lea ecx, [edi + 0x5c]
mov byte [esp + 0x20], 8
call fcn.00473ea0
mov ecx, edi
mov byte [esp + 0x20], 4
call fcn.0046832a
lea edi, [esi + 0x5c0]
mov dword [esp + 0x10], edi
lea ecx, [edi + 0x88]
mov byte [esp + 0x20], 0xb
call fcn.004651e5
lea ecx, [edi + 0x60]
mov byte [esp + 0x20], 0xa
call fcn.00463581
mov ecx, edi
mov byte [esp + 0x20], 3
call fcn.0046832a
lea edi, [esi + 0x350]
mov dword [esp + 0x10], edi
lea ebx, [edi + 0x1b0]
mov dword [esp + 0x14], ebx
mov dword [ebx], 0x485020
lea ecx, [ebx + 0xbc]
mov byte [esp + 0x20], 0x12
call fcn.00463581
mov ecx, ebx
mov byte [esp + 0x20], 0x11
call fcn.00448ba9
push fcn.00401290
push 3
lea eax, [edi + 0xb0]
push 0x50
push eax
mov byte [esp + 0x30], 0x10
call fcn.00450b95
lea ecx, [edi + 0x90]
mov byte [esp + 0x20], 0xf
call fcn.00402580
lea ecx, [edi + 0x70]
mov byte [esp + 0x20], 0xe
call fcn.00402580
mov byte [esp + 0x20], 0xd
lea ecx, [edi + 0x6c]
call fcn.00463581
lea ecx, [edi + 0x68]
mov byte [esp + 0x20], 0xc
call fcn.00463581
mov ecx, edi
mov byte [esp + 0x20], 2
call fcn.0046832a
lea ebx, [esi + 0x22c]
mov dword [esp + 0x14], ebx
lea edi, [ebx + 0x64]
mov dword [esp + 0x10], edi
mov dword [edi], 0x485020
lea ecx, [edi + 0xbc]
mov byte [esp + 0x20], 0x14
call fcn.00463581
mov ecx, edi
mov byte [esp + 0x20], 0x13
call fcn.00448ba9
mov ecx, ebx
mov byte [esp + 0x20], 1
call fcn.0046832a
lea edi, [esi + 0xbc]
mov dword [esp + 0x14], edi
lea ecx, [edi + 0x120]
mov byte [esp + 0x20], 0x18
call fcn.00461b8c
lea ecx, [edi + 0xe4]
mov byte [esp + 0x20], 0x17
call fcn.00473e37
lea ecx, [edi + 0xa8]
mov byte [esp + 0x20], 0x16
call fcn.00461b8c
lea ecx, [edi + 0x6c]
mov byte [esp + 0x20], 0x15
call fcn.00461b8c
mov ecx, edi
mov byte [esp + 0x20], 0
call fcn.0046832a
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call fcn.00474029
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40870f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x47f84a
call fcn.004513c4
sub esp, 0x18
cmp dword [0x4a0968], 0
push esi
jne 0x408745
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x4a0958
call fcn.004089bd
mov dword [eax], 0x13
jmp 0x4087a4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x408779
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x4a0958
call fcn.004089bd
mov dword [eax], 0x10
jmp 0x4087a4
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4087ab
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
mov ecx, 0x4a0958
call fcn.004089bd
mov dword [eax], 0xf
xor eax, eax
jmp 0x408831
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x2800
push eax
push edi
lea ecx, [ebp - 0x24]
call fcn.00418168
and dword [ebp - 4], 0
push 0x11c
call fcn.00463acd
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
mov byte [ebp - 4], 1
pop edi
je 0x4087f4
call fcn.004158eb
mov esi, eax
jmp 0x4087f6
xor esi, esi
and byte [ebp - 4], 0
test esi, esi
je 0x408821
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00415dc0
test eax, eax
je 0x408821
push esi
mov ecx, 0x4a0b30
call fcn.004102fd
mov esi, eax
call fcn.004084dc
jmp 0x408823
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004181ac
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x40cdd6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
jle 0x40ce4b
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor edi, edi
mov eax, dword [esi + 4]
add eax, edi
movzx ecx, word [eax + 2]
cmp ecx, dword [esp + 0x14]
jne 0x40ce43
mov al, byte [eax]
and al, 4
cmp al, 4
jne 0x40ce0f
push 0x10
call ebp
and ax, 0x8000
cmp ax, 0x8000
jne 0x40ce43
mov eax, dword [esi + 4]
mov al, byte [edi + eax]
and al, 8
cmp al, 8
jne 0x40ce29
push 0x11
call ebp
and ax, 0x8000
cmp ax, 0x8000
jne 0x40ce43
mov eax, dword [esi + 4]
mov al, byte [edi + eax]
and al, 0x10
cmp al, 0x10
jne 0x40ce54
push 0x12
call ebp
and ax, 0x8000
cmp ax, 0x8000
je 0x40ce54
inc ebx
add edi, 6
cmp ebx, dword [esi]
jl 0x40cdea
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, dword [esi + 4]
lea eax, [ebx + ebx*2]
push 6
lea eax, [ecx + eax*2]
push eax
push dword [esp + 0x20]
call fcn.004514f0
add esp, 0xc
push 1
pop eax
jmp 0x40ce4d
Function at 0x4128cf
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x412936
push 1
mov esi, 0x94
pop ebx
push esi
call fcn.00451d8d
mov edi, eax
pop ecx
test edi, edi
je 0x41298e
push esi
push 0
push edi
call fcn.004512e0
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x412919
push 5
jmp 0x412986
cmp eax, 5
jne 0x412987
cmp dword [edi + 8], 0
jne 0x412928
push 6
jmp 0x412986
cmp eax, 5
jne 0x412987
cmp dword [edi + 8], ebx
jne 0x412987
push 7
jmp 0x412986
cmp al, 4
jae 0x41293e
xor ebx, ebx
jmp 0x41298e
push 2
mov esi, 0x94
pop ebx
push esi
call fcn.00451d8d
mov edi, eax
pop ecx
test edi, edi
je 0x41298e
push esi
push 0
push edi
call fcn.004512e0
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x412987
cmp dword [edi + 8], 0xa
jne 0x41297a
push 3
jmp 0x412986
cmp eax, 4
jne 0x412987
cmp dword [edi + 8], 0x5a
jne 0x412987
push eax
pop ebx
push edi
call fcn.00451d45
pop ecx
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x412fe9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x413054
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x413054
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x49bb7c
mov ebx, eax
push dword [ebp + 8]
call fcn.00450b82
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x413054
push esi
push 1
push ebx
push edi
call fcn.00451e19
push esi
call fcn.00450ad4
add esp, 0x14
push 1
pop eax
jmp 0x413056
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41305b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x41308a
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x208]
push eax
push 0
lea eax, [ebp - 0x104]
push 0x49bb94
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4130f0
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00451f60
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x105], 0x5c
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
je 0x4130e9
push str._s_s
push dword [ebp + 8]
call fcn.00452050
add esp, 0x10
jmp 0x413101
push 0x49bb84
jmp 0x4130dc
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.00451f60
pop ecx
pop ecx
cmp dword [ebp + 0x14], 0
je 0x413122
push 0x49bb80
push dword [ebp + 8]
call fcn.00451f70
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00451f70
add esp, 0x10
leave
ret
Function at 0x4149a7
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 0
push dword [edi + 0xac]
lea esi, [edi + 0xac]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_KillTimer]
push 0x3e8
push dword [esi]
call ebx
push 0x3f2
push dword [esi]
call ebx
and dword [edi + 0x11c], 0
pop edi
pop esi
pop ebx
ret

Function at 0x414e51
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x414e69
cmp al, 5
sbb eax, eax
and eax, 2
add eax, 6
ret
push 8
pop eax
ret

Function at 0x4183bc
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x480221
call fcn.004513c4
sub esp, 0x24
mov al, byte [ebp + 0xb]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
and byte [ebx + 0xc], 0
lea ecx, [ebx + 4]
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
call fcn.004175c0
mov al, byte [ebp + 0xb]
and byte [ebx + 0xac], 0
lea ecx, [ebx + 0xa4]
xor edi, edi
mov dword [ebp - 4], edi
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
call fcn.00419709
mov eax, dword [ebp + 8]
push 0x33
mov dword [ebx + 0xa0], eax
lea eax, [ebx + 0x6c]
push edi
push eax
mov byte [ebp - 4], 1
mov dword [ebx], 0x485ff4
call fcn.004512e0
push 0x33
lea eax, [ebx + 0x34]
push edi
push eax
call fcn.004512e0
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
add esp, 0x18
push 0xf
call esi
push 8
mov dword [ebx + 0x14], eax
call esi
push 0x1e
mov dword [ebx + 0x18], eax
push 0x3c
push edi
lea eax, [ebp - 0x30]
push edi
push eax
mov dword [ebx + 0x1c], 0xff
mov dword [ebx + 0x68], edi
call fcn.0041114d
mov esi, eax
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x14
and dword [ebx + 0x30], 0
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x6c]
push 0x33
mov esi, 0x4a088c
push eax
lea edi, [ebx + 0x30]
push esi
push str.NAME
push 1
mov ecx, ebx
call fcn.004184c1
push 4
push edi
push esi
push str.AUTOPLACE
push 6
mov ecx, ebx
call fcn.004184c1
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x41eba4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 0x128], eax
jne 0x41ec03
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
push ecx
push eax
push esi
push 0x41ec06
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
movzx ecx, word [esi + 0x11c]
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0xac]
or ecx, 0x10000
push eax
push ecx
push 0x111
push eax
mov dword [esi + 0x128], 1
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
leave
ret
Function at 0x427d42
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
push edi
lea eax, [ebp - 0x420]
mov esi, ecx
push 0x400
push eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetWindowTextA]
and byte [ebp - 0x21], 0
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [eax + 0x15c], 0
jne 0x427dab
mov ebx, dword [ebp + 8]
push 1
push dword [eax + 0x14]
add eax, 0xf4
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0041144d
add esp, 0x14
jmp 0x427dc4
mov ecx, esi
call fcn.0040c002
push dword [esi + 0xac]
mov ebx, dword [ebp + 8]
push ebx
push 0x1795
push eax
call edi
push 0
push 0
push 0x31
push dword [esi + 0xac]
call edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x14]
push dword [eax + 0xf0]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xfffffffffffffff0
mov dword [ebp - 0x18], eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetWindowLongA]
and dword [ebp + 8], 0
push 2
mov edx, eax
pop ecx
and edx, ecx
mov dword [ebp - 0x20], eax
cmp dl, cl
jne 0x427e21
mov dword [ebp + 8], ecx
push 1
mov edx, eax
pop ecx
and edx, ecx
cmp dl, cl
jne 0x427e2f
mov dword [ebp + 8], ecx
mov edx, eax
mov ecx, 0x200
and edx, ecx
cmp edx, ecx
jne 0x427e40
or dword [ebp + 8], 0x24
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
jne 0x427e50
or dword [ebp + 8], 0x20
jmp 0x427e54
or dword [ebp + 8], 0x10
mov ecx, eax
and cx, 0x80
cmp cl, 0x80
jne 0x427e64
or byte [ebp + 9], 8
and eax, 0xb
cmp al, 0xb
jne 0x427e6f
or dword [ebp + 8], 0x20
mov ecx, esi
call fcn.0040c2a9
test eax, eax
je 0x427e7e
or byte [ebp + 0xa], 2
push dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov eax, 0x2000
push dword [ebp - 8]
and ecx, eax
cmp ecx, eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
jne 0x427eb3
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [ebp + 8]
mov esi, dword [esi + 0x14]
or ax, 0x2010
push eax
lea eax, [ebp - 0x420]
push eax
jmp 0x427ed6
call dword [sym.imp.GDI32.dll_IntersectClipRect]
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
push dword [ebp + 8]
mov esi, dword [esi + 0x14]
test eax, eax
lea eax, [ebp - 0x420]
push eax
je 0x427ef0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x10]
push eax
add esi, 0x160
jmp 0x427f08
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x10]
push eax
add esi, 0x170
push esi
push ebx
call fcn.00412fa3
add esp, 0x18
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x14]
push ebx
call edi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42c503
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x4809e2
call fcn.004513c4
push ecx
cmp dword [0x4b18e4], 0
jne 0x42c69a
push ebx
push esi
push edi
call fcn.0042c441
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, str.LoadLibraryA
push edi
push eax
mov dword [0x4b1914], eax
call esi
mov ebx, str.LoadLibraryW
mov dword [0x4b18e4], eax
push ebx
push dword [0x4b1914]
call esi
push str.LoadLibraryExA
mov dword [0x4b18e8], eax
push dword [0x4b1914]
call esi
push str.LoadLibraryExW
mov dword [0x4b18ec], eax
push dword [0x4b1914]
call esi
push str.GetProcAddress
mov dword [0x4b18f0], eax
push dword [0x4b1914]
call esi
push 0x18
mov dword [0x4b18f4], eax
call fcn.00463acd
pop ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov esi, str.Kernel32.dll
test eax, eax
je 0x42c5ba
push 0
push 0x42c9e7
push edi
push esi
mov ecx, eax
call fcn.0042c772
jmp 0x42c5bc
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x18
mov dword [0x4b18f8], eax
call fcn.00463acd
pop ecx
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 4], 1
cmp eax, edi
je 0x42c5ee
push edi
push 0x42ca02
push ebx
push esi
mov ecx, eax
call fcn.0042c772
jmp 0x42c5f0
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x18
mov dword [0x4b18fc], eax
call fcn.00463acd
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], 2
je 0x42c624
push edi
push 0x42ca1d
push str.LoadLibraryExA
push esi
mov ecx, eax
call fcn.0042c772
jmp 0x42c626
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x18
mov dword [0x4b1900], eax
call fcn.00463acd
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], 3
je 0x42c65a
push edi
push 0x42ca42
push str.LoadLibraryExW
push esi
mov ecx, eax
call fcn.0042c772
jmp 0x42c65c
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x18
mov dword [0x4b1904], eax
call fcn.00463acd
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], 4
je 0x42c690
push edi
push 0x42ca67
push str.GetProcAddress
push esi
mov ecx, eax
call fcn.0042c772
jmp 0x42c692
xor eax, eax
pop edi
pop esi
mov dword [0x4b1908], eax
pop ebx
mov ecx, dword [ebp - 0xc]
push 1
pop eax
mov dword fs:[0], ecx
leave
ret
Function at 0x42c772
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x4b190c], 0
push esi
mov esi, ecx
jne 0x42c796
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x18]
mov dword [0x4b190c], eax
mov eax, dword [0x4b1910]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [0x4b1910], esi
mov dword [esi + 0x10], edx
mov edx, dword [ebp + 0x14]
push ecx
push eax
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0042c833
mov dword [esi + 0xc], eax
cmp eax, dword [0x4b190c]
jbe 0x42c7df
cmp byte [eax], 0x68
jne 0x42c7df
mov eax, dword [eax + 1]
mov dword [esi + 0xc], eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 4]
call fcn.0042c844
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x42cd80
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
and dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [esi + 4], 0
mov dword [esi], eax
je 0x42cdcc
cmp dword [esi + 8], 0
je 0x42cdcc
push dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x42cdcc
push edi
push 0x40
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop edi
pop esi
pop ebx
ret 8

Function at 0x4329b3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x480f7c
call fcn.004513c4
sub esp, 0x11c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x14], esi
cmp dword [esi + 0xfc], ebx
jne 0x432aa5
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f89
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0xfc], eax
jne 0x432aa5
mov al, byte [ebp - 0xd]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.0040c3d2
mov esi, 0x104
lea eax, [ebp - 0x128]
push esi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004512e0
add esp, 0xc
lea eax, [ebp - 0x128]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x128]
push eax
call fcn.00451830
pop ecx
push eax
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040c78f
mov esi, str.winhlp32.exe
push esi
call fcn.00451830
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00436de7
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x432a6a
mov eax, 0x485ef8
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x432a90
push 0x6a
push esi
call edi
cmp eax, ebx
je 0x432a90
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xfc], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x24]
call fcn.0040c3d2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret