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

Disassembly:
push 0xffffffffffffffff
push 0x41b77f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x422468]
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], 1
cmp eax, 6
ja case.default.0x40459e
jmp dword [eax*4 + 0x404630]
push str.6c78787429374529364a29364a6873737174373272697829364a756670736b29364a
jmp 0x4045d4
push str.57534a585b455649293947293947516d67767377736a782939472939475b6d7268737b77293947293947477976766972785a6976776d7372293947293947567972
jmp 0x4045d4
push str.4568736669
jmp 0x4045d4
push str.67636d726d7832746c7429374a74636d682937487374697229363a716567293748
jmp 0x4045d4
push str.67637065777832746c7429374a74636d682937487374697229363a716567293748
jmp 0x4045d4
push str.67637374697232746c74
jmp 0x4045d4
push str.7374697232746c7429374a71293748
lea ecx, [esp + 0xc]
call fcn.0041202b
push 4
push 1
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00411c63
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi + 0xc4]
push esi
call fcn.00401170
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.00411eee
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 8

Function at 0x4107e1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x410801
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407787
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x410824
test byte [esp + 8], 2
je 0x410824
call fcn.004077fa
mov dword [eax], 0xd
call fcn.00407803
mov dword [eax], 5
jmp 0x4107fd
xor eax, eax
ret

Function at 0x418540
Capabilities:
Create http request

Disassembly:
mov eax, 0x41b9e8
call fcn.00406ce8
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x418578
call fcn.0041a4ca
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x41859d
push eax
push dword [esi + 4]
call fcn.0041919c
jmp 0x4185a9
push esi
push eax
mov ecx, 0x425db0
call fcn.004185ba
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x41886b
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x41ba47
call fcn.00406ce8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00413e46
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x422468]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.0041202b
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0041202b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x41a03e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41a06c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41a08a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00419fa4
jmp 0x41a08a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41a08a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00419fa4
test edi, edi
mov eax, edi
jne 0x41a074
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401382
Capabilities:
Query environment variable

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
ret

Function at 0x401395
Capabilities:
Hash data with crc32

Disassembly:
push esi
push 8
xor eax, eax
shl ecx, 1
pop esi
sar ecx, 1
mov edx, eax
xor edx, ecx
shr eax, 1
test dl, 1
je 0x4013af
xor eax, 0xedb88320
dec esi
jne 0x40139d
pop esi
ret

