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

Disassembly:
xor eax, eax
movsx ecx, byte [eax + 0x1009188c]
movzx edx, byte [ecx + esi - 1]
movsx ecx, byte [eax + 0x1009188d]
mov byte [eax + 0x100a8c88], dl
movzx edx, byte [ecx + esi - 1]
movsx ecx, byte [eax + 0x1009188e]
mov byte [eax + 0x100a8c89], dl
movzx edx, byte [ecx + esi - 1]
movsx ecx, byte [eax + 0x1009188f]
mov byte [eax + 0x100a8c8a], dl
movzx edx, byte [ecx + esi - 1]
movsx ecx, byte [eax + 0x10091890]
mov byte [eax + 0x100a8c8b], dl
movzx edx, byte [ecx + esi - 1]
movsx ecx, byte [eax + 0x10091891]
mov byte [eax + 0x100a8c8c], dl
movzx edx, byte [ecx + esi - 1]
mov byte [eax + 0x100a8c8d], dl
add eax, 6
cmp eax, 0x30
jl 0x10026a72
push 0x30
push 0x100a8c88
push 0x100aca08
call fcn.10073cd0
mov ecx, edi
add esp, 0xc
xor eax, eax
sub ecx, 0x100aca08
jmp 0x10026b10
movzx edx, byte [ecx + eax + 0x100aca08]
xor byte [eax + 0x100aca08], dl
movzx edx, byte [edi + eax + 1]
xor byte [eax + 0x100aca09], dl
movzx edx, byte [edi + eax + 2]
xor byte [eax + 0x100aca0a], dl
movzx edx, byte [edi + eax + 3]
xor byte [eax + 0x100aca0b], dl
movzx edx, byte [edi + eax + 4]
xor byte [eax + 0x100aca0c], dl
movzx edx, byte [edi + eax + 5]
xor byte [eax + 0x100aca0d], dl
add eax, 6
cmp eax, 0x30
jl 0x10026b10
mov ecx, esi
call fcn.10026be0
xor eax, eax
jmp 0x10026b70
movsx ecx, byte [eax + 0x10091960]
movzx edx, byte [ecx + esi - 1]
movsx ecx, byte [eax + 0x10091961]
mov byte [eax + 0x100a8c88], dl
movzx edx, byte [ecx + esi - 1]
movsx ecx, byte [eax + 0x10091962]
mov byte [eax + 0x100a8c89], dl
movzx edx, byte [ecx + esi - 1]
movsx ecx, byte [eax + 0x10091963]
mov byte [eax + 0x100a8c8a], dl
movzx edx, byte [ecx + esi - 1]
mov byte [eax + 0x100a8c8b], dl
add eax, 4
cmp eax, 0x20
jl 0x10026b70
push 0x20
push 0x100a8c88
push esi
call fcn.10073cd0
add esp, 0xc
ret
Function at 0x10026ed0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008411b
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edi, edi
mov dword [ebp - 0x13c], ecx
cmp eax, edi
je 0x1002703a
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [eax]
lea esi, [eax + 4]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x130], esi
cmp ecx, edi
jbe 0x10027033
lea ebx, [ebp - 0x110]
sub ebx, esi
mov dword [ebp - 0x134], ecx
jmp 0x10026f58
mov esi, dword [ebp - 0x130]
xor edi, edi
push 0xff
lea edx, [ebp - 0x10f]
push edi
push edx
mov byte [ebp - 0x110], 0
call fcn.1006b580
add esp, 0xc
mov eax, esi
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x10026f76
xor eax, eax
mov dword [ebp - 0x118], 7
mov dword [ebp - 0x11c], edi
mov word [ebp - 0x12c], ax
lea ecx, [ebp - 0x12c]
push ecx
sub esp, 0x1c
mov dword [ebp - 4], edi
mov esi, esp
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 0xf
mov byte [esi], al
lea eax, [ebp - 0x110]
mov dword [ebp - 0x140], esp
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10026fc3
sub eax, edi
mov edi, eax
lea eax, [ebp - 0x110]
call fcn.10003960
call fcn.10020e00
mov edi, dword [ebp - 0x13c]
add esp, 0x20
lea ecx, [ebp - 0x12c]
call fcn.10009c00
add dword [ebp - 0x130], 0x100
sub ebx, 0x100
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x118], 8
jb 0x10027021
mov edx, dword [ebp - 0x12c]
push edx
call fcn.10066b10
add esp, 4
dec dword [ebp - 0x134]
jne 0x10026f50
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 4

Function at 0x10027060
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x11c
xor esi, esi
lea eax, [ebp - 0x120]
push esi
push eax
call fcn.1006b580
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call edi
test eax, eax
jne 0x100270d0
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x120], 0x114
call edi
test eax, eax
jne 0x100270d0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
dec eax
je 0x1002711b
dec eax
jne 0x10027120
cmp dword [ebp - 0x11c], 5
jne 0x10027104
cmp dword [ebp - 0x118], esi
jne 0x10027104
mov esi, 2
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret
mov esi, 1
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret
mov esi, 3
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10066b1b
mov esp, ebp
pop ebp
ret
Function at 0x10028720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008831e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, edx
push ebx
mov dword [ebp - 0x34], ebx
call fcn.10022580
lea edx, [ebx + 0x2120]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, 7
xor eax, eax
mov dword [edx + 0x14], esi
mov dword [edx + 0x10], ecx
mov dword [ebp - 0x3c], edx
mov word [edx], ax
lea eax, [ebx + 0x213c]
mov dword [eax + 0x14], esi
mov dword [eax + 0x10], ecx
mov dword [ebp - 0x30], eax
mov word [eax], cx
lea ecx, [ebx + 0x58]
mov byte [ebp - 4], 2
mov eax, edi
sub ecx, edi
movzx esi, word [eax]
mov word [ecx + eax], si
add eax, 2
test si, si
jne 0x10028793
mov ecx, str.Identify.idn
lea eax, [ebx + 0x1058]
sub eax, ecx
nop
movzx esi, word [ecx]
mov word [eax + ecx], si
add ecx, 2
test si, si
jne 0x100287b0
lea eax, [ebx + 0x1120]
mov ecx, edi
sub eax, edi
lea esp, [esp]
movzx esi, word [ecx]
mov word [eax + ecx], si
add ecx, 2
test si, si
jne 0x100287d0
lea eax, [ebx + 0x1058]
mov esi, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100287e7
sub eax, esi
lea edi, [ebx + 0x111e]
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10028800
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x2158], eax
mov dword [ebx + 0x215c], eax
push eax
mov eax, 0x1008da28
mov esi, edx
call fcn.10003a30
mov esi, dword [ebp - 0x30]
push 0
mov eax, 0x1008da28
call fcn.10003a30
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebx + 0x58]
push eax
call esi
cmp eax, 0xffffffff
je 0x1002891a
and eax, 0x10
je 0x1002891a
lea edi, [ebx + 0x1120]
push edi
call esi
cmp eax, 0xffffffff
je 0x1002891a
shr eax, 4
not eax
and eax, 1
je 0x1002891a
xor edx, edx
mov eax, edi
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
lea edx, [eax + 2]
jmp 0x100288a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100288a0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebx + 0x1120]
lea esi, [ebp - 0x2c]
call fcn.10003a30
mov eax, esi
push eax
push ebx
mov byte [ebp - 4], 3
call fcn.10024e70
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
movzx esi, al
jb 0x100288e4
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10066b10
add esp, 4
test esi, esi
je 0x1002891a
mov esi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x3c]
mov ecx, esi
call fcn.100289c0
test eax, eax
je 0x10028916
mov ebx, dword [ebp - 0x30]
mov ecx, esi
call fcn.10028aa0
mov ecx, esi
mov dword [esi + 0x215c], eax
call fcn.10028b80
mov dword [esi + 0x2158], eax
mov eax, esi
jmp 0x1002891c
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret
Function at 0x10028b80
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100882c8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
cmp dword [ebx + 0x215c], eax
je 0x10028c42
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], cx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.10029050
test eax, eax
jne 0x10028bea
push 5
mov eax, 0x100942e8
lea esi, [ebp - 0x2c]
call fcn.10003a30
mov eax, dword [ebp - 0x2c]
mov esi, 8
lea ecx, [ebx + 0x213c]
cmp dword [ebp - 0x18], esi
jae 0x10028c00
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
push eax
mov eax, dword [ecx + 0x10]
call fcn.10004240
test eax, eax
je 0x10028c28
cmp dword [ebp - 0x18], esi
jb 0x10028c21
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10066b10
add esp, 4
xor eax, eax
jmp 0x10028d4b
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], esi
jb 0x10028c71
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10066b10
add esp, 4
jmp 0x10028c71
lea esi, [ebx + 0x213c]
push ebx
mov ecx, esi
call fcn.10029050
test eax, eax
jne 0x10028c60
push 5
mov eax, 0x100942e8
call fcn.10003a30
mov ecx, ebx
mov dword [ebx + 0x215c], 1
call fcn.10028d70
xor ecx, ecx
mov edi, 7
push 9
mov eax, str.UDISKSIZE
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
call fcn.10003a30
mov dword [ebp - 4], 1
xor edx, edx
push 9
mov eax, 0x1009181c
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
call fcn.10003a30
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
mov edx, esi
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.10024ce0
cmp dword [ebp - 0x18], 8
mov esi, eax
jb 0x10028ce2
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10066b10
add esp, 4
xor edx, edx
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
jb 0x10028d04
mov eax, dword [ebp - 0x48]
push eax
call fcn.10066b10
add esp, 4
cmp esi, 0xffffffff
je 0x10028c21
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x58]
push eax
add ebx, 0x58
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x10028d2c
or eax, 0xffffffff
jmp 0x10028d39
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
shrd eax, ecx, 0x14
shr ecx, 0x14
sub eax, esi
jns 0x10028d3f
neg eax
xor edx, edx
cmp eax, 0x1f4
setl dl
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret
Function at 0x10029050
Capabilities:
Get disk information via ioctl
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [str._C:]
mov eax, dword [ebp + 8]
push ebx
push 0
push 0
push 3
mov dword [ebp - 0x14], edx
mov edx, dword [0x100942fc]
push 0
mov dword [ebp - 0x2b8], ecx
mov ecx, dword [0x100942f8]
mov dword [ebp - 0xc], edx
mov dx, word [eax + 0x58]
push 3
mov dword [ebp - 0x10], ecx
mov cx, word [0x10094300]
push SysReAllocString
lea eax, [ebp - 0x14]
push eax
mov word [ebp - 8], cx
mov word [ebp - 0xc], dx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100290e8
push 0
lea ecx, [ebp - 0x2b0]
push ecx
push 0xc
lea edx, [ebp - 0x2ac]
push edx
push 0
push 0
push 0x2d1080
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100290fb
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x2a8]
xor eax, eax
push esi
push edi
push ecx
push 0x10092ab0
lea edx, [ebp - 0x3c]
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x3a], eax
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
call fcn.10005ff0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x29e]
push eax
mov word [ebp - 0x2a0], dx
call fcn.1006b580
add esp, 0x14
mov ecx, 0x16
mov esi, str.SYSTEMCurrentControlSetServicesDiskEnum_
lea edi, [ebp - 0x98]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x2b4]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x98]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2b0], 0x208
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10029222
lea eax, [ebp - 0x2b0]
push eax
mov eax, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2a0]
push ecx
push 0
push 0
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10029222
lea ecx, [ebp - 0x2a0]
push 0x5c
push ecx
call fcn.10067868
lea edx, [ebp - 0x2a0]
push 0x26
push edx
mov esi, eax
call fcn.10067868
mov edx, dword [ebp - 0x2b8]
xor ecx, ecx
add esp, 0x10
mov word [eax], cx
lea eax, [esi + 2]
push edx
call fcn.10003740
mov eax, dword [ebp - 0x2b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 4
Function at 0x1002aad0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
dec eax
cmp eax, 4
ja case.0x1002aad9.3
jmp dword [eax*4 + 0x1002ab24]
mov eax, 1
pop ebp
ret 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002ab07
xor eax, eax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
pop ebp
ret 4
shr eax, 4
not eax
and eax, 1
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
pop ebp
ret 4
xor eax, eax
pop ebp
ret 4
Function at 0x1002cdb0
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x100ac9f8], 0
jne 0x1002cdc8
call fcn.1002c530
mov dword [0x100ac9f8], 1
mov eax, dword [0x100ac698]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x1002cdef
push str.ws2_32.dll
call edi
mov dword [0x100ac698], eax
test eax, eax
je 0x1002ce18
push str.connect
push eax
call esi
mov dword [0x100aa1dc], eax
mov dword [0x100aa1e0], eax
mov eax, dword [0x100ac698]
push str.send
push eax
call esi
mov dword [0x100aa1e4], eax
mov dword [0x100aa1e8], eax
mov eax, dword [0x100ac69c]
test eax, eax
jne 0x1002ce31
push str.odbc32.dll
call edi
mov dword [0x100ac69c], eax
test eax, eax
je 0x1002ce43
push str.SQLDrivers
push eax
call esi
mov dword [0x100ac7b4], eax
mov dword [0x100ac7b8], eax
mov eax, dword [0x100ac6a0]
test eax, eax
jne 0x1002ce5c
push str.dbnetlib.dll
call edi
mov dword [0x100ac6a0], eax
test eax, eax
je 0x1002ce86
push str.ConnectionObjectSize
push eax
call esi
mov ecx, dword [0x100ac6a0]
push str.ConnectionOpen
push ecx
mov dword [0x100aa1ec], eax
mov dword [0x100ac7bc], eax
call esi
mov dword [0x100aa1f0], eax
mov dword [0x100ac7c0], eax
call fcn.1002cea0
pop edi
pop esi
jmp fcn.1002cf10

Function at 0x1002fd90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
xor edi, edi
push 0x40
lea eax, [esi + 4]
push edi
mov dword [esi], vtable.CEnc.0
push eax
mov dword [esi + 0x80c], edi
call fcn.1006b580
add esp, 0xc
push edi
mov ecx, esi
mov dword [esi + 0x804], edi
mov dword [esi + 0x814], edi
call fcn.10032bd0
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0xc]
shl edx, 5
mov dword [ebp - 4], edi
lea edi, [ebp - 4]
mov dword [esi + 0x818], edx
call fcn.10010220
mov eax, dword [ebp - 4]
mov dword [esi + 0x80c], eax
mov eax, esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10033d50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10086bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
lea edx, [ebp + 8]
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.10021160
mov byte [ebp - 4], 1
lea esi, [ebx + 7]
cmp dword [ebp + 0x24], ebx
je 0x10033dde
cmp dword [0x100ac91c], 8
mov eax, dword [0x100ac908]
jae 0x10033dac
mov eax, 0x100ac908
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10033e33
shr eax, 4
not eax
and eax, 1
je 0x10033e33
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
xor eax, eax
push ebx
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
mov word [ecx], ax
push 0x100ac908
jmp 0x10033e21
cmp dword [0x100ac938], 8
mov eax, dword [0x100ac924]
jae 0x10033df1
mov eax, 0x100ac924
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10033e33
shr eax, 4
not eax
and eax, 1
je 0x10033e33
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
xor edx, edx
push ebx
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
mov word [ecx], dx
push 0x100ac924
or eax, 0xffffffff
call fcn.10003850
mov ecx, edi
call fcn.10036200
add esp, 0x20
mov edi, 8
cmp dword [ebp - 0x18], edi
jb 0x10033e49
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10066b10
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp + 0x1c], edi
jb 0x10033e66
mov edx, dword [ebp + 8]
push edx
call fcn.10066b10
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 0x20
Function at 0x10033e90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10086b80
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edx, [ebp + 8]
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.10021160
mov byte [ebp - 4], 1
cmp dword [0x100ac91c], 8
mov eax, dword [0x100ac908]
jae 0x10033ee2
mov eax, 0x100ac908
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, 7
cmp eax, 0xffffffff
je 0x10033f2f
shr eax, 4
not eax
and eax, 1
je 0x10033f2f
push 1
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ebp - 0x30], esp
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], 0
mov word [ecx], ax
push 0x100ac908
or eax, 0xffffffff
call fcn.10003850
mov ecx, dword [ebp + 0x24]
call fcn.10036200
add esp, 0x20
cmp dword [ebp - 0x18], 8
jb 0x10033f41
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10066b10
add esp, 4
xor edx, edx
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
jb 0x10033f63
mov eax, dword [ebp + 8]
push eax
call fcn.10066b10
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 0x20

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edx, [ebp + 8]
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.10021160
mov byte [ebp - 4], 1
cmp dword [0x100ac938], 8
mov eax, dword [0x100ac924]
jae 0x10033fd2
mov eax, 0x100ac924
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, 7
cmp eax, 0xffffffff
je 0x1003402b
shr eax, 4
not eax
and eax, 1
je 0x1003402b
lea eax, [ebp - 0x50]
push eax
call fcn.100365d0
sub esp, 0x1c
mov ecx, esp
xor edx, edx
mov dword [ebp - 0x30], esp
mov byte [ebp - 4], 2
push edx
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], 0
push 0x100ac924
or eax, 0xffffffff
mov word [ecx], dx
call fcn.10003850
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [ebp - 0x50]
call fcn.100368c0
cmp dword [ebp - 0x18], 8
jb 0x1003403d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10066b10
add esp, 4
xor edx, edx
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
jb 0x1003405f
mov eax, dword [ebp + 8]
push eax
call fcn.10066b10
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 0x20
Function at 0x10034080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10086b80
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edx, [ebp + 8]
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.10021160
mov byte [ebp - 4], 1
cmp dword [0x100ac938], 8
mov eax, dword [0x100ac924]
jae 0x100340d2
mov eax, 0x100ac924
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, 7
cmp eax, 0xffffffff
je 0x1003411f
shr eax, 4
not eax
and eax, 1
je 0x1003411f
push 0
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ebp - 0x30], esp
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], 0
mov word [ecx], ax
push 0x100ac924
or eax, 0xffffffff
call fcn.10003850
mov ecx, dword [ebp + 0x24]
call fcn.10036200
add esp, 0x20
cmp dword [ebp - 0x18], 8
jb 0x10034131
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10066b10
add esp, 4
xor edx, edx
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
jb 0x10034153
mov eax, dword [ebp + 8]
push eax
call fcn.10066b10
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 0x20

Function at 0x10034300
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082896
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x100a5c90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
mov dword [ebp - 4], edi
push 0x10
mov dword [esi + 0x224], edi
call fcn.10067232
add esp, 4
cmp eax, edi
je 0x100343f8
mov dword [esi + 0x220], eax
mov dword [eax], eax
mov eax, dword [esi + 0x220]
mov dword [eax + 4], eax
xor eax, eax
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
push 0xc8
mov dword [esi + 0x54], eax
lea ecx, [esi + 0x64]
push edi
mov dword [esi + 0x58], eax
push ecx
mov dword [esi + 0x5c], eax
call fcn.1006b580
push 0xd4
lea edx, [esi + 0x146]
push edi
push edx
call fcn.1006b580
fldz
xor eax, eax
fstp qword [esi + 0x30]
add esp, 0x18
mov word [esi + 0x2c], ax
push edi
mov eax, 0x1008da28
mov dword [esi + 0x3c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x21c], edi
mov dword [esi + 0x38], edi
call fcn.10003a30
xor ecx, ecx
mov word [esi + 0x144], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], edi
call fcn.10066dc7
push 0x10099a10
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.1006752f
int3