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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x1000ba23
pop dword [ebp - 0x38]
mov eax, 0x1000ba23
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x4cf6f7ef
add dword [ebp - 0x48], 0x15b4d5c
mov dword [ebp - 0x44], 0x377e02ee
add dword [ebp - 0x44], 0xfab54957
mov dword [ebp - 0x40], 0x67b1fc90
sub dword [ebp - 0x40], 0x1b65b862
mov dword [ebp - 0x3c], 0x156a33bb
add dword [ebp - 0x3c], 0xea95cc45
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xaaf9ce2d
sub dword [ebp - 0x48], 0x368764d7
mov dword [ebp - 0x44], 0xc591d513
sub dword [ebp - 0x44], 0x8425739e
mov dword [ebp - 0x40], 0xa28868b1
add dword [ebp - 0x40], 0xc0e703bb
mov dword [ebp - 0x3c], 0xc6e38f96
add dword [ebp - 0x3c], 0x391c706a
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x897a2796
sub eax, 0x7979572e
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x395c7
push 0
call eax
mov ecx, 0x4fe8
xor ebx, ebx
add ebx, eax
mov esi, 0xb03b2c86
add esi, 0x5fc6257a
add esi, dword [ebp - 0x38]
mov edi, 0x3a868798
add edi, 0x87adabdf
sub dword [ebp - 8], edx
mov edx, dword [esi]
mov dword [ebp - 0x18], 0x3cb79168
add edx, edi
xor dword [ebp - 0x28], 0xdad72313
mov dword [ebx], edx
add ebx, 0x34a7a99a
sub ebx, 0x34a7a996
add esi, 0xf4f44402
add esi, 0xb0bbc02
loop 0x1000bb37
add eax, 0x9270de49
add eax, 0x6d90542a
xor ebx, ebx
add ebx, eax
add eax, 0x92a77b3a
sub eax, 0x92a77b35
mov ecx, 0x6cf426cc
sub ecx, 0x5cf426cc
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x1000bd72
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa8
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x1c], 5
ja 0x1000be06
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.ws2_32.dll_bind
mov dword [esi], 0x400
mov dword [esi + 4], 0x1387
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000be13
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push str.MaxUserPort
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp - 0x24]
mov edi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1000be13
mov eax, dword [ebp - 0x28]
mov dword [esi + 4], eax
jmp 0x1000be13
mov dword [esi], 0xc000
mov dword [esi + 4], 0xffff
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
xor eax, eax
call fcn.1000c212
add ebp, 0x78
leave
ret

Function at 0x1000c212
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100120b4]
jne 0x1000c21c
repz ret
jmp fcn.1000c5cb
Function at 0x406604
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406628
xor eax, eax
test eax, eax
je 0x40663a
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40663a
xor ecx, ecx
jmp 0x40663d
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406729
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a16f4], 0
push esi
jne 0x406760
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40673a
mov dword [ecx*4 + 0x7a16f0], eax
inc ecx
cmp ecx, 0x100
jl 0x406735
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406791
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a16f0]
xor eax, esi
inc ecx
dec edx
jne 0x406773
pop edi
not eax
pop esi
ret 0xc

Function at 0x1001408
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x100144b
push esi
lea ecx, [eax + 8]
call dword [sym.imp.ulib.dll_public:_class_WSTRING____thiscall_PATH::QueryFullPathString_void_const]
mov esi, eax
cmp esi, ebx
je 0x100144a
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1001442
cmp word [eax], bx
je 0x1001442
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001442
test ah, 0x10
je 0x1001442
mov bl, 1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop esi
mov al, bl
pop ebx
ret 4

Function at 0x1006427
Capabilities:
Encode data using xor

Disassembly:
enter 0, 0
pushal
mov ebx, 0x7fffffff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, esi
imul eax, edx, 0x10dcd
add eax, 0x116c5
xor edx, edx
div ebx
lodsd eax, dword [esi]
xor eax, edx
stosd dword es:[edi], eax
loop 0x100643c
popal
leave
ret 0xc
Function at 0x401cd5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x81407c]
jne 0x401cdf
repz ret
jmp fcn.00402a42

Function at 0x4083ba
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x81407c]
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.00405dcd
and dword [ebp - 0x14], 0
cmp dword [0x816e68], 0
mov dword [ebp - 0x18], eax
jne 0x40846d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408515
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408515
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x816e68], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x816e6c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x816e70], eax
call edi
push eax
call esi
mov dword [0x816e78], eax
test eax, eax
je 0x40846d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x816e74], eax
mov eax, dword [0x816e74]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4084c6
cmp dword [0x816e78], ecx
je 0x4084c6
push eax
call esi
push dword [0x816e78]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4084c6
test ebx, ebx
je 0x4084c6
call edi
test eax, eax
je 0x4084bd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4084bd
test byte [ebp - 8], 1
jne 0x4084c6
or dword [ebp + 0x10], 0x200000
jmp 0x4084f9
mov eax, dword [0x816e6c]
cmp eax, dword [ebp - 0x18]
je 0x4084f9
push eax
call esi
test eax, eax
je 0x4084f9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4084f9
mov eax, dword [0x816e70]
cmp eax, dword [ebp - 0x18]
je 0x4084f9
push eax
call esi
test eax, eax
je 0x4084f9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x816e68]
call esi
test eax, eax
je 0x408515
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408517
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401cd5
leave
ret
Function at 0x40148c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edx
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4014b0
push 0x19
pop ecx
int 0x29
test byte [ebp - 0xc], 0x44
je 0x4014f9
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x40]
xor edx, edx
mov esi, ebx
neg esi
and esi, edi
lea ecx, [ebx - 1]
mov eax, ecx
and ecx, dword [ebp - 4]
and eax, edi
dec ecx
add eax, ebx
add eax, ecx
div ebx
xor edx, edx
mov ecx, eax
mov eax, dword [ebp - 4]
div ebx
add ecx, eax
je 0x4014f7
xor eax, eax
lock or dword [esi], eax
add esi, ebx
sub ecx, 1
jne 0x4014eb
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4019c0
Capabilities:
Terminate process

Disassembly:
call fcn.00401ec5
jmp 0x4019ca
push 0x58
push 0x402178
call fcn.00401f78
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x403370
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x401a1c
cmp eax, esi
jne 0x401a0f
xor esi, esi
inc esi
mov edi, esi
jmp 0x401a1f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4019f3
xor esi, esi
inc esi
cmp dword [0x403374], esi
jne 0x401a31
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x401a6b
cmp dword [0x403374], ebx
jne 0x401a65
mov dword [0x403374], esi
push 0x4010cc
push 0x4010c0
call fcn.00401ba9
pop ecx
pop ecx
test eax, eax
je 0x401a6b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401b99
mov dword [0x403014], esi
cmp dword [0x403374], esi
jne 0x401a8e
push 0x4010bc
push 0x4010b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x403374], 2
test edi, edi
jne 0x401a9b
xor eax, eax
mov ecx, 0x403370
xchg dword [ecx], eax
cmp dword [0x403378], 0
je 0x401ac7
push 0x403378
call fcn.00401dd0
pop ecx
test eax, eax
je 0x401ac7
push ebx
push 2
push ebx
mov esi, dword [0x403378]
mov ecx, esi
call dword [0x4040b0]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x401b25
test cl, cl
je 0x401af4
test edi, edi
jne 0x401b25
test cl, cl
je 0x401af4
cmp cl, 0x20
ja 0x401af4
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x401ae3
test byte [ebp - 0x3c], 1
je 0x401b00
movzx eax, word [ebp - 0x38]
jmp 0x401b03
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x403010], eax
cmp dword [0x403028], 0
jne 0x401b7e
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x401b36
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x401b49
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x401ad4
cmp dword [0x403014], 0
jne 0x401b92
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x403010]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401cb4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x402198
call fcn.00401f78
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401d14
cmp eax, 0xffffffff
je 0x401d14
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401d0d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401d0d
cmp edx, 0x10000000
jae 0x401d0d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401d0a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401d80
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x401dbe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401db6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401dc0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401da6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401e90
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x401ec1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401ec1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x401ec1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4010f0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x40332c], eax
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp + 4]
mov dword [0x40319b], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401121
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40319b]
mov dword [ebp - 0x48], eax
mov eax, 0x401bbc
mov dword [ebp - 0x54], eax
mov ecx, 0x4030bd
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x40319b]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403378], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403378]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4011d9
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4011cb
mov esp, ebp
ret

