joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003fbf7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1005e1b8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1003fc3d
cmp word [ebx], dx
jne 0x1003fc3d
or byte [eax + edi + 0x28], 4
jmp 0x1003fc42
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1003fda5
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1003fd85
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1003fc83
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003fcb9
cmp eax, edx
jae 0x1003fcc7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1003fc5e
jmp 0x1003fda5
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003fd80
cmp dword [ebp - 0x18], 0
je 0x1003fd80
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1005e1b8]
test byte [eax + edi + 0x28], 0x48
je 0x1003fd56
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1003fd1a
mov word [esi], cx
jmp 0x1003fd51
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1005e1b8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1005e1b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1005e1b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1003fda5
pop eax
cmp word [ebp - 4], ax
jne 0x1003fd66
cmp esi, ebx
jne 0x1003fd66
mov word [esi], ax
jmp 0x1003fda2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1004128c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1003fda5
push 0xd
pop eax
jmp 0x1003fd61
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1005e1b8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1003fd9f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1003fda5
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10040da9
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x10040dec
call fcn.1003b321
mov dword [eax], 0xf
call fcn.1003b334
mov dword [eax], 0xd
call fcn.10041912
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002fab8
leave
ret
test eax, eax
jne 0x10040df3
inc eax
jmp 0x10040de0
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x10040dde
xor eax, eax
cmp ecx, 1
setne al
jmp 0x10040de0

