joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ae30
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 0x40ae49
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40ae5d
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 0x40ae7e
cmp esi, eax
jae 0x40ae57
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40ae70
cmp esi, eax
jae 0x40ae57
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40ba00
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x474bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
xor eax, eax
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], vtable.CPen.0
mov ecx, dword [esp + 0x3c]
push ecx
push eax
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call fcn.0046c063
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0046c13f
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
lea eax, [edi + 2]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0046bc18
lea eax, [edi + 5]
push eax
push ebx
mov ecx, esi
call fcn.0046b8cd
lea ebp, [edi + 3]
push ebp
lea eax, [ebx + 1]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0046bc18
lea eax, [edi + 6]
push eax
lea eax, [ebx + 1]
push eax
mov ecx, esi
call fcn.0046b8cd
lea eax, [edi + 4]
push eax
lea ecx, [ebx + 2]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0046bc18
lea eax, [edi + 7]
push eax
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.0046b8cd
push ebp
lea eax, [ebx + 3]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0046bc18
lea eax, [edi + 6]
push eax
lea eax, [ebx + 3]
push eax
mov ecx, esi
call fcn.0046b8cd
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0046bc18
lea eax, [edi + 5]
push eax
lea eax, [ebx + 4]
push eax
mov ecx, esi
call fcn.0046b8cd
lea ecx, [edi + 1]
push ecx
lea eax, [ebx + 5]
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0046bc18
lea eax, [edi + 4]
push eax
lea eax, [ebx + 5]
push eax
mov ecx, esi
call fcn.0046b8cd
push edi
add ebx, 6
push ebx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0046bc18
push ebp
push ebx
mov ecx, esi
call fcn.0046b8cd
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.0046c13f
lea ecx, [esp + 0x10]
call fcn.0046c0ba
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.0046c0ba
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x40c420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.00472777
movzx ebx, word [esp + 0x14]
mov edi, dword [eax + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 2
push ebx
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x40c451
push 2
push ebx
xor edi, edi
push edi
call ebp
mov esi, eax
test esi, esi
je 0x40c477
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40c477
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40c477
push eax
call fcn.0040c3e0
add esp, 4
cmp ax, 0x10
je 0x40c47e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push esi
push edi
call fcn.0046cdb6
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40c4b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x49c154]
sub esp, 0x134
test eax, eax
jne 0x40c585
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push reloc.WSOCK32.dll_accept
mov dword [0x49c154], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c585
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c57a
push esi
push edi
mov ecx, 5
mov esi, str.Windows_Classic.theme
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x2c]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x40c578
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x18]
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40c578
mov dword [0x49c150], 1
pop edi
pop esi
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x49c150]
add esp, 0x134
ret

Function at 0x40c970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x474c43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov ecx, ebx
mov dword [esp + 0x18], edi
mov dword [esi], 0x47833c
call fcn.0046443e
mov dword [ebx], method.CPtrArray.virtual_0
lea ebx, [esi + 0x1c]
mov ecx, ebx
mov byte [esp + 0x18], 1
call fcn.0046443e
mov dword [ebx], method.CPtrArray.virtual_0
or eax, 0xffffffff
push 0x49c100
push edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], edi
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40d490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x474cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov ebp, ecx
mov eax, esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 8]
push edi
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edi, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], vtable.CBrush.0
mov dword [esp + 0x30], edi
call fcn.0040ca20
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
je 0x40d4f4
push 0xf
jmp 0x40d4f6
push 4
call ebx
cmp dword [esp + 0x40], edi
jne 0x40d511
push 0x3fe33333
push 0x33333333
push eax
call fcn.0040b5d0
add esp, 0xc
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.0046c063
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x38]
mov edx, dword [edi + 4]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call fcn.0046c0ba
call fcn.0040b550
test eax, eax
je 0x40d55f
mov ecx, dword [edi + 4]
push 0xf
push 2
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
test eax, eax
push 7
jne 0x40d583
call ebx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
add edx, 4
push edx
add eax, 4
push eax
push edi
mov ecx, ebp
call fcn.0040ba00
jmp 0x40d59b
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
add ecx, 4
push ecx
add edx, 5
push edx
push edi
mov ecx, ebp
call fcn.0040b8e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.0046c0ba
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
Function at 0x411b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
push eax
call fcn.00466c70
push eax
lea ecx, [esp + 0x30]
call fcn.0046bdfd
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x1c]
push edx
push eax
call edi
push eax
call fcn.00466c70
mov ecx, eax
call fcn.0046bc64
mov eax, dword [esi + 0x170]
test eax, eax
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
jne 0x411ca2
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x16c]
call fcn.0046bd66
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x17c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.0046c063
test edi, edi
je 0x411c58
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x170]
push edi
push eax
call fcn.0046c0ec
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
push 0xcc0020
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x184], eax
mov eax, dword [esp + 0x24]
sub eax, ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esi + 0x170]
sub ecx, edi
push ecx
push 0
push 0
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x16c]
sub ecx, edi
test edx, edx
je 0x411cc3
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 4]
push 0
push 0
push edx
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.0046be58
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x414b50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x24]
mov byte [esp + 0x24], al
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push 1
lea edx, [esp + 0x28]
push edx
push ecx
push eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x28], edi
call fcn.00414980
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.0040d730
mov edi, dword [esp + 0x34]
add eax, 0x10
add esp, 0x18
mov dword [edi], eax
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414be6
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x419ea1
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x47b280
call fcn.0041c1d8
mov edi, 0x94
mov eax, edi
call fcn.00418ad0
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 [0x49e1f8], ecx
mov eax, dword [esi + 4]
mov dword [0x49e204], eax
mov edx, dword [esi + 8]
mov dword [0x49e208], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x49e1fc], esi
cmp ecx, 2
je 0x419f01
or esi, 0x8000
mov dword [0x49e1fc], esi
shl eax, 8
add eax, edx
mov dword [0x49e200], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x419f3c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x419f3c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x419f54
cmp eax, 0x20b
je 0x419f41
mov dword [ebp - 0x1c], esi
jmp 0x419f68
cmp dword [ecx + 0x84], 0xe
jbe 0x419f3c
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x419f62
cmp dword [ecx + 0x74], 0xe
jbe 0x419f3c
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041b661
pop ecx
test eax, eax
jne 0x419f7c
push 0x1c
call fcn.00419e7d
pop ecx
call fcn.0041cb9b
test eax, eax
jne 0x419f8d
push 0x10
call fcn.00419e7d
pop ecx
call fcn.0041f96c
mov dword [ebp - 4], esi
call fcn.0041f76e
test eax, eax
jge 0x419fa6
push 0x1b
call fcn.00419e58
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4a06b0], eax
call fcn.0041f64c
mov dword [0x49e1e8], eax
call fcn.0041f5aa
test eax, eax
jge 0x419fcc
push 8
call fcn.00419e58
pop ecx
call fcn.0041f377
test eax, eax
jge 0x419fdd
push 9
call fcn.00419e58
pop ecx
call fcn.0041a68a
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x419ff0
push eax
call fcn.00419e58
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041f30e
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x41a011
movzx eax, word [ebp - 0x34]
jmp 0x41a014
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00460b24
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41a032
push edi
call fcn.0041a7c2
call fcn.0041a7e4
jmp 0x41a064
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041c213
ret
Function at 0x421d9b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x48bcd8]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x421dc4
xor eax, eax
jmp 0x421f32
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4a0340]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x421df7
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00424bf2
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x421ec9
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x421f04
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x421e52
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x421e43
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x421e26
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x421e92
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x421e9b
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x421e17
jmp 0x421e9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x421f2d
cmp dword [ebp - 8], edi
je 0x421f04
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x421ef6
call fcn.0041b420
mov dword [eax], 9
call fcn.0041b429
mov dword [eax], esi
jmp 0x421eff
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x421eeb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x421e9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x421e9d
push dword [ebp - 8]
call fcn.0041b432
pop ecx
or eax, 0xffffffff
jmp 0x421f30
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x421f19
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x421f19
xor eax, eax
jmp 0x421f30
call fcn.0041b420
mov dword [eax], 0x1c
call fcn.0041b429
mov dword [eax], edi
jmp 0x421eff
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0041a0a4
leave
ret
Function at 0x4224fd
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00418ad0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x422592
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x49e1f8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x422592
cmp eax, 1
je 0x4225aa
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x422592
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x422567
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x42258e
xor eax, eax
inc eax
jmp 0x4225c6
cmp esi, ebx
jae 0x422596
xor eax, eax
jmp 0x4225c6
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x49e1f8]
jmp 0x4225ac
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x422904
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x49e5c8], ebx
push esi
push edi
jne 0x422984
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4229bf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47c124
push edi
call esi
test eax, eax
mov dword [0x49e5c8], eax
je 0x4229bf
push 0x47c114
push edi
call esi
push 0x47c100
push edi
mov dword [0x49e5cc], eax
call esi
cmp dword [0x49e1f8], 2
mov dword [0x49e5d0], eax
jne 0x422984
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x49e5d8], eax
je 0x422984
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x49e5d4], eax
mov eax, dword [0x49e5d4]
test eax, eax
je 0x4229c9
call eax
test eax, eax
je 0x4229b0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x49e5d8]
test eax, eax
je 0x4229b0
test byte [ebp - 8], 1
jne 0x4229c9
cmp dword [0x49e204], 4
jb 0x4229c3
or byte [ebp + 0x12], 0x20
jmp 0x4229e8
xor eax, eax
jmp 0x4229f8
or byte [ebp + 0x12], 4
jmp 0x4229e8
mov eax, dword [0x49e5cc]
test eax, eax
je 0x4229e8
call eax
mov ebx, eax
test ebx, ebx
je 0x4229e8
mov eax, dword [0x49e5d0]
test eax, eax
je 0x4229e8
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x49e5c8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4255dc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4257a2
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4a0340]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4257a2
test cl, 0x48
je 0x425642
mov al, byte [eax + 5]
cmp al, 0xa
je 0x425642
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x425694
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42567c
call fcn.0041b420
mov dword [eax], 9
call fcn.0041b429
mov dword [eax], esi
jmp 0x42568c
cmp eax, 0x6d
je 0x4257a2
push eax
call fcn.0041b432
pop ecx
or eax, 0xffffffff
jmp 0x4257a4
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x42579d
test edx, edx
je 0x4256b7
cmp byte [ebx], 0xa
jne 0x4256b7
or al, 4
jmp 0x4256b9
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x425797
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x425787
cmp al, 0xd
je 0x4256ed
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x425779
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x425707
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x425702
add dword [ebp + 0x10], 2
jmp 0x42575b
mov dword [ebp + 0x10], eax
jmp 0x425775
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42572f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x425775
cmp dword [ebp - 0xc], 0
je 0x425775
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x425750
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42575b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x425778
cmp ebx, dword [ebp + 0xc]
jne 0x425760
cmp byte [ebp - 1], 0xa
jne 0x425760
mov byte [ebx], 0xa
jmp 0x425778
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421c7c
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x425779
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4256d1
jmp 0x425797
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x425797
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4257a4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret