joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46dfe5
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.00465c70
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x46e080
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 [0x661fa0]
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 0x46e080
cmp eax, 1
je 0x46e0a1
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 0x46e080
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x46e04d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x46e07c
xor eax, eax
inc eax
jmp 0x46e0c0
cmp edi, eax
jae 0x46e084
xor eax, eax
jmp 0x46e0c0
cmp eax, esi
jae 0x46e08b
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 [0x661fa0]
jmp 0x46e0a4
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 0x46fa2d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x652b74]
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 0x46fa5e
xor eax, eax
jmp 0x46fbe7
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 + 0x6624a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x46fa9a
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00473893
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x46fb75
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x46fbb3
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 0x46fafe
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x46faef
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 0x46facf
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 0x46fb3e
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x46fb47
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x46fac0
jmp 0x46fb49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x46fbe2
cmp dword [ebp - 0x6c], edi
je 0x46fbb3
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x46fba8
call fcn.00466862
mov dword [eax], 9
call fcn.0046686b
mov dword [eax], esi
jmp 0x46fbdd
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 0x46fb9d
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x46fb49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x46fb49
push dword [ebp - 0x6c]
call fcn.00466874
pop ecx
jmp 0x46fbdd
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x46fbcb
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x46fbcb
xor eax, eax
jmp 0x46fbe5
call fcn.00466862
mov dword [eax], 0x1c
call fcn.0046686b
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x46fbe5
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0046e0f9
add ebp, 0x3a0
leave
ret
Function at 0x46fd62
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 0x46ff36
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x6624a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x46ff36
test cl, 0x48
je 0x46fdcd
cmp byte [eax + 5], 0xa
je 0x46fdcd
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
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 0x46fe1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x46fe07
call fcn.00466862
mov dword [eax], 9
call fcn.0046686b
mov dword [eax], esi
jmp 0x46fe17
cmp eax, 0x6d
je 0x46ff36
push eax
call fcn.00466874
pop ecx
or eax, 0xffffffff
jmp 0x46ff38
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x46ff31
test eax, eax
je 0x46fe46
cmp byte [ebx], 0xa
jne 0x46fe46
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x46fe4f
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
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 0x46ff2b
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x46ff1b
cmp al, 0xd
je 0x46fe81
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x46ff0d
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x46fe9b
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x46fe96
add dword [ebp + 0x10], 2
jmp 0x46feef
mov dword [ebp + 0x10], eax
jmp 0x46ff09
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 0x46fec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46ff09
cmp dword [ebp - 0xc], 0
je 0x46ff09
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x46fee4
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x46feef
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x46ff0c
cmp ebx, dword [ebp + 0xc]
jne 0x46fef4
cmp byte [ebp - 1], 0xa
jne 0x46fef4
mov byte [ebx], 0xa
jmp 0x46ff0c
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00473916
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x46ff0d
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x46fe65
jmp 0x46ff2b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x46ff2b
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x46ff38
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x471b59
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x662378], ebx
push esi
push edi
jne 0x471bd9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x471c14
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x63976c
push edi
call esi
test eax, eax
mov dword [0x662378], eax
je 0x471c14
push 0x63975c
push edi
call esi
push 0x639748
push edi
mov dword [0x66237c], eax
call esi
cmp dword [0x661fa0], 2
mov dword [0x662380], eax
jne 0x471bd9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x662388], eax
je 0x471bd9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x662384], eax
mov eax, dword [0x662384]
test eax, eax
je 0x471c1e
call eax
test eax, eax
je 0x471c05
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x662388]
test eax, eax
je 0x471c05
test byte [ebp - 8], 1
jne 0x471c1e
cmp dword [0x661fac], 4
jb 0x471c18
or byte [ebp + 0x12], 0x20
jmp 0x471c3d
xor eax, eax
jmp 0x471c4d
or byte [ebp + 0x12], 4
jmp 0x471c3d
mov eax, dword [0x66237c]
test eax, eax
je 0x471c3d
call eax
mov ebx, eax
test ebx, ebx
je 0x471c3d
mov eax, dword [0x662380]
test eax, eax
je 0x471c3d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x662378]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x471d31
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 0x471d5f
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 0x471d66
cmp ebx, dword [eax + 4]
jae 0x471d66
xor eax, eax
jmp 0x471f56
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x471d77
xor eax, eax
inc eax
jmp 0x471f55
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x471d8d
cmp ecx, edx
jae 0x471ed2
cmp dword [eax + 4], 0
je 0x471d96
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x471d7e
cmp dword [ebp + 8], 0
je 0x471db8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x471ed2
cmp eax, esi
jae 0x471ed2
mov eax, dword [0x662390]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x471ddd
cmp dword [esi*4 + 0x662398], edi
je 0x471ed6
inc esi
cmp esi, eax
jl 0x471dcb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x471f52
cmp dword [ebp - 8], 0x1000000
jne 0x471f52
test byte [ebp - 0xc], 0xcc
je 0x471e5b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x471f52
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x471f52
cmp word [eax + 0x18], 0x10b
jne 0x471f52
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x471f52
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x471e5b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x471e5b
test byte [ecx + 0x27], 0x80
jne 0x471ed2
push 1
push 0x6623d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x471d6f
mov ecx, dword [0x662390]
test ecx, ecx
mov edx, ecx
jle 0x471e8f
lea eax, [ecx*4 + 0x662394]
cmp dword [eax], edi
je 0x471e8f
dec edx
sub eax, 4
test edx, edx
jg 0x471e83
test edx, edx
jne 0x471ec0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x471e9c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x471eb4
lea eax, [edx*4 + 0x662398]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x471ea2
cmp ecx, 0x10
jge 0x471ec0
inc ecx
mov dword [0x662390], ecx
push 0
push 0x6623d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x471d6f
xor eax, eax
jmp 0x471f55
test esi, esi
jle 0x471d6f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x6623d8
call ebx
test eax, eax
jne 0x471d6f
cmp dword [esi*4 + 0x662398], edi
je 0x471f2c
mov eax, dword [0x662390]
lea esi, [eax - 1]
test esi, esi
jl 0x471f1a
cmp dword [esi*4 + 0x662398], edi
je 0x471f16
dec esi
jns 0x471f0a
test esi, esi
jge 0x471f2a
cmp eax, 0x10
jge 0x471f25
inc eax
mov dword [0x662390], eax
lea esi, [eax - 1]
jmp 0x471f2c
je 0x471f44
xor ecx, ecx
test esi, esi
jl 0x471f44
lea eax, [ecx*4 + 0x662398]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x471f32
push 0
push 0x6623d8
call ebx
jmp 0x471d6f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x478b1b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x478b53
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.00476bcf
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00476ba7
jmp 0x478b5f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47a209
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 0x47a24b
call fcn.00480386
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47a24b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47a242
xor eax, eax
jmp 0x47a253
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047a259
pop edi
pop esi
pop ebx
ret 4