Function at 0x100429bb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10051728
push 0x10051720
push str.FlsAlloc
push 0x1f
call fcn.1004287a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100429ef
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004f148]
call esi
jmp 0x100429f5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10042a39
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10051738
push 0x10051730
push str.FlsGetValue
push 0x21
call fcn.1004287a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10042a70
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004f148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10042a78
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10051740
push 0x10051738
push str.FlsSetValue
push 0x22
call fcn.1004287a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10042ab2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004f148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10043ee3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1004e230
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10041956
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10043f25
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10044081
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1004e090
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1005e1b8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1004126e
mov ecx, dword [esi*4 + 0x1005e1b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1004407a
cmp eax, dword [ecx + edi + 0x24]
jne 0x1004407a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004407a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004126e
add esp, 0x14
test edx, edx
jl 0x1004407a
jg 0x10043ff0
test eax, eax
jb 0x1004407a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1004407a
jl 0x1004400a
cmp dword [ebp - 0x1008], eax
ja 0x1004407a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10044028
test ebx, ebx
je 0x10044061
cmp ecx, edi
jae 0x10044061
mov al, byte [ecx]
cmp al, 0xd
jne 0x10044042
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1004404e
cmp byte [ecx + 1], 0xa
jne 0x1004404e
inc ecx
jmp 0x1004404e
movzx eax, al
movsx eax, byte [eax + 0x1005d138]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10044028
cmp edx, ebx
jne 0x10044028
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1004407f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002fab8
leave
ret
Function at 0x100476a4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10047741
push ebx
push esi
call fcn.1004766d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10046e25
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100476ee
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10047740
push edi
push eax
call fcn.100440ea
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004770e
call fcn.1004270d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004773f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10046e25
add esp, 0x20
test eax, eax
jne 0x1004772d
push edi
call fcn.1004270d
jmp 0x10047735
push ebx
call fcn.1004270d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10047744
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10047755
pop esi
ret
push ebx
push edi
push esi
call fcn.1004766d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100440ea
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1004777d
push ebx
push esi
push edi
call fcn.10031a30
add esp, 0xc
push 0
call fcn.1004270d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10047b4d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10047792
Function at 0x10048f52
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10048ece
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100490c1
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100490c1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10049076
jg 0x10048fae
test eax, eax
je 0x1004906c
push 1
push 0x1000
call fcn.100426b0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10048fd1
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10049063
push 0x8000
push ebx
call fcn.100489cb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10048ffa
jg 0x10048ff5
cmp ecx, 0x1000
jb 0x10048ffa
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100436d1
add esp, 0x10
cmp eax, 0xffffffff
je 0x1004903f
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10048ff5
jl 0x10049026
test ecx, ecx
jne 0x10048fe7
push dword [ebp - 0xc]
push ebx
call fcn.100489cb
push esi
call fcn.1004270d
add esp, 0xc
xor ebx, ebx
jmp 0x100490cf
cmp byte [edi + 0x24], 0
je 0x10049056
cmp dword [edi + 0x20], 5
jne 0x10049056
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10049061
mov ebx, dword [edi + 0x18]
jmp 0x10049063
xor ebx, ebx
push esi
call fcn.1004270d
pop ecx
jmp 0x100490cf
test ecx, ecx
jg 0x10049038
jl 0x10049076
test eax, eax
jae 0x10049038
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004128c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10049096
cmp byte [edi + 0x1c], 0
je 0x10049038
jmp 0x100490c7
push ebx
call fcn.10048e64
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10049038
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100490cf
cmp byte [edi + 0x1c], 0
je 0x100490cc
mov ebx, dword [edi + 0x18]
jmp 0x100490cf
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1004128c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004de20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004de4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004de4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x414e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x414e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e70
mov eax, 1
add ebx, ebx
jne 0x414e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414e88
jne 0x414ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414e88
xor ecx, ecx
sub eax, 3
jb 0x414eb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414f2a
mov ebp, eax
add ebx, ebx
jne 0x414ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414ef4
inc ecx
add ebx, ebx
jne 0x414ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414ed5
jne 0x414ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414ed5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414f05
jmp 0x414e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414f14
add edi, ecx
jmp 0x414e76
pop esi
mov edi, esi
mov ecx, 0x5a7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414f32
cmp byte [edi], 5
jne 0x414f32
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x414f37
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414fa6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1551c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414f64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15520]
or eax, eax
je 0x414fa0
mov dword [ebx], eax
add ebx, 4
jmp 0x414f81
call dword [esi + 0x15530]
mov ebp, dword [esi + 0x15524]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x414fda
sub esp, 0xffffff80
jmp 0x40a764
Function at 0x113d6f2
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
ret
je 0x112367c
xor eax, eax
cmovns esi, ebx
pop esi
jmp 0x10f20f1
je 0xe6f722
mov esi, dword [ebp + 0xc]
cmc
test esi, esi
je 0xe6f722
mov eax, 0x5a4d
clc
cmp word [ecx], ax
jmp 0xe6f71c
mov esp, ebp
cmovnp bp, bx
movzx ebp, cx
pop ebp
jmp 0xe3236d
push esi
test sp, bx
test ecx, ecx
jmp 0x10c88e2
mov eax, dword [ecx + 0x3c]
stc
cmc
cmp dword [eax + ecx], 0x4550
jne 0xe6f722
mov edx, dword [eax + ecx + 0x78]
mov dword [ebp - 4], edx
test edx, edx
jmp 0x12cc9a1
push ebp
mov ebp, esp
shl cx, 0x5c
sal ch, cl
rcl cx, cl
mov ecx, dword [ebp + 8]
test esp, 0x62d3086d
stc
lea esp, [esp - 0x114]
test di, 0x1918
jmp 0x110b1d6
je 0xe6f722
mov eax, dword [eax + ecx + 0x7c]
push ebx
cmp si, di
jmp 0x12b988a
Function at 0x10002be0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1004a434]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov edx, dword [0x10081438]
push esi
mov esi, ecx
mov edx, dword [eax + edx*4]
mov eax, dword [0x10081f18]
cmp eax, dword [edx + 4]
jle 0x10002c46
push 0x10081f18
call fcn.10014ed2
add esp, 4
cmp dword [0x10081f18], 0xffffffff
jne 0x10002c46
push 0x10035720
mov dword [0x10081f30], 0x10043494
call fcn.10014d54
push 0x10081f18
call fcn.10014e88
add esp, 8
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 4
add esi, 0x1fc
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002c7c
lea eax, [ebp - 8]
mov dword [esi], 0
push eax
push dword [ebp - 8]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100148fc
mov esp, ebp
pop ebp
ret
Function at 0x100041c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x100041f2
jl 0x100041e5
test ecx, ecx
jne 0x100041f2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100042b2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.100052b0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000425e
jg 0x1000421d
test esi, esi
je 0x1000425e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10004235
mov eax, dword [esp + 0x10]
jl 0x1000422f
cmp eax, esi
jae 0x10004235
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.100166a0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1000427f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000429b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10004204
jl 0x1000429b
test ecx, ecx
jne 0x10004204
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x100042f1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x100042f1
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.100166a0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x10004360
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x10004317
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x10004349
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1001f18c
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x10004374
cmp edi, eax
ja 0x10004325
test ecx, ecx
je 0x10004360
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1001f18c
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10005610
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003521c
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1004a434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x30]
mov edi, dword [eax + 4]
mov ecx, edi
mov dword [ebp - 0x28], edi
mov eax, dword [edi]
call dword [eax + 4]
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.100131f3
mov byte [ebp - 4], 1
mov ecx, dword [0x10081078]
mov eax, dword [0x10081f28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x100056a7
push ecx
lea ecx, [ebp - 0x18]
call fcn.100131f3
cmp dword [0x10081078], 0
jne 0x10005696
mov eax, dword [0x10081060]
inc eax
mov dword [0x10081060], eax
mov dword [0x10081078], eax
lea ecx, [ebp - 0x18]
call fcn.1001324b
mov ecx, dword [0x10081078]
mov dword [ebp - 0x24], ecx
cmp ecx, dword [edi + 0xc]
jae 0x100056bc
mov eax, dword [edi + 8]
mov esi, dword [eax + ecx*4]
test esi, esi
jne 0x10005751
jmp 0x100056be
xor esi, esi
cmp byte [edi + 0x14], 0
je 0x100056d7
call fcn.100133e8
mov esi, dword [ebp - 0x24]
cmp esi, dword [eax + 0xc]
jae 0x100056db
mov eax, dword [eax + 8]
mov esi, dword [eax + esi*4]
test esi, esi
jne 0x10005751
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100056e6
mov esi, eax
jmp 0x10005751
push 0x18
call fcn.1001490a
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x10005703
lea eax, [edi + 0x1c]
push eax
lea ecx, [ebp - 0x70]
call fcn.10002640
lea eax, [ebp - 0x3c]
mov dword [esi + 4], 0
push eax
mov dword [esi], vtable.std::ctype_char_.0
call fcn.100137e2
add esp, 4
lea ecx, [ebp - 0x70]
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
call fcn.100026f0
mov dword [ebp - 0x14], esi
push esi
mov byte [ebp - 4], 3
call fcn.100133bc
mov eax, dword [esi]
add esp, 4
mov ecx, esi
call dword [eax + 4]
mov dword [0x10081f28], esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.1001324b
mov eax, dword [esi]
mov ecx, esi
push 0x20
mov eax, dword [eax + 0x20]
call eax
mov edx, dword [edi]
mov ecx, edi
mov byte [ebp - 0x1d], al
mov edx, dword [edx + 8]
call edx
test eax, eax
je 0x10005780
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100148fc
mov esp, ebp
pop ebp
ret 4