Function at 0x4013d0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
mov eax, dword [0x40fa98]
je 0x4013fb
mov ecx, dword [esp + 4]
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x40f480]
inc ecx
dec edx
jne 0x4013e3
pop edi
pop esi
mov dword [0x40fa98], eax
ret
Function at 0x401c0e
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x11c]
sub esp, 0x19c
mov eax, dword [0x40ebe8]
push ebx
mov dword [ebp + 0x118], eax
mov eax, dword [0x40fdfc]
inc dword [0x40fdfc]
test eax, eax
push esi
push edi
jne 0x401d39
push dword [ebp + 0x128]
lea eax, [ebp - 0x7c]
push dword [ebp + 0x124]
push str.WinZip_internal_error_in_file__s_line__d
push 0x191
push eax
call fcn.0040a2c1
add esp, 0x14
test eax, eax
jge 0x401c72
push 0xc75
push str.sfxhead.c
call fcn.00401c0e
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x30
mov edi, str.WinZip_Self_Extractor
push edi
lea eax, [ebp - 0x7c]
push eax
push dword [0x40fdec]
call esi
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str.WZSFX32.RPT
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401d39
push 0x40c4cc
push 0x191
lea eax, [ebp - 0x7c]
push eax
call fcn.0040a319
test eax, eax
jge 0x401cd7
push 0xc7e
push str.sfxhead.c
call fcn.00401c0e
push 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00406760
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.00401782
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._nPlease_save_the_file_WZSFX32.RPTand_inform_WinZip_Computing_n_nInternet:_support_winzip.com_nWeb:_http:__www.winzip.com_nPostal_mail:_P.O._Box_540__Mansfield__CT_06268_USA
lea eax, [ebp - 0x7c]
push 0x191
push eax
call fcn.0040a2c1
add esp, 0xc
test eax, eax
jge 0x401d2a
push 0xc8b
push str.sfxhead.c
call fcn.00401c0e
push 0x30
push edi
lea eax, [ebp - 0x7c]
push eax
push dword [0x40fdec]
call esi
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401d9d
Capabilities:
Set current directory

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call fcn.004010cd
pop ecx
push dword [esp + 0xc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, eax
dec esi
neg esi
sbb esi, esi
neg esi
test edi, edi
je 0x401dd1
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00401d42
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
ret
Function at 0x401e70
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x40ebe8]
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 8
lea eax, [ebp - 0xc]
push eax
call fcn.0040a289
test eax, eax
jge 0x401e9f
push 0x45a
push str.sfxhead.c
jmp 0x401f4c
lea eax, [ebp - 0xc]
push eax
call fcn.00406760
cmp eax, 8
pop ecx
jae 0x401f41
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x20
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x401f02
push 7
lea eax, [ebp - 0x2c]
push str.PKBACK
push eax
call fcn.0040116a
add esp, 0xc
test eax, eax
jne 0x401f02
mov al, byte [ebp - 0x2c]
cmp al, bl
lea ecx, [ebp - 0x2c]
je 0x401f02
cmp al, 0x2e
je 0x401efe
cmp al, 0x20
je 0x401efe
inc ecx
mov al, byte [ecx]
cmp al, bl
jne 0x401eef
cmp byte [ecx], bl
jne 0x401f13
or ax, 0xffff
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0040653a
leave
ret 4
mov al, byte [ecx]
cmp al, 0x30
jb 0x401f1d
cmp al, 0x39
jbe 0x401f20
inc ecx
jmp 0x401f13
xor eax, eax
jmp 0x401f39
movzx edx, dl
lea eax, [eax + eax*4]
shl eax, 1
sub edx, 0x30
js 0x401f06
cmp edx, 9
jg 0x401f06
add eax, edx
inc ecx
mov dl, byte [ecx]
cmp dl, bl
jne 0x401f24
jmp 0x401f06
push 0x45b
push dword [0x40e938]
call fcn.00401c0e
int3
Function at 0x402f6f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5cc
mov eax, dword [0x40ebe8]
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov esi, 0x2e3
push esi
lea eax, [ebp - 0x5cc]
push eax
call fcn.0040a289
test eax, eax
jge 0x402fa6
push 0xe17
jmp 0x4030b8
mov edi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x402fea
push 0x40c540
push esi
lea eax, [ebp - 0x5cc]
push eax
call fcn.0040a319
test eax, eax
jge 0x402fce
push 0xe1a
jmp 0x4030b8
push edi
push esi
lea eax, [ebp - 0x5cc]
push eax
call fcn.0040a319
test eax, eax
jge 0x402fea
push 0xe1b
jmp 0x4030b8
mov ebx, dword [ebp + 0x10]
cmp ebx, 0xffffffff
jne 0x403006
push 1
lea eax, [ebp - 0x5cc]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x4030de
lea eax, [ebp - 0x2e8]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x1f
jne 0x40304d
push dword [ebp + 8]
mov eax, dword [0x40e0f8]
mov ecx, dword [0x40fdd0]
add eax, ecx
push eax
lea eax, [ebp - 0x2e8]
push esi
push eax
call fcn.0040a2c1
add esp, 0x10
test eax, eax
jge 0x403049
push 0xe29
jmp 0x4030b8
push 0x10
jmp 0x4030c4
cmp eax, 0x20
jbe 0x40308d
mov al, byte [edi]
neg al
push 1
push 0
sbb eax, eax
and eax, edi
push eax
mov eax, dword [0x40e998]
push dword [ebp + 8]
and eax, 0x20000
neg eax
sbb eax, eax
and eax, str.Install
push eax
push dword [0x40fdec]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test ebx, ebx
je 0x403088
mov dword [ebx], eax
cmp eax, 0x20
ja 0x4030de
push dword [ebp + 8]
mov ecx, dword [0x40fdd0]
push eax
mov eax, dword [0x40e078]
add eax, ecx
push eax
lea eax, [ebp - 0x2e8]
push esi
push eax
call fcn.0040a2c1
add esp, 0x14
test eax, eax
jge 0x4030c2
push 0xe73
push str.sfxhead.c
call fcn.00401c0e
push 0
push str.WinZip_Self_Extractor
lea eax, [ebp - 0x2e8]
push eax
push dword [0x40fdec]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040653a
leave
ret
Function at 0x4032b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, 0x7000
push esi
push 0
push dword [0x40f2e0]
call fcn.00401195
mov eax, dword [0x40f472]
add esp, 0xc
test eax, eax
jg 0x4032db
and dword [0x40fd7c], 0
xor eax, eax
pop esi
ret
cmp eax, esi
ja 0x4032e1
mov esi, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll__lread]
push esi
push dword [0x40f2e0]
push dword [0x40fd8c]
call edi
cmp dword [0x40fdb0], 0
mov dword [0x40fd7c], eax
je 0x403348
cmp eax, 0xffffffff
je 0x403348
cmp eax, esi
je 0x403354
test eax, eax
jl 0x403348
mov ecx, dword [0x40e928]
mov edx, dword [0x40fdb4]
inc ecx
call fcn.00401f52
mov eax, dword [0x40fd7c]
test eax, eax
jne 0x403341
push esi
push dword [0x40f2e0]
push dword [0x40fd8c]
call edi
mov dword [0x40fd7c], eax
cmp eax, 0xffffffff
je 0x403348
mov esi, eax
cmp eax, esi
je 0x403354
push 2
pop ecx
jmp fcn.00402ad1
mov esi, dword [0x40f2e0]
mov ecx, dword [0x40e978]
mov dword [0x40fd78], esi
test byte [ecx + 0x28], 1
je 0x4033a0
mov byte [0x40fdf8], 1
test byte [ecx + 0x29], 0x13
jne 0x4033ad
test eax, eax
je 0x403399
mov edi, eax
call fcn.0040636d
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00406384
inc esi
dec edi
pop ecx
jne 0x40337f
mov eax, dword [0x40fd7c]
mov byte [0x40fdf8], 0
mov ecx, eax
dec eax
pop edi
mov dword [0x40fd7c], eax
mov eax, ecx
pop esi
ret
push 0xf2f
push dword [0x40e938]
call fcn.00401c0e
int3
Function at 0x406384
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x410c30]
mov edx, eax
xor edx, dword [esp + 4]
shr eax, 8
mov ecx, 0xff
and edx, ecx
xor eax, dword [edx*4 + 0x40f480]
xor edx, edx
mov dword [0x410c30], eax
and eax, ecx
add eax, dword [0x410c34]
imul eax, eax, 0x8088405
inc eax
mov dword [0x410c34], eax
mov dl, byte [0x410c37]
mov eax, dword [0x410c38]
xor edx, eax
shr eax, 8
and edx, ecx
xor eax, dword [edx*4 + 0x40f480]
mov dword [0x410c38], eax
mov eax, dword [esp + 4]
ret

Function at 0x406416
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x40ebe8]
push esi
push dword [0x40fdac]
mov dword [ebp - 4], eax
call fcn.004063de
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00401148
add esp, 0x10
xor esi, esi
lea edx, [ebp + esi - 0x10]
call fcn.0040636d
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.00406384
inc esi
cmp esi, 0xc
pop ecx
jl 0x406443
cmp dword [0x40fda8], 0
movzx ax, byte [ebp - 5]
movzx cx, byte [0x40f46b]
pop esi
jne 0x40647d
movzx cx, byte [0x40f471]
cmp ax, cx
je 0x406487
or eax, 0xffffffff
jmp 0x406489
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.0040653a
leave
ret

Function at 0x40665b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x410c8c], esi
push edi
jne 0x40667b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x410c88], esi
mov byte [0x410c84], al
jne 0x4066e1
mov ecx, dword [0x4121ec]
test ecx, ecx
je 0x4066c2
mov eax, dword [0x4121e8]
sub eax, 4
cmp eax, ecx
jmp 0x4066bb
mov eax, dword [eax]
test eax, eax
je 0x4066ad
call eax
mov eax, dword [0x4121e8]
sub eax, 4
cmp eax, dword [0x4121ec]
mov dword [0x4121e8], eax
jae 0x4066a5
mov eax, 0x40e020
mov esi, 0x40e028
cmp eax, esi
mov edi, eax
jae 0x4066e1
mov eax, dword [edi]
test eax, eax
je 0x4066da
call eax
add edi, 4
cmp edi, esi
jb 0x4066d2
mov eax, 0x40e02c
mov esi, 0x40e030
cmp eax, esi
mov edi, eax
jae 0x406700
mov eax, dword [edi]
test eax, eax
je 0x4066f9
call eax
add edi, 4
cmp edi, esi
jb 0x4066f1
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40671a
push dword [ebp + 8]
mov dword [0x410c8c], 1
call fcn.004065c1
pop ebp
ret
Function at 0x407661
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40ebe8]
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 + 0x40ec18]
je 0x407696
inc eax
cmp eax, 0x13
jb 0x407687
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40ec18]
jne 0x4077bc
mov eax, dword [0x410c98]
cmp eax, 1
je 0x407794
cmp eax, edx
jne 0x4076c6
cmp dword [0x40ebf4], 1
je 0x407794
cmp ecx, 0xfc
je 0x4077bc
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 0x4076fc
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004080f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00406760
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x407730
mov eax, edi
push eax
call fcn.00406760
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40cb6c
push edi
call fcn.004081f0
add esp, 0x10
push edi
call fcn.00406760
push dword [esi + 0x40ec1c]
mov ebx, eax
call fcn.00406760
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00406c90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004080f0
push edi
push ebx
call fcn.00408100
push 0x40cb68
push ebx
call fcn.00408100
push dword [esi + 0x40ec1c]
push ebx
call fcn.00408100
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00407fec
add esp, 0x2c
jmp 0x4077bc
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40ec1c]
push dword [esi]
call fcn.00406760
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.0040653a
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x407fec
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x410dd8], ebx
push esi
push edi
jne 0x40806c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4080a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40d178
push edi
call esi
test eax, eax
mov dword [0x410dd8], eax
je 0x4080a7
push str.GetActiveWindow
push edi
call esi
push 0x40d154
push edi
mov dword [0x410ddc], eax
call esi
cmp dword [0x410c4c], 2
mov dword [0x410de0], eax
jne 0x40806c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x410de8], eax
je 0x40806c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x410de4], eax
mov eax, dword [0x410de4]
test eax, eax
je 0x4080b1
call eax
test eax, eax
je 0x408098
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x410de8]
test eax, eax
je 0x408098
test byte [ebp - 8], 1
jne 0x4080b1
cmp dword [0x410c58], 4
jb 0x4080ab
or byte [ebp + 0x12], 0x20
jmp 0x4080d0
xor eax, eax
jmp 0x4080e0
or byte [ebp + 0x12], 4
jmp 0x4080d0
mov eax, dword [0x410ddc]
test eax, eax
je 0x4080d0
call eax
mov ebx, eax
test ebx, ebx
je 0x4080d0
mov eax, dword [0x410de0]
test eax, eax
je 0x4080d0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x410dd8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408314
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 0x408342
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 0x408349
cmp ebx, dword [eax + 4]
jae 0x408349
xor eax, eax
jmp 0x408539
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40835a
xor eax, eax
inc eax
jmp 0x408538
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x408370
cmp ecx, edx
jae 0x4084b5
cmp dword [eax + 4], 0
je 0x408379
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x408361
cmp dword [ebp + 8], 0
je 0x40839b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4084b5
cmp eax, esi
jae 0x4084b5
mov eax, dword [0x410df0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4083c0
cmp dword [esi*4 + 0x410df8], edi
je 0x4084b9
inc esi
cmp esi, eax
jl 0x4083ae
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408535
cmp dword [ebp - 8], 0x1000000
jne 0x408535
test byte [ebp - 0xc], 0xcc
je 0x40843e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x408535
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x408535
cmp word [eax + 0x18], 0x10b
jne 0x408535
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x408535
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40843e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40843e
test byte [ecx + 0x27], 0x80
jne 0x4084b5
push 1
push 0x410e38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x408352
mov ecx, dword [0x410df0]
test ecx, ecx
mov edx, ecx
jle 0x408472
lea eax, [ecx*4 + 0x410df4]
cmp dword [eax], edi
je 0x408472
dec edx
sub eax, 4
test edx, edx
jg 0x408466
test edx, edx
jne 0x4084a3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40847f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408497
lea eax, [edx*4 + 0x410df8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x408485
cmp ecx, 0x10
jge 0x4084a3
inc ecx
mov dword [0x410df0], ecx
push 0
push 0x410e38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x408352
xor eax, eax
jmp 0x408538
test esi, esi
jle 0x408352
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x410e38
call ebx
test eax, eax
jne 0x408352
cmp dword [esi*4 + 0x410df8], edi
je 0x40850f
mov eax, dword [0x410df0]
lea esi, [eax - 1]
test esi, esi
jl 0x4084fd
cmp dword [esi*4 + 0x410df8], edi
je 0x4084f9
dec esi
jns 0x4084ed
test esi, esi
jge 0x40850d
cmp eax, 0x10
jge 0x408508
inc eax
mov dword [0x410df0], eax
lea esi, [eax - 1]
jmp 0x40850f
je 0x408527
xor ecx, ecx
test esi, esi
jl 0x408527
lea eax, [ecx*4 + 0x410df8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x408515
push 0
push 0x410e38
call ebx
jmp 0x408352
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409b97
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.00406c90
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409c32
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 [0x410c4c]
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 0x409c32
cmp eax, 1
je 0x409c53
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 0x409c32
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x409bff
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x409c2e
xor eax, eax
inc eax
jmp 0x409c72
cmp edi, eax
jae 0x409c36
xor eax, eax
jmp 0x409c72
cmp eax, esi
jae 0x409c3d
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 [0x410c4c]
jmp 0x409c56
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