joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47bce1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x47bcfb
call fcn.00419ac2
mov esi, dword [eax + 0xc]
push dword [0x58e18c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x47bd19
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x47bd11
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x47bd46
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x47bd13
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0047bc0f
mov esi, eax
jmp 0x47bd38

Function at 0x4f1a0b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0041f7c8
call fcn.00417d19
cmp eax, esi
pop esi
jne 0x4f1a27
mov ecx, 0x58c818
jmp fcn.00431f8e
ret

Function at 0x4fa2d7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4fa2ef
mov edi, dword [esi + 0xc]
jmp 0x4fa32f
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4fa308
call fcn.00419e81
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4fa31d
call fcn.00419e81
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4fa32f
call fcn.00419e81
call fcn.00419ac2
cmp dword [eax + 0x3c], 0
je 0x4fa344
push edi
mov ecx, ebx
call fcn.004f9113
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004fa1f1
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4fa362
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4fa36e
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5144d7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x588e70]
jne 0x5144e1
repz ret
jmp fcn.0051cd35
Function at 0x528c91
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x588e70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051dce5
and dword [ebp - 0x14], 0
cmp dword [0x590c40], 0
mov dword [ebp - 0x18], eax
jne 0x528d44
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x528dec
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x528dec
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5671b0
push ebx
mov dword [0x590c40], eax
call edi
push eax
call esi
push 0x56719c
push ebx
mov dword [0x590c44], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x590c48], eax
call edi
push eax
call esi
mov dword [0x590c50], eax
test eax, eax
je 0x528d44
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x590c4c], eax
mov eax, dword [0x590c4c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x528d9d
cmp dword [0x590c50], ecx
je 0x528d9d
push eax
call esi
push dword [0x590c50]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x528d9d
test ebx, ebx
je 0x528d9d
call edi
test eax, eax
je 0x528d94
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x528d94
test byte [ebp - 8], 1
jne 0x528d9d
or dword [ebp + 0x10], 0x200000
jmp 0x528dd0
mov eax, dword [0x590c44]
cmp eax, dword [ebp - 0x18]
je 0x528dd0
push eax
call esi
test eax, eax
je 0x528dd0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x528dd0
mov eax, dword [0x590c48]
cmp eax, dword [ebp - 0x18]
je 0x528dd0
push eax
call esi
test eax, eax
je 0x528dd0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x590c40]
call esi
test eax, eax
je 0x528dec
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x528dee
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005144d7
leave
ret
Function at 0x401750
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004024d0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004024d0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4017b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x46606c]
test esi, esi
jle 0x4018d0
mov eax, dword [0x466070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4017e4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401867
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4017d0
mov dword [esp], ebx
call fcn.004021b0
mov edi, eax
test eax, eax
je 0x4018f7
mov eax, dword [0x466070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004022f0
mov edx, dword [0x466070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4018d7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401860
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401870
add dword [0x46606c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x466070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401860
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401750
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4017ee
mov eax, dword [0x466070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401750
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401750
lea esi, [esi]
nop
Function at 0x401e20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x466088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x466080]
sub esp, 4
test ebx, ebx
je 0x401e75
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401e6e
test esi, esi
je 0x401e6e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e50
mov dword [esp], 0x466088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4021b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4021d5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4021e0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4021d5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402228
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40221e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40222a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402210
xor eax, eax
pop ebx
pop esi
ret
Function at 0x1015dd32
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, 0
sete dl
cmp eax, 0
sete dh
and dl, dh
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], dl
mov eax, 0xffffffff
mov cl, byte [ebp - 0x15]
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x1015def7
jmp 0x1015dd86
mov al, byte [ebp - 0x1d]
test al, 1
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
jne 0x1015dee5
jmp 0x1015ddd6
mov dword [0x10175928], 0x25ed
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov dword [0x10175924], 0x14fc
mov edx, dword fs:[0x18]
mov dword [0x10175924], 0xffffeafc
mov eax, dword [edx + 0x30]
mov dword [0x10175928], 0xffffd3cf
mov eax, dword [eax + 0xc]
add eax, 0x14
mov edx, eax
mov byte [ebp - 0x29], cl
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
cmp eax, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], ecx
je 0x1015def7
mov dword [0x10175924], 0xe77
mov eax, dword [ebp - 0x24]
add eax, 0x24
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x28]
mov esi, dword [ecx + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x29]
and bh, bl
test bh, 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], esi
jne 0x1015de26
jmp 0x1015de36
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff8
mov dword [ebp - 0x1c], eax
jmp 0x1015def7
xor eax, eax
mov ecx, dword [ebp - 0x34]
mov dx, word [ecx]
mov dword [0x10175924], 0x26b6
shr dx, 1
movzx esi, dx
cmp dx, 0
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], eax
je 0x1015ddd6
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x38]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x48], eax
mov word [ebp - 0x4a], dx
mov word [ebp - 0x4c], di
jb 0x1015de9a
mov ax, word [ebp - 0x4a]
mov word [ebp - 0x4c], ax
mov ax, word [ebp - 0x4c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x48]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov byte [ebp - 0x1d], bl
jne 0x1015dd73
mov dword [0x10175924], 0x667
mov eax, dword [ebp - 0x48]
add eax, 1
mov ecx, dword [ebp - 0x40]
cmp eax, ecx
mov dword [ebp - 0x44], eax
jb 0x1015de66
jmp 0x1015dd73
mov dword [0x10175928], 0xffffc994
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
jmp 0x1015def7
mov eax, dword [ebp - 0x1c]
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1015e2f8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10175930], 0
mov byte [0x10175934], 0
mov dword [0x10175924], 0x1f87
mov dword [0x1017592c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1015e44b
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x10175938], 0
mov dword [0x10175924], 0x17de
mov edx, dword [0x10175930]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x10175938], edi
mov dword [0x10175928], 0x51e
mov dword [0x10175924], 0xffffe312
mov eax, edi
cdq
idiv ecx
mov dword [0x10175930], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x10175934], cl
mov dword [0x10175924], 0x1980
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov ecx, dword [0x10175924]
add ecx, 0x1ff7
mov dword [0x10175928], ecx
mov cl, byte [0x10175934]
mov edx, dword [0x10175930]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x10175924], 0x5e6
mov edx, dword [0x10175928]
add edx, 0xfffffd1a
mov dword [0x10175928], edx
mov edx, dword [0x1017592c]
add edx, 1
mov dword [0x1017592c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1015e342
jmp 0x1015e473
mov dword [0x10175924], 0xd51
xor eax, eax
mov dword [0x1017592c], 0
mov dword [ebp - 0x20], eax
jmp 0x1015e342
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1017592c]
add eax, 1
mov dword [0x1017592c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1015e44b
jmp 0x1015e42d
mov dword [0x10175924], 0x1e31
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1015e490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x10175924], 0xeb4
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x1015e5e8
lea eax, [ebp - 0x12c]
mov dword [0x10175924], 0xf0b
mov dword [ebp - 0x13c], eax
call fcn.1015f2bf
mov dword [esp], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp + 4], eax
call fcn.1015e05d
mov ecx, eax
mov dword [0x10175944], eax
mov eax, esp
mov edx, dword [ebp - 0x140]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, dword [0x10175928]
add edx, 0xffffd942
mov dword [0x10175924], edx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], ecx
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
lea edx, section..data
imul esi, eax, 0xb4
mov edi, edx
add edi, esi
add edi, 0x48
mov esi, dword [edi]
imul edi, eax, 0xb4
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0xb4
add edx, ebx
add edx, 0x44
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x144]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x158], edx
call fcn.1015e814
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x154]
add eax, ecx
mov edx, dword [ebp - 0x150]
add edx, 1
cmp edx, 0x1d4
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
je 0x1015e67e
jmp 0x1015e544
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
xor edx, edx
lea esi, section..data
imul edi, eax, 0xb4
mov ebx, esi
add ebx, edi
add ebx, 0x48
mov edi, dword [ebx]
imul ebx, eax, 0xb4
add esi, ebx
add esi, 0x44
movzx esi, word [esi]
xor esi, edi
add esi, ecx
add eax, 1
cmp eax, 0x1d4
mov ecx, esi
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x15c], edx
jne 0x1015e5e8
mov eax, dword [ebp - 0x15c]
mov cl, byte [eax + 0x101604ab]
mov dl, byte [eax + 0x1016047c]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x15c], eax
je 0x1015e4c4
jmp 0x1015e649
lea eax, [0x1016048a]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x10175928], 0xe6d
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.1015e2f8
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x140]
mov dword [esp + 0xc], edx
call fcn.1015edf2
xor eax, eax
mov dword [0x10175924], 0x1e27
mov ecx, dword [ebp - 0x144]
add ecx, 0xe026
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x134800
mov ecx, dword [ebp - 0x144]
add ecx, 0x7628
mov dword [edx + 8], ecx
mov ecx, dword [0x10175924]
add ecx, 0xffffe53e
mov dword [0x10175924], ecx
mov dword [edx + 0xc], 0x2000
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1015e8a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [0x10175928], 0x26de
mov dword [ebp - 0x10], eax
call fcn.1015df02
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov dword [0x10175928], 0xe73
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1015e8f0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x10175924], 0x16bd
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x1015ea13
jmp 0x1015e9b6
mov eax, dword [ebp - 0x34]
mov ecx, eax
mov edx, dword [ebp - 0x38]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x3d], bh
mov byte [ebp - 0x3e], cl
je 0x1015e9e7
mov eax, dword [ebp - 0x3c]
add eax, 1
mov cl, byte [ebp - 0x3d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x3e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x34], eax
jne 0x1015e92e
jmp 0x1015e9e7
mov eax, dword [ebp - 0x44]
add eax, 2
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
xor eax, eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x2c]
cmp ecx, edx
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x30], eax
jb 0x1015e9c8
jmp 0x1015ea13
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edx
jmp 0x1015e92e
mov al, byte [ebp - 0x3e]
test al, 1
jne 0x1015e9f0
jmp 0x1015e985
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x10175924], 0x22a3
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1015ea70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
xor eax, eax
mov dword [0x10175924], 0x1927
mov dword [ebp - 0x10], eax
jmp 0x1015eb22
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
sete dl
mov byte [ebp - 0x15], dl
mov al, byte [ebp - 0x15]
test al, 1
jne 0x1015eac5
jmp 0x1015eb99
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dx, word [eax + ecx*2 - 0x12]
mov word [ebp - 0x18], dx
mov ax, word [ebp - 0x18]
cmp ax, 0x64
je 0x1015eb86
jmp 0x1015eb99
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x1c], eax
je 0x1015eba0
jmp 0x1015eb99
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff5
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2], 0x61
je 0x1015eaa6
jmp 0x1015eb99
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
je 0x1015eb59
mov dword [0x10175924], 0x9f6
mov eax, dword [ebp - 0x24]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x28], eax
jl 0x1015eb22
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x1015eb99
mov dword [0x10175924], 0x21a9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x1015eb07
jmp 0x1015eb99
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1015eae7
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x1015eba0
mov eax, dword [ebp - 0x1c]
add esp, 0x28
pop ebp
ret
Function at 0x1015eba8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x101604ab]
mov dl, byte [eax + 0x1016047c]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
jne 0x1015ebc0
lea eax, [ebp - 0x24]
mov dword [0x10175924], 0x1372
mov dword [ebp - 0x34], eax
call fcn.1015f2bf
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1015e05d
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x1015ecd0
mov eax, dword [ebp - 0x38]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x10175924]
add ecx, 0xffffdbc9
mov dword [0x10175924], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1015e200
xor eax, eax
mov ecx, dword [0x10175924]
add ecx, 0xffffe005
mov dword [0x10175928], ecx
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x1c], ecx
mov dword [0x10175924], 0x19c4
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 8], ecx
add ecx, 0x18e1
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x1015ecc7
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret