joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f260
Capabilities:
Query service status

Disassembly:
sub esp, 0x27c
mov eax, dword [0x428930]
xor eax, esp
mov dword [esp + 0x278], eax
mov eax, dword [esp + 0x284]
push ebp
push edi
mov edi, dword [esp + 0x288]
xor ebp, ebp
cmp edi, 1
mov dword [esp + 0x14], eax
mov dword [esp + 8], ebp
jge 0x40f2b4
push 1
call fcn.004086a0
add esp, 4
pop edi
pop ebp
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.00414adc
add esp, 0x27c
ret
push esi
push 1
call fcn.0040ca40
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebp
jne 0x40f2fc
push 0x400001fb
call fcn.0041438a
add eax, 0x40
push eax
call fcn.004022a0
add esp, 8
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.00414adc
add esp, 0x27c
ret
push ebx
call fcn.00408e30
mov ebx, eax
mov dword [esp + 0x18], ebx
test edi, edi
jle 0x40f48c
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + ebp*4]
push 0x100
lea edx, [esp + 0x8c]
push edx
push 4
push eax
push esi
call fcn.0040ca80
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40f33f
inc dword [esp + 0x10]
jmp 0x40f476
lea eax, [esp + 0x20]
push eax
push 0x24
lea ecx, [esp + 0x6c]
push ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x40f39a
push ebx
call fcn.004020f0
add esp, 4
push eax
lea edx, [esp + 0x8c]
push edx
push str._s:__s_n
call fcn.0041438a
add eax, 0x40
push eax
call fcn.00414f38
add esp, 0x10
inc dword [esp + 0x10]
jmp 0x40f476
push 0x40
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00414af0
mov eax, dword [esp + 0x8c]
add esp, 0xc
mov dword [esp + 0x30], eax
test eax, eax
je 0x40f476
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x40f409
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004020f0
mov ecx, dword [esp + 0x34]
add esp, 4
push eax
push ecx
lea edx, [esp + 0x90]
push edx
push str._s:__lu:__s_n
call fcn.0041438a
add eax, 0x40
push eax
call fcn.00414f38
add esp, 0x14
jmp 0x40f476
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.00409000
add esp, 8
test eax, eax
jne 0x40f476
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call fcn.0040db40
mov esi, eax
test esi, esi
jne 0x40f437
inc dword [esp + 0x10]
jmp 0x40f476
lea eax, [esp + 0x88]
push eax
push 0x4218f4
push 0xffffffffffffffff
lea edi, [esi + 2]
push 0x100
push edi
call fcn.0041453f
mov ecx, dword [esp + 0x44]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0x409560
push esi
mov dword [esp + 0x48], edi
call fcn.00409780
push esi
call fcn.0040db80
add esp, 0x28
mov esi, dword [esp + 0x14]
inc ebp
cmp ebp, dword [esp + 0x290]
jl 0x40f310
mov ebx, dword [esp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp ebx, 0xffffffff
je 0x40f49f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x288]
mov eax, dword [esp + 0x10]
pop ebx
pop esi
pop edi
pop ebp
xor ecx, esp
call fcn.00414adc
add esp, 0x27c
ret
Function at 0x4105e0
Capabilities:
Create service
Delete service
Persist via windows service

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x4105ee
lea eax, [esi + 1]
pop esi
ret
push ebp
push 3
call fcn.0040ca40
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x410621
push 0x400001fb
call fcn.0041438a
add eax, 0x40
push eax
call fcn.004022a0
push esi
call fcn.0040db80
add esp, 0xc
lea eax, [ebp + 2]
pop ebp
pop esi
ret
push ebx
push edi
lea ebx, [esi + 0x8418]
call fcn.00408800
push eax
push 0x4218f4
push 0xffffffffffffffff
push 0x7fff
push ebx
call fcn.0041453f
add esp, 0x14
push 0
push 0
push 0
push 0
push 0
push ebx
push 1
push 2
push 0x10
push 0xf01ff
lea edi, [esi + 2]
push edi
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [esi + 0x704b0], eax
test eax, eax
jne 0x4106a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004020f0
add esp, 4
push eax
push 0x40000203
call fcn.0041438a
add eax, 0x40
push eax
call fcn.004022a0
add esp, 0xc
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
pop ebp
mov eax, 5
pop esi
ret
push 0
push esi
call fcn.0040f580
add esp, 8
test eax, eax
je 0x4106d4
mov eax, dword [esi + 0x704b0]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
pop ebp
mov eax, 6
pop esi
ret
push edi
push 0x4000021e
call fcn.0041438a
add eax, 0x20
push eax
call fcn.004022a0
add esp, 0xc
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
pop ebp
xor eax, eax
pop esi
ret

Function at 0x414adc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428930]
jne 0x414ae6
repz ret
jmp fcn.0041875b
Function at 0x41f79a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041817b
and dword [ebp - 4], 0
cmp dword [0x45a104], 0
mov ebx, eax
jne 0x41f84b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41f8fc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41f8fc
push eax
call fcn.00418109
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45a104], eax
call esi
push eax
call fcn.00418109
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45a108], eax
call esi
push eax
call fcn.00418109
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45a10c], eax
call esi
push eax
call fcn.00418109
pop ecx
mov dword [0x45a114], eax
test eax, eax
je 0x41f84b
push 0x424c8c
push edi
call esi
push eax
call fcn.00418109
pop ecx
mov dword [0x45a110], eax
mov eax, dword [0x45a110]
cmp eax, ebx
je 0x41f8a3
cmp dword [0x45a114], ebx
je 0x41f8a3
push eax
call fcn.00418184
push dword [0x45a114]
mov esi, eax
call fcn.00418184
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41f8a3
test edi, edi
je 0x41f8a3
call esi
test eax, eax
je 0x41f89a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41f89a
test byte [ebp - 0xc], 1
jne 0x41f8a3
or dword [ebp + 0x10], 0x200000
jmp 0x41f8dc
mov eax, dword [0x45a108]
cmp eax, ebx
je 0x41f8dc
push eax
call fcn.00418184
pop ecx
test eax, eax
je 0x41f8dc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41f8dc
mov eax, dword [0x45a10c]
cmp eax, ebx
je 0x41f8dc
push eax
call fcn.00418184
pop ecx
test eax, eax
je 0x41f8dc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45a104]
call fcn.00418184
pop ecx
test eax, eax
je 0x41f8fc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41f8fe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x8c9024
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
cld
pop ds
jecxz 0x8c9007
invalid
mov ebx, 0xef00071c
add byte [eax], al
add byte [edi], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add bl, ch
jmp 0x8c902c
popfd
arpl cx, sp
push 0x75
dec esp
jmp 0x8c902c
pushal
stc
jb 0x8c9033
call 0x5752aa4
add byte [eax], al
add byte [esp + ecx*2 - 0x44], dh
jne 0x8c9098
call 0x8c903c
je 0x8c9086
mov esp, 0x3eb5b75
add esi, dword [0xc8c381a2]
invalid
jmp 0x8c9042
add ebx, 0xffffffc8
jmp 0x8c9054
cmp dword [ebx], 0
jmp 0x8c9060
je 0x8c90ed
stc
jmp 0x8c9071
mov edi, ebx
jb 0x8c907e
cmp dword [ecx - 0x40], edx
std
xchg esi, eax
or esp, dword [eax - 0xe]
jp 0x8c9002
add ebx, 4
ret
jmp 0x8c9085
mov eax, dword [ebx]
jmp 0x8c908e
add ebp, ebx
add eax, 0x51dc1018
lcall 0xcd37, 0x6ebc303
das
dec ebp
adc eax, 0x4538b83
add eax, ebx
jmp 0x8c9098
mov edx, dword [ebx + 4]
jmp 0x8c90a7
sub dword [eax], 0xbde2010e
jmp 0x8c90b2
add eax, 4
jmp 0x8c90ba
sub edx, 1
jmp 0x8c90c2
jne 0x8c909b
jmp 0x8c90cf
add ebx, 8
jmp 0x8c90d6
sub dword [edi], 1
stc
jmp 0x8c90de
jne 0x8c9081
jmp 0x8c90e8
call 0x8c90fb
jmp 0x8c90f1
popal
stc
jb 0x8c90f6
cmp ecx, ebp
xor eax, 0x99ffff90
int3
jmp fcn.008c2130
Function at 0x404d00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x404d30
push esi
call fcn.00408170
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x404d29
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x404da7
mov eax, dword [esi + 0x18c]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x404d97
mov eax, dword [esi + 8]
test eax, eax
je 0x404d54
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x18c]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x404d93
cmp eax, 2
je 0x404d97
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x404d47
cmp eax, 3
je 0x404d7a
cmp eax, 1
jne 0x404d47
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x404d47
mov ecx, dword [esi + 0x118]
add dword [eax + 8], ecx
jmp 0x404d47
xor al, al
pop esi
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.00404b90
pop esi
ret
cmp eax, 0xcc
je 0x404dc7
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
push esi
call dword [eax]
add esp, 4
call fcn.00404b90
pop esi
ret

