joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008e190
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10238d9f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x102c6474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 4]
push eax
lea ecx, [eax + 0x94]
call fcn.1008e900
mov esi, dword [edi + 4]
add esp, 4
sub esi, 0x94
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10005e05
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10005e05
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10005e05
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10005e05
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10005e05
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10005e05
mov eax, dword [ebp + 8]
add dword [edi + 4], 0xffffff6c
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x1008eee0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10238f8f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x102c6474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10005e05
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10005e05
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10005e05
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10005e05
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10005e05
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10005e05
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10090060
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023912f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x102c6474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.100085c3
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.100085c3
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.100085c3
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.100085c3
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.100085c3
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.100085c3
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10097630
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x102c6474]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.101e4da1
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.101fd690
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x1009768c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.101e48f0
add esp, 0x120
ret
Function at 0x1009a260
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x1009a298
mov edx, dword [esp + 4]
test edx, edx
je 0x1009a298
cmp dword [eax], 0xffffffff
je 0x1009a298
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009a298
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x1009a2d0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x102c6474]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x1009a333
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1009a333
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1009a30e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1009a333
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.101e48f0
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.101e48f0
add esp, 8
ret 4
Function at 0x1009a560
Capabilities:
Get common file path

Disassembly:
sub esp, 0x224
mov eax, dword [0x102c6474]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push 0x20c
lea eax, [esp + 0x1c]
mov ebp, ecx
push 0
push eax
call fcn.101fd690
add esp, 0xc
lea eax, [esp + 0x18]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1009a764
push ebx
xor eax, eax
push esi
mov word [esp + 0x22a], ax
lea eax, [esp + 0x20]
push edi
push eax
call fcn.10005f42
add esp, 4
mov ecx, ebp
mov ebx, eax
call fcn.10005e30
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x20], eax
cmp ebx, eax
ja 0x1009a60d
mov esi, edi
cmp eax, 8
jb 0x1009a5e0
mov esi, dword [edi]
push ebx
lea eax, [esp + 0x28]
mov dword [edi + 0x10], ebx
push eax
push esi
call fcn.10005f10
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
add esp, 0x14
jmp 0x1009a749
mov ecx, ebp
call fcn.1000608d
cmp ebx, eax
ja 0x1009a77c
mov ecx, ebp
call fcn.1000608d
mov ecx, ebx
mov esi, eax
or ecx, 7
mov dword [esp + 0x18], ecx
cmp ecx, esi
ja 0x1009a663
mov ecx, ebp
call fcn.10005e30
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x1009a663
lea eax, [ecx + edx]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.10005ed6
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1009a675
or ecx, 0xffffffff
jmp 0x1009a67d
cmp ecx, 0x1000
jb 0x1009a6a6
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.101e4da1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1009a781
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1009a6b7
test ecx, ecx
je 0x1009a6b5
push ecx
call fcn.101e4da1
add esp, 4
jmp 0x1009a6b7
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [esp + 0x14]
push eax
push esi
call fcn.10005f29
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
mov ecx, dword [esp + 0x34]
add esp, 0x14
cmp ecx, 8
jb 0x1009a728
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1009a716
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009a781
mov eax, edx
push ecx
push eax
call fcn.101e4d70
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [edi], eax
jmp 0x1009a749
lea eax, [esp + 0x10]
push eax
call fcn.10005f6e
push edi
mov esi, eax
call fcn.10005f6e
push eax
push 4
call fcn.10005b84
mov ecx, dword [esi]
add esp, 0x10
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.101e48f0
add esp, 0x224
ret
mov ecx, dword [esp + 0x224]
xor al, al
pop ebp
xor ecx, esp
call fcn.101e48f0
add esp, 0x224
ret
call fcn.1000604b
call fcn.10205f6e
int3
Function at 0x1009a790
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10234df8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x102c6474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x1009a7c7
xor al, al
jmp 0x1009a82a
and esi, 0xffffb1af
push esi
call fcn.10007f54
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1009a7e2
mov al, 1
jmp 0x1009a82a
lea ecx, [ebp - 0x28]
call fcn.10007fd4
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.1009c150
test al, al
je 0x1009a817
push esi
lea ecx, [ebp - 0x28]
call fcn.10007f54
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1009a817
mov bl, 1
jmp 0x1009a819
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005e05
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101e48f0
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10234df8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x102c6474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.10007f54
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1009a8ce
lea ecx, [ebp - 0x28]
call fcn.10007fd4
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.1009c150
test al, al
je 0x1009a8bd
lea ecx, [ebp - 0x28]
call fcn.10007f54
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005e05
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101e48f0
mov esp, ebp
pop ebp
ret
Function at 0x1009aa00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023a160
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x102c6474]
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 esi, ecx
call fcn.10007f54
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x1009aa46
mov al, 1
jmp 0x1009ab3b
mov ecx, esi
call fcn.10007f54
push eax
lea ecx, [ebp - 0x28]
call fcn.10005e0a
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1009a850
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005e05
cmp ebx, 0xffffffff
jne 0x1009aa85
xor al, al
jmp 0x1009ab3b
mov ecx, esi
call fcn.10007f54
push eax
lea ecx, [ebp - 0x28]
call fcn.10005e0a
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.1009a790
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005e05
test bl, bl
je 0x1009aa7e
mov ecx, esi
call fcn.10007f54
push eax
call edi
test eax, eax
jne 0x1009aa3f
lea ecx, [ebp - 0x28]
call fcn.10007fd4
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.1009c150
test al, al
je 0x1009aafd
lea ecx, [ebp - 0x28]
call fcn.10007f54
push eax
call edi
test eax, eax
je 0x1009aafd
mov bl, 1
jmp 0x1009ab2a
mov ecx, esi
call fcn.10007f54
push eax
lea ecx, [ebp - 0x44]
call fcn.10005e0a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.1009a790
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10005e05
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005e05
mov al, bl
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.101e48f0
mov esp, ebp
pop ebp
ret
Function at 0x1009b130
Capabilities:
Get common file path

Disassembly:
sub esp, 0x224
mov eax, dword [0x102c6474]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
mov ebp, dword [esp + 0x22c]
lea eax, [esp + 0x18]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.101fd690
add esp, 0xc
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push 0
call fcn.10007f54
push eax
mov ecx, edi
call fcn.10007f54
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1009b346
xor eax, eax
mov word [esp + 0x22a], ax
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.10005f42
add esp, 4
mov ecx, ebp
mov ebx, eax
call fcn.10005e30
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x20], eax
cmp ebx, eax
ja 0x1009b1ef
mov esi, edi
cmp eax, 8
jb 0x1009b1c2
mov esi, dword [edi]
push ebx
lea eax, [esp + 0x28]
mov dword [edi + 0x10], ebx
push eax
push esi
call fcn.10005f10
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
add esp, 0x14
jmp 0x1009b32b
mov ecx, ebp
call fcn.1000608d
cmp ebx, eax
ja 0x1009b360
mov ecx, ebp
call fcn.1000608d
mov ecx, ebx
mov esi, eax
or ecx, 7
mov dword [esp + 0x18], ecx
cmp ecx, esi
ja 0x1009b245
mov ecx, ebp
call fcn.10005e30
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x1009b245
lea eax, [ecx + edx]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.10005ed6
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1009b257
or ecx, 0xffffffff
jmp 0x1009b25f
cmp ecx, 0x1000
jb 0x1009b288
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.101e4da1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1009b365
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1009b299
test ecx, ecx
je 0x1009b297
push ecx
call fcn.101e4da1
add esp, 4
jmp 0x1009b299
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [esp + 0x14]
push eax
push esi
call fcn.10005f29
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
mov ecx, dword [esp + 0x34]
add esp, 0x14
cmp ecx, 8
jb 0x1009b30a
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1009b2f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009b365
mov eax, edx
push ecx
push eax
call fcn.101e4d70
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [edi], eax
jmp 0x1009b32b
lea eax, [esp + 0x10]
push eax
call fcn.10005f6e
push edi
mov esi, eax
call fcn.10005f6e
push eax
push 4
call fcn.10005b84
mov ecx, dword [esi]
add esp, 0x10
mov dword [eax], ecx
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.101e48f0
add esp, 0x224
ret
mov ecx, dword [esp + 0x22c]
xor al, al
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.101e48f0
add esp, 0x224
ret
call fcn.1000604b
call fcn.10205f6e
int3
Function at 0x1009b6c0
Capabilities:
Get common file path

Disassembly:
jmp 0x1009b6c0
sub esp, 0x42c
mov eax, dword [0x102c6474]
xor eax, esp
mov dword [esp + 0x428], eax
push ebp
mov ebp, ecx
call fcn.1000fc76
push 0x412
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.101fd690
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1009b8d0
cmp eax, 0x208
jae 0x1009b8d0
push ebx
xor eax, eax
push esi
mov word [esp + 0x430], ax
lea eax, [esp + 0x20]
push edi
push eax
call fcn.10005f42
add esp, 4
mov ecx, ebp
mov ebx, eax
call fcn.10005e30
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x20], eax
cmp ebx, eax
ja 0x1009b779
mov esi, edi
cmp eax, 8
jb 0x1009b74c
mov esi, dword [edi]
push ebx
lea eax, [esp + 0x28]
mov dword [edi + 0x10], ebx
push eax
push esi
call fcn.10005f10
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
add esp, 0x14
jmp 0x1009b8b5
mov ecx, ebp
call fcn.1000608d
cmp ebx, eax
ja 0x1009b8e8
mov ecx, ebp
call fcn.1000608d
mov ecx, ebx
mov esi, eax
or ecx, 7
mov dword [esp + 0x18], ecx
cmp ecx, esi
ja 0x1009b7cf
mov ecx, ebp
call fcn.10005e30
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x1009b7cf
lea eax, [ecx + edx]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.10005ed6
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1009b7e1
or ecx, 0xffffffff
jmp 0x1009b7e9
cmp ecx, 0x1000
jb 0x1009b812
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.101e4da1
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1009b8ed
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1009b823
test ecx, ecx
je 0x1009b821
push ecx
call fcn.101e4da1
add esp, 4
jmp 0x1009b823
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [esp + 0x14]
push eax
push esi
call fcn.10005f29
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.10005eff
mov ecx, dword [esp + 0x34]
add esp, 0x14
cmp ecx, 8
jb 0x1009b894
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1009b882
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009b8ed
mov eax, edx
push ecx
push eax
call fcn.101e4d70
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [edi], eax
jmp 0x1009b8b5
lea eax, [esp + 0x10]
push eax
call fcn.10005f6e
push edi
mov esi, eax
call fcn.10005f6e
push eax
push 4
call fcn.10005b84
mov ecx, dword [esi]
add esp, 0x10
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.101e48f0
add esp, 0x42c
ret
mov ecx, dword [esp + 0x42c]
xor al, al
pop ebp
xor ecx, esp
call fcn.101e48f0
add esp, 0x42c
ret
call fcn.1000604b
call fcn.10205f6e
int3
Function at 0x1009d360
Capabilities:
Check for peb ntglobalflag flag
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023a4c9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x102c6474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], vtable.RC::IRefCount.0
mov dword [ebp - 4], 0
mov dword [ebx], vtable.DL::ISimpleDownloadHandler.0
mov dword [ebp - 4], 1
mov dword [ebx + 4], vtable.RC::RCRefCounted.0
mov dword [ebx + 8], 0
mov byte [ebp - 4], 2
mov dword [ebx], vtable.RC::RCRefCountImpl1_class_DL::ISimpleDownloadHandler_.1.0
mov dword [ebx + 4], vtable.RC::RCRefCountImpl1_class_DL::ISimpleDownloadHandler_.0
mov dword [ebp - 4], 3
lea esi, [ebx + 0x10]
mov ecx, esi
mov dword [ebx], vtable.DL::RCSimpleDownloadHandler.0
mov dword [ebx + 4], vtable.DL::RCSimpleDownloadHandler.1.0
mov dword [ebp - 0x14], esi
call fcn.10007fd4
mov byte [ebp - 4], 4
lea ecx, [esi + 0x18]
call fcn.10007fd4
mov byte [ebp - 4], 5
lea ecx, [esi + 0x30]
call fcn.10007fd4
mov byte [ebp - 4], 6
lea ecx, [esi + 0x48]
call fcn.10007fd4
mov byte [ebp - 4], 7
lea ecx, [esi + 0x70]
mov word [esi + 0x60], 0x101
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
call fcn.10007fd4
mov byte [ebp - 4], 9
mov dword [ebx + 0x98], 0
mov byte [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 0
mov byte [ebp - 4], 0xa
push 0x18
call fcn.101e4da1
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 4
mov dword [ebx + 0xac], eax
push eax
call esi
mov byte [ebp - 4], 0xb
lea edi, [ebx + 0xc0]
mov dword [ebx + 0xb0], 0
lea ecx, [edi + 8]
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xbc], 0
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov byte [edi + 4], 0
call fcn.10007fd4
mov byte [ebp - 4], 0xd
push 0x18
mov dword [ebx + 0xe0], 0
call fcn.101e4da1
add esp, 4
mov dword [ebx + 0xe4], eax
push eax
call esi
mov byte [ebp - 4], 0xe
mov dword [ebx + 0xe8], 0
mov dword [ebx + 0xec], 0
mov byte [ebp - 4], 0xf
mov byte [ebx + 0xf0], 0
mov dword [ebx + 0xf4], 0
mov dword [ebx + 0xf8], 0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2c]
push 0x10272ce0
call fcn.10005e0a
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x2c]
push ecx
push 1
push eax
mov ecx, edi
call fcn.100797a0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2c]
call fcn.10005e05
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100a0ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023ac28
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x102c6474]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.1009a350
test al, al
jne 0x100a0d40
mov eax, 1
jmp 0x100a0ebd
push 0x10000
call fcn.101e4dd6
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call fcn.101fd690
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x100a0e96
test ebx, ebx
je 0x100a0e96
cmp dword [eax], 0xffffffff
je 0x100a0e96
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100a0e96
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x100a0e8c
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.101d8120
test al, al
je 0x100a0e7f
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x100a0e32
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x100a0e21
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x100a0e8c
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x100a0e3c
add ebx, eax
cmp ebx, 0x8000
je 0x100a0e4c
cmp dword [ebp - 0x28], 0xf
ja 0x100a0e75
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x100a0dd0
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x100a0e6e
add ecx, 4
add esi, 4
sub edx, 4
jae 0x100a0e56
mov esi, 4
jmp 0x100a0ea7
mov esi, 5
jmp 0x100a0ea7
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x100a0ea7
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x100a0ea1
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x100a0ea7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x100a0ebb
push ebx
call fcn.101e4dd1
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101e48f0
mov esp, ebp
pop ebp
ret 0xc