joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494ad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x494bf1
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x494bd5
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x494b27
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x494b05
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x495639
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x495690
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x495690
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x495690
xor eax, eax
inc eax
jmp 0x495692
xor eax, eax
leave
ret 0x10
Function at 0x4956bb
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x495729
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x4e35f4
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x495720
cmp dword [ebp - 0xc], 4
jne 0x495720
cmp dword [ebp - 0x10], edi
je 0x495720
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x50d1e8], edi
xor eax, eax
jmp 0x495768
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x50d1e8], edi
jge 0x495763
lea eax, [ebp - 0x34]
push eax
mov dword [0x50d1e8], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x495763
cmp word [ebp - 0x14], 5
jb 0x495763
call fcn.00495696
test eax, eax
je 0x495763
emms
mov dword [0x50d1e8], 1
mov eax, dword [0x50d1e8]
pop edi
leave
ret

Function at 0x4bf14b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4bf183
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004bd1c5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004bd19d
jmp 0x4bf18f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c083c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c087e
call fcn.004c67f1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c087e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c0875
xor eax, eax
jmp 0x4c0886
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c088c
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c6d21
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 0x4c6d4f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c6d6d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c6c87
jmp 0x4c6d6d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c6d6d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c6c87
test edi, edi
mov eax, edi
jne 0x4c6d57
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1000578e
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 0x100057bc
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 0x100057c3
cmp ebx, dword [eax + 4]
jae 0x100057c3
xor eax, eax
jmp 0x100059b3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100057d4
xor eax, eax
inc eax
jmp 0x100059b2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100057ea
cmp ecx, edx
jae 0x1000592f
cmp dword [eax + 4], 0
je 0x100057f3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100057db
cmp dword [ebp + 8], 0
je 0x10005815
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1000592f
cmp eax, esi
jae 0x1000592f
mov eax, dword [0x3aac10]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1000583a
cmp dword [esi*4 + 0x3aac18], edi
je 0x10005933
inc esi
cmp esi, eax
jl 0x10005828
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x3a80f0]
test eax, eax
je 0x100059af
cmp dword [ebp - 8], 0x1000000
jne 0x100059af
test byte [ebp - 0xc], 0xcc
je 0x100058b8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100059af
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100059af
cmp word [eax + 0x18], 0x10b
jne 0x100059af
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100059af
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100058b8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100058b8
test byte [ecx + 0x27], 0x80
jne 0x1000592f
push 1
push 0x3aac58
call dword [0x3a80ec]
test eax, eax
jne 0x100057cc
mov ecx, dword [0x3aac10]
test ecx, ecx
mov edx, ecx
jle 0x100058ec
lea eax, [ecx*4 + 0x3aac14]
cmp dword [eax], edi
je 0x100058ec
dec edx
sub eax, 4
test edx, edx
jg 0x100058e0
test edx, edx
jne 0x1000591d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100058f9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x10005911
lea eax, [edx*4 + 0x3aac18]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100058ff
cmp ecx, 0x10
jge 0x1000591d
inc ecx
mov dword [0x3aac10], ecx
push 0
push 0x3aac58
call dword [0x3a80ec]
jmp 0x100057cc
xor eax, eax
jmp 0x100059b2
test esi, esi
jle 0x100057cc
mov ebx, dword [0x3a80ec]
push 1
push 0x3aac58
call ebx
test eax, eax
jne 0x100057cc
cmp dword [esi*4 + 0x3aac18], edi
je 0x10005989
mov eax, dword [0x3aac10]
lea esi, [eax - 1]
test esi, esi
jl 0x10005977
cmp dword [esi*4 + 0x3aac18], edi
je 0x10005973
dec esi
jns 0x10005967
test esi, esi
jge 0x10005987
cmp eax, 0x10
jge 0x10005982
inc eax
mov dword [0x3aac10], eax
lea esi, [eax - 1]
jmp 0x10005989
je 0x100059a1
xor ecx, ecx
test esi, esi
jl 0x100059a1
lea eax, [ecx*4 + 0x3aac18]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1000598f
push 0
push 0x3aac58
call ebx
jmp 0x100057cc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x30
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401078
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x401078
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x24]
push edx
push 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
add esp, 0x30
ret

Function at 0x4010a3
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x405110
call fcn.00401dbc
mov edi, 0x94
mov eax, edi
call fcn.00401f20
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 [0x4072d8], ecx
mov eax, dword [esi + 4]
mov dword [0x4072e4], eax
mov edx, dword [esi + 8]
mov dword [0x4072e8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4072dc], esi
cmp ecx, 2
je 0x401103
or esi, 0x8000
mov dword [0x4072dc], esi
shl eax, 8
add eax, edx
mov dword [0x4072e0], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40113c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40113c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401154
cmp eax, 0x20b
je 0x401141
mov dword [ebp - 0x1c], edi
jmp 0x401168
cmp dword [ecx + 0x84], 0xe
jbe 0x40113c
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x401162
cmp dword [ecx + 0x74], 0xe
jbe 0x40113c
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00401d6a
pop ecx
test eax, eax
jne 0x401194
cmp dword [0x4072c8], 2
je 0x401181
call fcn.0040157c
push 0x1c
call fcn.00401405
push 0xff
call fcn.0040126a
pop ecx
pop ecx
call fcn.00401cc8
mov dword [ebp - 4], edi
call fcn.00401b1d
test eax, eax
jge 0x4011ad
push 0x1b
call fcn.0040107e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x407854], eax
call fcn.004019fb
mov dword [0x4072c0], eax
call fcn.00401959
test eax, eax
jge 0x4011d3
push 8
call fcn.0040107e
pop ecx
call fcn.00401726
test eax, eax
jge 0x4011e4
push 9
call fcn.0040107e
pop ecx
push 1
call fcn.0040129a
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x4011fa
push eax
call fcn.0040107e
pop ecx
mov eax, dword [0x4072f8]
mov dword [0x4072fc], eax
push eax
push dword [0x4072f0]
push dword [0x4072ec]
call fcn.00401000
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x401229
push esi
call fcn.004013c5
call fcn.004013e7
jmp 0x40125b
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00401df7
ret
Function at 0x401304
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x407318], esi
push edi
jne 0x401324
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 [0x407314], esi
mov byte [0x407310], al
jne 0x40138a
mov ecx, dword [0x407848]
test ecx, ecx
je 0x40136b
mov eax, dword [0x407844]
sub eax, 4
cmp eax, ecx
jmp 0x401364
mov eax, dword [eax]
test eax, eax
je 0x401356
call eax
mov eax, dword [0x407844]
sub eax, 4
cmp eax, dword [0x407848]
mov dword [0x407844], eax
jae 0x40134e
mov eax, 0x40701c
mov esi, 0x407020
cmp eax, esi
mov edi, eax
jae 0x40138a
mov eax, dword [edi]
test eax, eax
je 0x401383
call eax
add edi, 4
cmp edi, esi
jb 0x40137b
mov eax, 0x407024
mov esi, 0x407028
cmp eax, esi
mov edi, eax
jae 0x4013a9
mov eax, dword [edi]
test eax, eax
je 0x4013a2
call eax
add edi, 4
cmp edi, esi
jb 0x40139a
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4013c3
push dword [ebp + 8]
mov dword [0x407318], 1
call fcn.0040126a
pop ebp
ret