Function at 0x4808b6
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 0x4808e4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x480902
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048081c
jmp 0x480902
mov eax, dword [esi + 0x14]
test eax, eax
je 0x480902
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048081c
test edi, edi
mov eax, edi
jne 0x4808ec
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x98b15c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x98b183
call fcn.0092d6a8
mov dword [eax], esi
call fcn.0092d695
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092e2ea
mov eax, esi
jmp 0x98b1d8
test dword [ebp + 0xc], 0xfffffff9
jne 0x98b169
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98b1b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092d6bb
pop ecx
call fcn.0092d695
mov eax, dword [eax]
jmp 0x98b1d8
test al, 0x10
jne 0x98b1d6
test al, 1
je 0x98b1d6
test byte [ebp + 0xc], 2
je 0x98b1d6
call fcn.0092d6a8
mov dword [eax], 5
call fcn.0092d695
mov dword [eax], 0xd
jmp 0x98b1a7
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
pushal
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x407ef8
mov ecx, 0x58286c74
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x388c5acd
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x1056cd20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1059ad40], 0
mov byte [0x1059ad44], 0
mov dword [0x1059ad34], 0x1584
mov dword [0x1059ad38], 0x1618
mov dword [0x1059ad3c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1059ad38]
add eax, 0xfffffeca
mov dword [0x1059ad34], eax
mov eax, dword [0x1059ad3c]
add eax, 1
mov dword [0x1059ad3c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1056cd6f
mov dword [0x1059ad34], 0x23b4
xor eax, eax
mov ecx, 0x3f3d
mov dword [0x1059ad3c], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x40e5
mov esi, 0x100
mov dword [0x1059ad48], 0
mov dword [ebp - 0x28], eax
mov eax, ecx
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov ebx, dword [0x1059ad40]
mov edi, dword [ebp - 0x18]
movzx edi, byte [edi + ecx]
add edi, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x1059ad48], edi
mov edx, dword [ebp - 0x28]
mov dword [0x1059ad34], edx
mov eax, edi
cdq
idiv esi
mov dword [0x1059ad40], edx
mov dword [0x1059ad38], 0x1cdc
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov byte [0x1059ad44], bl
mov dword [0x1059ad34], 0x1f94
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x1059ad44]
mov ecx, dword [0x1059ad40]
mov byte [esi + ecx], bl
mov dword [0x1059ad34], 0x255c
mov ecx, dword [0x1059ad3c]
add ecx, 1
mov dword [0x1059ad3c], ecx
cmp ecx, 0x100
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
jl 0x1056cdc5
mov dword [0x1059ad38], 0x1831
mov dword [0x1059ad34], 0x1b19
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1056d010
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov dword [0x1059ad34], 0xb68
call fcn.1056cb80
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x1056d0dd
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.1056db50
lea ecx, [0x1056e680]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x74], edx
mov dword [esp + 0x5c], 0x2f6200
mov edx, dword [0x1059ad20]
mov dword [esp + 0x80], edx
mov edx, dword [0x1059ad24]
mov dword [esp + 0x6c], edx
mov edx, dword [0x1059ad28]
mov dword [esp + 0x54], edx
mov edx, dword [0x1059ad2c]
mov dword [esp + 0x3c], edx
mov edx, dword [0x1059ad30]
mov dword [esp + 0x88], edx
mov dword [0x1059ad34], 0x248
mov dword [0x1059ad38], 0xffffff4a
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x1056d10f
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
jmp 0x1056d03c
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x1056d10f
lea eax, [esp + 0x38]
mov ecx, dword [0x1059ad34]
add ecx, 0xffffe32d
mov dword [0x1059ad38], ecx
mov dword [esp + 0x10], eax
call fcn.1056d4a0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x18], ecx
je 0x1056d044
jmp 0x1056d0bc
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x1056d0c9
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
jne 0x1056d0c9
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x38]
mov dword [esp + 0x90], eax
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x50], eax
mov dword [0x1059ad34], 0x9e3
mov dword [0x1059ad38], 0xfffffe8c
mov eax, dword [esp + 0x30]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.1056dfa0
mov dword [0x1059ad34], 0xf87
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x18], eax
jmp 0x1056d0bc
Function at 0x1056d4a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x24
mov eax, dword [0x1059ad34]
mov dword [ebp - 8], 0
add eax, 0x9b3
mov dword [0x1059ad34], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [0x1059ad38]
mov esi, edx
add esi, 0x1bfe
mov dword [0x1059ad34], esi
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
add edx, 0x44e
mov dword [0x1059ad38], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
jmp 0x1056d566
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
jl 0x1056d566
jmp 0x1056d57c
mov eax, 1
mov dword [0x1059ad38], 0x1093
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
je 0x1056d600
jmp 0x1056d5f1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1056d5f1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1056d515
jmp 0x1056d5f1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
jne 0x1056d4fc
mov eax, dword [ebp - 0x1c]
mov dword [0x1059ad38], 0x270
mov dword [0x1059ad34], 0xe26
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x1056d5f1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov dx, word [eax + ecx*2 - 0x18]
mov word [ebp - 0x26], dx
mov ax, word [ebp - 0x26]
cmp ax, 0x6f
jne 0x1056d5f1
mov dword [0x1059ad38], 0x28e2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1056d5f1
mov dword [0x1059ad38], 0x2207
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1056d53f
xor eax, eax
mov dword [0x1059ad34], 0x12b7
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add esp, 0x24
pop esi
pop ebp
ret