joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bc10
Capabilities:
Create directory

Disassembly:
sub esp, 0x20
mov eax, dword [0x43416c]
push 0xffffffffffffffff
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push 0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.00401840
mov eax, dword [esp + 0x14]
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x40bc72
cmp eax, 0x10
jb 0x40bc61
mov ecx, dword [esp + 4]
push ecx
call fcn.004043d0
add esp, 4
xor al, al
mov ecx, dword [esp + 0x1c]
call fcn.0041def4
add esp, 0x20
ret 4
push esi
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 8]
jae 0x40bc84
lea eax, [esp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40bcb6
cmp dword [esp + 0x1c], esi
jb 0x40bca4
mov edx, dword [esp + 8]
push edx
call fcn.004043d0
add esp, 4
mov al, 1
pop esi
mov ecx, dword [esp + 0x1c]
call fcn.0041def4
add esp, 0x20
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, dword [esp + 0x1c]
jne 0x40bcea
cmp eax, esi
jb 0x40bca4
mov eax, dword [esp + 8]
push eax
call fcn.004043d0
add esp, 4
mov al, 1
pop esi
mov ecx, dword [esp + 0x1c]
call fcn.0041def4
add esp, 0x20
ret 4
cmp eax, esi
jb 0x40bcfb
mov ecx, dword [esp + 8]
push ecx
call fcn.004043d0
add esp, 4
mov ecx, dword [esp + 0x20]
xor al, al
pop esi
call fcn.0041def4
add esp, 0x20
ret 4

Function at 0x40c160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4283fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [0x43416c]
push ebx
push esi
mov dword [esp + 0x130], eax
push 0x104
lea eax, [esp + 0x2c]
xor ebx, ebx
push eax
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x28]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c1b7
sub eax, edx
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401930
mov esi, dword [esp + 0x144]
lea edx, [esp + 8]
push edx
push esi
mov dword [esp + 0x144], ebx
call fcn.0040be50
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 0x10
jb 0x40c201
mov eax, dword [esp + 0xc]
push eax
call fcn.004043d0
add esp, 4
mov ecx, dword [esp + 0x134]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x12c]
pop ebx
call fcn.0041def4
add esp, 0x138
ret

Function at 0x40c230
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x43416c]
mov dword [esp + 0x10c], eax
push esi
lea eax, [esp + 8]
push eax
push 0x104
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x118]
lea eax, [esp + 8]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
lea edx, [eax + 1]
jmp 0x40c280
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c280
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00401930
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
call fcn.0041def4
add esp, 0x110
ret
Function at 0x40c2b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x114
mov eax, dword [0x43416c]
mov dword [esp + 0x110], eax
push esi
lea eax, [esp + 8]
push eax
mov dword [esp + 8], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x40c361
mov edx, dword [esp + 0x120]
lea ecx, [esp + 4]
push ecx
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40c357
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
mov eax, dword [esp + 8]
je 0x40c34c
mov ecx, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00401a80
mov eax, esi
pop esi
mov ecx, dword [esp + 0x110]
call fcn.0041def4
add esp, 0x114
ret
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x11c]
push 0
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
push 0x42a9db
mov ecx, esi
mov byte [esi + 4], 0
call fcn.00401930
mov ecx, dword [esp + 0x114]
mov eax, esi
pop esi
call fcn.0041def4
add esp, 0x114
ret

Function at 0x40cf70
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 8]
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x40cf87
mov eax, dword [eax + 4]
jmp 0x40cf8a
add eax, 4
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi + 4], eax
pop esi
jne 0x40cfa0
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
inc ecx
mov eax, ecx
ret 4
Function at 0x40f880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4288e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], fcn.00403810
mov eax, dword [esi + 0xc]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x30], edi
je 0x40f953
cmp dword [esi + 8], edi
jbe 0x40f947
push ebx
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
push ebp
mov ebp, 0x10
lea ecx, [ecx]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
lea eax, [ecx + 1]
imul eax, edi
add eax, edx
cmp byte [ecx + eax], 0
je 0x40f93d
push eax
lea eax, [esp + 0x18]
push str.MemoryLeak___:__0x_X
push eax
call fcn.0040bda0
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, ebp
jb 0x40f903
mov eax, dword [eax + 4]
jmp 0x40f906
add eax, 4
push 0x1010
push str.CFixedSizePoolAllocator
push eax
push 0
call ebx
cmp dword [esp + 0x2c], ebp
jb 0x40f928
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004043d0
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jb 0x40f8d0
pop ebp
pop ebx
mov edx, dword [esi + 0xc]
push edx
call fcn.0041e43d
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esi], 0x42a738
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x414800
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4290db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x34]
mov dword [esi], 0x42b1e4
xor ebx, ebx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0xc], esi
mov byte [edi + 4], bl
push 4
mov dword [esp + 0x1c], ebx
mov dword [esi + 4], 0x30
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x7f00
push ebx
mov dword [esi + 0x24], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f05
push ebx
mov dword [esi + 0x20], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], ebx
call fcn.00407d40
push 0xb
push str.Application
mov ecx, edi
mov dword [esi + 0x18], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], str.Application
call fcn.00401930
mov ecx, dword [esp + 0x10]
mov al, 1
mov byte [esi + 0x6c], al
mov byte [esi + 0x6d], al
mov dword [esi + 0x54], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x6e], bl
mov dword [esi + 0x70], ebx
pop edi
mov dword [esi + 0x50], 0x90ca0000
mov dword [esi + 0x60], 0x320
mov dword [esi + 0x64], 0x258
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41e04a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42eec0
call fcn.0041feec
mov edi, 0x94
mov eax, edi
call fcn.0041e920
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 [0xc458b8], ecx
mov eax, dword [esi + 4]
mov dword [0xc458c4], eax
mov edx, dword [esi + 8]
mov dword [0xc458c8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0xc458bc], esi
cmp ecx, 2
je 0x41e0aa
or esi, 0x8000
mov dword [0xc458bc], esi
shl eax, 8
add eax, edx
mov dword [0xc458c0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41e0e5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e0e5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41e0fd
cmp eax, 0x20b
je 0x41e0ea
mov dword [ebp - 0x1c], esi
jmp 0x41e111
cmp dword [ecx + 0x84], 0xe
jbe 0x41e0e5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41e10b
cmp dword [ecx + 0x74], 0xe
jbe 0x41e0e5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00421078
pop ecx
test eax, eax
jne 0x41e125
push 0x1c
call fcn.0041e026
pop ecx
call fcn.0041fa59
test eax, eax
jne 0x41e136
push 0x10
call fcn.0041e026
pop ecx
call fcn.00420fd6
mov dword [ebp - 4], esi
call fcn.00420dd8
test eax, eax
jge 0x41e14f
push 0x1b
call fcn.0041e001
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0xc46fd0], eax
call fcn.00420cb6
mov dword [0xc45730], eax
call fcn.00420c14
test eax, eax
jge 0x41e175
push 8
call fcn.0041e001
pop ecx
call fcn.004209e1
test eax, eax
jge 0x41e186
push 9
call fcn.0041e001
pop ecx
push 1
call fcn.0042048d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41e19c
push eax
call fcn.0041e001
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00420984
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41e1bd
movzx eax, word [ebp - 0x40]
jmp 0x41e1c0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00402180
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41e1de
push edi
call fcn.004205ba
call fcn.004205dc
jmp 0x41e210
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041ff27
ret
Function at 0x41e2f9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x41e316
call fcn.004210c9
mov dword [eax], 0x16
xor eax, eax
jmp 0x41e380
push esi
push 0x8c
push 1
call fcn.0042114e
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41e36b
push esi
call fcn.0041f85f
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x41e349
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41e264
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41e37f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0041e43d
test ebx, ebx
pop ecx
je 0x41e37d
push ebx
call fcn.004210db
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4204f7
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42f1f8
call fcn.0041feec
push 8
call fcn.0041febb
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0xc458f8], esi
jne 0x42052b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0xc458f4], esi
mov al, byte [ebp + 0x10]
mov byte [0xc458f0], al
cmp dword [ebp + 0xc], edi
jne 0x420575
cmp dword [0xc46fc8], edi
je 0x420565
mov eax, dword [0xc46fc4]
sub eax, 4
mov dword [0xc46fc4], eax
cmp eax, dword [0xc46fc8]
jb 0x420565
mov eax, dword [eax]
cmp eax, edi
je 0x420546
call eax
jmp 0x420546
push 0x434058
mov eax, 0x434050
call fcn.00420475
pop ecx
push 0x434064
mov eax, 0x43405c
call fcn.00420475
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4205a6
cmp dword [ebp + 0x10], edi
jne 0x4205b4
mov dword [0xc458f8], esi
push dword [ebp + 8]
call fcn.00420433
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4205b3
push 8
call fcn.0041fe06
pop ecx
ret
call fcn.0041ff27
ret
Function at 0x420670
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x43416c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4342c0]
je 0x4206a5
inc eax
cmp eax, 0x13
jb 0x420696
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4342c0]
jne 0x4207cb
mov eax, dword [0xc45738]
cmp eax, 1
je 0x4207a3
cmp eax, edx
jne 0x4206d5
cmp dword [0x434174], 1
je 0x4207a3
cmp ecx, 0xfc
je 0x4207cb
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42070b
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041fc70
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0041eba0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42073f
mov eax, edi
push eax
call fcn.0041eba0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42f00c
push edi
call fcn.004249e0
add esp, 0x10
push edi
call fcn.0041eba0
push dword [esi + 0x4342c4]
mov ebx, eax
call fcn.0041eba0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041e920
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041fc70
push edi
push ebx
call fcn.0041fc80
push 0x42f008
push ebx
call fcn.0041fc80
push dword [esi + 0x4342c4]
push ebx
call fcn.0041fc80
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004248df
add esp, 0x2c
jmp 0x4207cb
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4342c4]
push dword [esi]
call fcn.0041eba0
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]
mov ecx, dword [ebp + 0x88]
call fcn.0041def4
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x422273
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x43416c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4222a4
xor eax, eax
jmp 0x42242d
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0xc46ec0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4222e0
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00425016
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4223bb
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4223f9
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x422344
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x422335
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x422315
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x422384
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x42238d
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x422306
jmp 0x42238f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x422428
cmp dword [ebp - 0x6c], edi
je 0x4223f9
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4223ee
call fcn.004210c9
mov dword [eax], 9
call fcn.004210d2
mov dword [eax], esi
jmp 0x422423
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4223e3
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x42238f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x42238f
push dword [ebp - 0x6c]
call fcn.004210db
pop ecx
jmp 0x422423
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x422411
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x422411
xor eax, eax
jmp 0x42242b
call fcn.004210c9
mov dword [eax], 0x1c
call fcn.004210d2
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x42242b
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0041def4
add ebp, 0x3a0
leave
ret
Function at 0x4246b6
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 0x4246e4
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 0x4246eb
cmp ebx, dword [eax + 4]
jae 0x4246eb
xor eax, eax
jmp 0x4248db
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4246fc
xor eax, eax
inc eax
jmp 0x4248da
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x424712
cmp ecx, edx
jae 0x424857
cmp dword [eax + 4], 0
je 0x42471b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x424703
cmp dword [ebp + 8], 0
je 0x42473d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x424857
cmp eax, esi
jae 0x424857
mov eax, dword [0xc45b10]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x424762
cmp dword [esi*4 + 0xc45b18], edi
je 0x42485b
inc esi
cmp esi, eax
jl 0x424750
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4248d7
cmp dword [ebp - 8], 0x1000000
jne 0x4248d7
test byte [ebp - 0xc], 0xcc
je 0x4247e0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4248d7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4248d7
cmp word [eax + 0x18], 0x10b
jne 0x4248d7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4248d7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4247e0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4247e0
test byte [ecx + 0x27], 0x80
jne 0x424857
push 1
push 0xc45b58
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4246f4
mov ecx, dword [0xc45b10]
test ecx, ecx
mov edx, ecx
jle 0x424814
lea eax, [ecx*4 + 0xc45b14]
cmp dword [eax], edi
je 0x424814
dec edx
sub eax, 4
test edx, edx
jg 0x424808
test edx, edx
jne 0x424845
push 0xf
pop ebx
cmp ecx, ebx
jg 0x424821
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x424839
lea eax, [edx*4 + 0xc45b18]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x424827
cmp ecx, 0x10
jge 0x424845
inc ecx
mov dword [0xc45b10], ecx
push 0
push 0xc45b58
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4246f4
xor eax, eax
jmp 0x4248da
test esi, esi
jle 0x4246f4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0xc45b58
call ebx
test eax, eax
jne 0x4246f4
cmp dword [esi*4 + 0xc45b18], edi
je 0x4248b1
mov eax, dword [0xc45b10]
lea esi, [eax - 1]
test esi, esi
jl 0x42489f
cmp dword [esi*4 + 0xc45b18], edi
je 0x42489b
dec esi
jns 0x42488f
test esi, esi
jge 0x4248af
cmp eax, 0x10
jge 0x4248aa
inc eax
mov dword [0xc45b10], eax
lea esi, [eax - 1]
jmp 0x4248b1
je 0x4248c9
xor ecx, ecx
test esi, esi
jl 0x4248c9
lea eax, [ecx*4 + 0xc45b18]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4248b7
push 0
push 0xc45b58
call ebx
jmp 0x4246f4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4248df
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0xc45b5c], ebx
push esi
push edi
jne 0x42495f
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42499a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42f9dc
push edi
call esi
test eax, eax
mov dword [0xc45b5c], eax
je 0x42499a
push 0x42f9cc
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0xc45b60], eax
call esi
cmp dword [0xc458b8], 2
mov dword [0xc45b64], eax
jne 0x42495f
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0xc45b6c], eax
je 0x42495f
push str.GetProcessWindowStation
push edi
call esi
mov dword [0xc45b68], eax
mov eax, dword [0xc45b68]
test eax, eax
je 0x4249a4
call eax
test eax, eax
je 0x42498b
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0xc45b6c]
test eax, eax
je 0x42498b
test byte [ebp - 8], 1
jne 0x4249a4
cmp dword [0xc458c4], 4
jb 0x42499e
or byte [ebp + 0x12], 0x20
jmp 0x4249c3
xor eax, eax
jmp 0x4249d3
or byte [ebp + 0x12], 4
jmp 0x4249c3
mov eax, dword [0xc45b60]
test eax, eax
je 0x4249c3
call eax
mov ebx, eax
test ebx, ebx
je 0x4249c3
mov eax, dword [0xc45b64]
test eax, eax
je 0x4249c3
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0xc45b5c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42584e
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.0041e920
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4258e9
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 [0xc458b8]
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 0x4258e9
cmp eax, 1
je 0x42590a
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 0x4258e9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4258b6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4258e5
xor eax, eax
inc eax
jmp 0x425929
cmp edi, eax
jae 0x4258ed
xor eax, eax
jmp 0x425929
cmp eax, esi
jae 0x4258f4
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 [0xc458b8]
jmp 0x42590d
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