Function at 0x401405
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x407170]
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 + 0x407038]
je 0x40143a
inc eax
cmp eax, 0x13
jb 0x40142b
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x407038]
jne 0x401560
mov eax, dword [0x4072c8]
cmp eax, 1
je 0x401538
cmp eax, edx
jne 0x40146a
cmp dword [0x407034], 1
je 0x401538
cmp ecx, 0xfc
je 0x401560
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 0x4014a0
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00402120
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402350
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4014d4
mov eax, edi
push eax
call fcn.00402350
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x405528
push edi
call fcn.00402220
add esp, 0x10
push edi
call fcn.00402350
push dword [esi + 0x40703c]
mov ebx, eax
call fcn.00402350
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00401f20
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402120
push edi
push ebx
call fcn.00402130
push 0x405508
push ebx
call fcn.00402130
push dword [esi + 0x40703c]
push ebx
call fcn.00402130
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00402019
add esp, 0x2c
jmp 0x401560
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40703c]
push dword [esi]
call fcn.00402350
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.0040240c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x402019
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x407434], ebx
push esi
push edi
jne 0x402099
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4020d4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x407434], eax
je 0x4020d4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x407438], eax
call esi
cmp dword [0x4072d8], 2
mov dword [0x40743c], eax
jne 0x402099
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x407444], eax
je 0x402099
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x407440], eax
mov eax, dword [0x407440]
test eax, eax
je 0x4020de
call eax
test eax, eax
je 0x4020c5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x407444]
test eax, eax
je 0x4020c5
test byte [ebp - 8], 1
jne 0x4020de
cmp dword [0x4072e4], 4
jb 0x4020d8
or byte [ebp + 0x12], 0x20
jmp 0x4020fd
xor eax, eax
jmp 0x40210d
or byte [ebp + 0x12], 4
jmp 0x4020fd
mov eax, dword [0x407438]
test eax, eax
je 0x4020fd
call eax
mov ebx, eax
test ebx, ebx
je 0x4020fd
mov eax, dword [0x40743c]
test eax, eax
je 0x4020fd
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x407434]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40380e
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 0x40383c
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 0x403843
cmp ebx, dword [eax + 4]
jae 0x403843
xor eax, eax
jmp 0x403a33
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403854
xor eax, eax
inc eax
jmp 0x403a32
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40386a
cmp ecx, edx
jae 0x4039af
cmp dword [eax + 4], 0
je 0x403873
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40385b
cmp dword [ebp + 8], 0
je 0x403895
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4039af
cmp eax, esi
jae 0x4039af
mov eax, dword [0x407450]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4038ba
cmp dword [esi*4 + 0x407458], edi
je 0x4039b3
inc esi
cmp esi, eax
jl 0x4038a8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403a2f
cmp dword [ebp - 8], 0x1000000
jne 0x403a2f
test byte [ebp - 0xc], 0xcc
je 0x403938
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x403a2f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403a2f
cmp word [eax + 0x18], 0x10b
jne 0x403a2f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x403a2f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x403938
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x403938
test byte [ecx + 0x27], 0x80
jne 0x4039af
push 1
push 0x407498
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40384c
mov ecx, dword [0x407450]
test ecx, ecx
mov edx, ecx
jle 0x40396c
lea eax, [ecx*4 + 0x407454]
cmp dword [eax], edi
je 0x40396c
dec edx
sub eax, 4
test edx, edx
jg 0x403960
test edx, edx
jne 0x40399d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x403979
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x403991
lea eax, [edx*4 + 0x407458]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40397f
cmp ecx, 0x10
jge 0x40399d
inc ecx
mov dword [0x407450], ecx
push 0
push 0x407498
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40384c
xor eax, eax
jmp 0x403a32
test esi, esi
jle 0x40384c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x407498
call ebx
test eax, eax
jne 0x40384c
cmp dword [esi*4 + 0x407458], edi
je 0x403a09
mov eax, dword [0x407450]
lea esi, [eax - 1]
test esi, esi
jl 0x4039f7
cmp dword [esi*4 + 0x407458], edi
je 0x4039f3
dec esi
jns 0x4039e7
test esi, esi
jge 0x403a07
cmp eax, 0x10
jge 0x403a02
inc eax
mov dword [0x407450], eax
lea esi, [eax - 1]
jmp 0x403a09
je 0x403a21
xor ecx, ecx
test esi, esi
jl 0x403a21
lea eax, [ecx*4 + 0x407458]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x403a0f
push 0
push 0x407498
call ebx
jmp 0x40384c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4048bc
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.00401f20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404957
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 [0x4072d8]
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 0x404957
cmp eax, 1
je 0x404978
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 0x404957
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404924
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404953
xor eax, eax
inc eax
jmp 0x404997
cmp edi, eax
jae 0x40495b
xor eax, eax
jmp 0x404997
cmp eax, esi
jae 0x404962
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 [0x4072d8]
jmp 0x40497b
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
Function at 0x40302f
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, dword fs:[0x30]
mov al, byte [ecx + 2]
leave
ret
Function at 0x407e6d
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x407e8f
mov eax, 0xfffffffd
jmp 0x407f07
mov ebx, dword [0x4c84e0]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x407ed5
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x4c84e0]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x407efd
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x407f07
mov esp, ebp
pop ebp
ret 4