Function at 0x407940
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.00408c80
push 0x50
push edi
mov dword [esp + 0x18], eax
call fcn.00408270
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x407984
push edi
call fcn.0040c3a0
mov eax, dword [edi]
mov dword [eax + 0x14], 0x35
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
push edi
call dword [edx]
add esp, 8
mov dword [esi], fcn.00406e30
mov dword [esi + 4], fcn.00406f80
mov dword [esi + 8], fcn.00407040
mov dword [esi + 0xc], fcn.004070f0
mov dword [esi + 0x10], 0x4071a0
mov dword [esi + 0x14], 0x407210
mov dword [esi + 0x18], 0x407280
mov dword [esi + 0x1c], 0x407560
mov dword [esi + 0x20], 0x4076a0
mov dword [esi + 0x24], fcn.004077f0
mov dword [esi + 0x28], 0x407900
mov eax, dword [esp + 0xc]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], 0x50
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCR71.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x407a58
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCR71.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x407a58
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x407a33
cmp al, 0x4d
jne 0x407a4b
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
imul eax, eax, 0x3e8
pop edi
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x410a4d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x414c98
call fcn.00410c4c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x410a8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410a8d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x410aa5
cmp eax, 0x20b
je 0x410a92
mov dword [ebp - 0x1c], ebx
jmp 0x410ab9
cmp dword [ecx + 0x84], 0xe
jbe 0x410a8d
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x410ab3
cmp dword [ecx + 0x74], 0xe
jbe 0x410a8d
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4161b4], 0xffffffff
or dword [0x4161b8], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x41616c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x416168]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4161b0], eax
call fcn.00410e00
call fcn.00410ea0
cmp dword [0x4160a0], ebx
jne 0x410b19
push fcn.00410ea0
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00410e8e
push 0x41601c
push 0x416018
call sub.MSVCR71.dll__initterm
push 0x410e44
call fcn.004109da
mov eax, dword [0x416164]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x416160]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x410b6d
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x416014
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x410beb
cmp al, bl
je 0x410b97
cmp dword [ebp - 0x20], ebx
jne 0x410beb
mov al, byte [esi]
cmp al, bl
je 0x410ba7
cmp al, 0x20
ja 0x410ba7
inc esi
mov dword [ebp - 0x24], esi
jmp 0x410b97
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x410bc3
movzx eax, word [ebp - 0x54]
jmp 0x410bc6
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00410fa8
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x410be3
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x410c40
cmp al, 0x22
jne 0x410bfa
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x410c0d
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x410b85
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00410c87
ret
Function at 0x10065870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1006589c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x100658c4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x100658ca
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10065932
jg 0x100658e1
test esi, esi
je 0x10065932
test ecx, ecx
jl 0x1006592d
jg 0x100658eb
test eax, eax
je 0x1006592d
cmp edi, ecx
jg 0x100658ff
jl 0x100658f5
cmp esi, eax
jae 0x100658ff
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10065935
mov ecx, dword [ebp + 8]
jmp 0x1006593f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10065959
jg 0x1006593f
test esi, esi
je 0x10065959
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10065959
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10065970
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x10065994
jl 0x10065989
test ecx, ecx
jne 0x10065994
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100659ae
push eax
push ecx
push dword [ebp + 8]
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x100659f4
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test eax, eax
je 0x100659fa
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add esp, 0xc
add dword [ebp + 8], esi
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x100659fa
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x10065a69
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10065a26
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10065a57
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10065a69
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10065a33
test edi, edi
je 0x10065a69
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
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 0x10065ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10065edc
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10065f0e
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10065f0e
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10065fd1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10065f36
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10065f42
movsx eax, bl
jmp 0x10065f7a
lea eax, [ebp + 8]
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10065f9a
sub eax, 1
je 0x10065f9a
sub eax, 2
jne 0x10065fd1
movsx eax, byte [ebp - 1]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub edi, eax
je 0x10065fb8
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10065fd1
lea ecx, [ebp - 1]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 8], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10066770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100667fc
cmp byte [esi + 0x3d], 0
je 0x100667fc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100667f4
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x100667c5
sub eax, 1
je 0x100667c9
sub eax, 2
jne 0x100667f4
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100667e7
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100667f4
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10067300
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018b5d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea edi, [esi + 4]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov byte [ebp - 4], 1
movups xmm0, xmmword [ebp + 8]
mov dword [esi + 0x20], 0x64
mov dword [esi + 0x24], 0x64
mov dword [esi + 0x28], 0x50
mov dword [esi + 0x2c], 0x1e
mov dword [esi + 0x30], 0x8c
mov byte [esi + 0x34], 1
movups xmmword [esi + 0x20], xmm0
push 0x1024234c
movq xmm0, qword [ebp + 0x18]
movq qword [esi + 0x30], xmm0
call dword [sym.imp.VCRUNTIME140.dll___std_type_info_hash]
mov dword [esi], eax
add esp, 4
lea eax, [ebp + 0x20]
cmp edi, eax
je 0x100673aa
cmp dword [ebp + 0x34], 0x10
mov ecx, edi
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.10066d50
mov eax, dword [0x1023d990]
mov dword [ebp - 0x10], esi
cmp eax, dword [0x1023d994]
je 0x100673c5
mov dword [eax], esi
add dword [0x1023d990], 4
jmp 0x100673cf
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.10067fe0
mov al, byte [ebp + 0x38]
mov ecx, dword [ebp + 0x34]
mov byte [esi + 0x1c], al
cmp ecx, 0x10
jb 0x1006740b
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10067401
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10067401
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10189b37
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x34