Function at 0x401000
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x8b9000
lea edi, [esi - 0x4b8000]
push edi
or ebp, 0xffffffff
jmp 0x40104c
pop eax
popal
nop
jmp fcn.0064b2be
Function at 0x10197ea0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x101afb98], 0x1e2c
mov dword [0x101afba0], 0
mov byte [0x101afba4], 0
mov esi, dword [0x101afb94]
add esi, 0xb4
mov dword [0x101afb94], esi
mov dword [0x101afb9c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x10197fce
mov dword [0x101afba8], 0
mov eax, dword [0x101afba0]
mov ecx, dword [0x101afb9c]
mov edx, dword [ebp - 0x18]
movzx esi, byte [edx + ecx]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], esi
mov eax, 0x100
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
add ecx, edx
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, esi
xor edx, edx
mov edi, dword [ebp - 0x10]
div edi
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add ecx, edx
mov dword [0x101afba8], ecx
mov edx, dword [0x101afb98]
add edx, 0x248d
mov dword [0x101afb94], edx
mov eax, ecx
cdq
mov ecx, dword [ebp - 0x28]
idiv ecx
mov dword [0x101afba0], edx
mov ecx, dword [0x101afb9c]
mov esi, dword [ebp - 0x18]
mov cl, byte [esi + ecx]
mov byte [0x101afba4], cl
mov dword [0x101afb94], 0x12cc
mov cl, byte [esi + edx]
mov edx, dword [0x101afb9c]
mov byte [esi + edx], cl
mov cl, byte [0x101afba4]
mov edx, dword [0x101afba0]
mov byte [esi + edx], cl
mov dword [0x101afb94], 0x26b1
mov edx, dword [0x101afb9c]
add edx, 1
mov dword [0x101afb9c], edx
cmp edx, 0x100
jl 0x10197ef7
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x101afb94], 0x1d5c
mov eax, dword [0x101afb9c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x2d], dl
mov eax, dword [ebp - 0x2c]
mov cl, byte [ebp - 0x2d]
mov byte [eax], cl
mov edx, dword [0x101afb9c]
add edx, 1
mov dword [0x101afb9c], edx
cmp edx, 0x100
jl 0x10197fce
mov eax, dword [0x101afb94]
add eax, 0xfffff77e
mov dword [0x101afb98], eax
mov dword [0x101afb9c], 0
jmp 0x10197ef7
Function at 0x10198040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [0x101afb98]
add edx, 0xffffe591
mov dword [0x101afb98], edx
sti
sbb dl, byte [eax]
mov edx, dword [0x101afb94]
add edx, 0xfffff6b9
mov dword [0x101afb94], edx
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0x138
mov edi, edx
add edi, esi
add edi, 0xd8
mov esi, dword [edi]
imul edi, eax, 0x138
add edx, edi
add edx, 0xc4
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x110
mov ecx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jne 0x1019807d
lea eax, [0x1019a60e]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov esi, dword [0x101afb94]
add esi, 0xffffe592
mov dword [0x101afb98], esi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
call fcn.10198f20
mov eax, dword [0x101afb94]
add eax, 0xffffe6f8
mov dword [0x101afb94], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.10197c30
mov dword [0x101afbb0], eax
mov dword [0x101afb94], 0x113d
mov dword [ebp - 0x48], eax
mov eax, esp
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
mov eax, dword [ebp - 0x48]
call eax
sub esp, 0x10
xor ecx, ecx
mov dword [0x101afb94], 0x8f7
mov edx, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
lea edx, section..data
imul esi, eax, 0x138
mov edi, edx
add edi, esi
add edi, 0xd8
mov esi, dword [edi]
imul edi, eax, 0x138
mov ebx, edx
add ebx, edi
add ebx, 0xc0
mov edi, dword [ebx]
imul ebx, eax, 0x138
add edx, ebx
add edx, 0xc4
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x4c]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], edx
call fcn.101989e0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
add eax, ecx
mov edx, dword [ebp - 0x58]
add edx, 1
cmp edx, 0x110
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edx
jne 0x10198168
mov dword [0x101afb94], 0x19c8
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 8], ecx
call fcn.10198940
xor eax, eax
mov dword [0x101afb98], 0x21c0
mov ecx, dword [ebp - 0x4c]
add ecx, 0x1b538
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov dword [edx + 4], 0x167600
mov ecx, dword [0x101afb94]
add ecx, 0xffffeb48
mov dword [0x101afb94], ecx
mov ecx, dword [ebp - 0x4c]
add ecx, 0x19448
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1fe0
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10198330
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x2c
mov dword [0x101afb94], 0x6ab
mov dword [ebp - 8], 0
mov dword [0x101afb98], 0xf95
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x3c]
mov dword [0x101afb94], 0x14ec
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
jmp 0x101983da
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x10198499
jmp 0x101984ad
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x20], eax
je 0x10198381
jmp 0x101984ad
xor eax, eax
mov dword [0x101afb94], 0x12be
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x20], eax
je 0x10198431
jmp 0x101984ad
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
je 0x1019840e
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, 0x104
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
jl 0x101983da
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov dword [0x101afb94], 0xbae
mov edx, dword [ebp - 0x14]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
je 0x101983b7
jmp 0x101984ad
xor eax, eax
mov ecx, dword [0x101afb98]
mov edx, ecx
add edx, 0x1437
mov dword [0x101afb94], edx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp word [edx + esi*2 - 0x16], 0x61
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], eax
jne 0x101984ad
xor eax, eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x2713
mov dword [0x101afb94], ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x20], eax
jne 0x101984ad
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x20], eax
je 0x1019839e
jmp 0x101984ad
mov dword [0x101afb94], 0x16e
mov eax, 1
mov dword [ebp - 0x20], eax
jmp 0x101984ad
mov eax, dword [ebp - 0x20]
add esp, 0x2c
pop esi
pop ebp
ret