joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42de73
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x42dea7
jmp fcn.00428c7c
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x42df18
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x42e011
cmp eax, dword [edi + 0xc]
jge 0x42e011
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x42df69
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x42dffa
cmp dword [ebp + 0xc], ebx
je 0x42dffa
jmp 0x42df93
push 0x10
call fcn.0042dc5c
cmp eax, ebx
je 0x42df7f
mov ecx, eax
call fcn.0042de6a
mov esi, eax
jmp 0x42df81
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42dfaa
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42dfba
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x42dfcc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00428c7c
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0041cdf0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x42e00c
cmp ecx, dword [esi + 8]
jge 0x42e00c
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x42e012
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100097d1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100205e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.1000a2af
test eax, eax
je 0x100098e6
xor ebx, ebx
mov dword [ebp - 0x214], 0x104
push ebx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.shlwapi.dll_PathCreateFromUrlW]
test eax, eax
js 0x100098e6
push ebx
push 0x80
push 3
push ebx
inc ebx
lea eax, [ebp - 0x20c]
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100098e6
push 0
lea eax, [ebp - 0x218]
push eax
push 4
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x100098e6
cmp dword [ebp - 0x218], 4
jne 0x100098e6
push 3
lea eax, [ebp - 0x210]
push 0x10018620
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x100098b0
push 3
lea eax, [ebp - 0x210]
push 0x10018624
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x100098b0
mov al, bl
jmp 0x100098e8
xor eax, eax
push eax
push eax
push eax
movsx ax, byte [ebp - 0x20d]
movzx eax, ax
push eax
call fcn.100099f9
mov ecx, dword [0x10021678]
add esp, 0x10
mov edi, eax
mov esi, edx
call fcn.100099f9
cmp edx, esi
jb 0x100098e2
ja 0x100098ac
cmp eax, edi
jae 0x100098ac
xor bl, bl
jmp 0x100098ac
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013d40
leave
ret 4

Function at 0x100099f9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x10009a08
pop dword [ebp - 0x40]
mov eax, 0x10009a08
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x390d6
push 0
mov eax, 0x47fb843a
add eax, 0xc805ed06
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x4352
xor ebx, ebx
add ebx, eax
mov esi, 0x10025400
add esi, dword [ebp - 0x40]
mov edx, 0xdf6212dd
add edx, 0x9ab5614d
add dword [ebp - 0x14], 0x166ae97
mov edi, dword [esi]
sub dword [ebp - 0x14], 0xbb0af076
xor edi, edx
add dword [ebp - 8], edi
mov dword [ebx], edi
xor dword [ebp - 0x14], ebx
add ebx, 0x6db25de9
add ebx, 0x924da21b
add esi, 0x42de94aa
add esi, 0xbd216b5a
loop 0x10009a58
add eax, 0x6be124b4
add eax, 0x941fdb67
mov ebx, eax
add eax, 0xd4aca0bf
add eax, 0x2b535f46
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00405630
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00405630
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00405630
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00405630
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00405630
mov dword [0x41203c], eax
call fcn.00405630
test eax, eax
jge 0x402550
push 8
call fcn.00405630
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00405630
pop ecx
push 1
call fcn.00405630
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00405630
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00405630
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00405630
jmp 0x402495

Function at 0x405630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40563f
pop dword [ebp - 0x3c]
mov eax, 0x62436f2d
sub eax, 0x620318ee
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x36aba
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x3ddb
mov ebx, eax
mov edi, 0xaa233927
add edi, 0x561e029d
add edi, dword [ebp - 0x3c]
mov edx, 0x3e3aaa5b
add edx, 0x3a6fc01c
sub dword [ebp - 4], 0x6d05ed6a
mov esi, dword [edi]
mov dword [ebp - 0x18], 0x568bb525
add esi, edx
xor dword [ebp - 0x2c], edi
mov dword [ebx], esi
add dword [ebp - 0x18], esi
add ebx, 0xf5b5bea4
add ebx, 0xa4a4160
add edi, 0x6c137937
sub edi, 0x6c137933
loop 0x405693
add eax, 0x9c02faaf
sub eax, 0x9c021070
mov ebx, eax
add eax, 0xfca92737
add eax, 0x356d8ce
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x100010b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100010cb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001102
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x100010fe
jmp 0x100010f0
cmp esi, eax
jae 0x10001102
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100010f0
cmp esi, eax
jb 0x10001109
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100011c0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101366d1
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1018e600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x10163fee
call fcn.10003af0
push 0x10163fee
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
call fcn.10003af0
push 0x10163fee
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
call fcn.10003af0
push 0x10163fee
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 2
call fcn.10003af0
push 0x10163fee
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 3
call fcn.10003af0
push 0x10163fee
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 4
call fcn.10003af0
push 0x10163fee
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 5
call fcn.10003af0
push 0x10163fee
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 6
call fcn.10003af0
push 0x10163fee
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 7
call fcn.10003af0
push 0x10163fee
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 8
call fcn.10003af0
push 0x10163fee
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 9
call fcn.10003af0
push 0x10163fee
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 0xa
call fcn.10003af0
mov byte [ebp - 4], 0xb
push 0x10163fee
lea ecx, [esi + 0x34]
mov dword [esi + 0x30], 1
call fcn.10003af0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001480
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10135a41
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1018e600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.10004a30
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
call fcn.10004a30
add eax, 0x10
mov dword [esi + 4], eax
mov byte [ebp - 4], 1
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
call fcn.10004a30
add eax, 0x10
mov dword [esi + 8], eax
mov byte [ebp - 4], 2
mov eax, dword [edi + 0xc]
sub eax, 0x10
push eax
call fcn.10004a30
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
call fcn.10004a30
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 4
mov eax, dword [edi + 0x14]
sub eax, 0x10
push eax
call fcn.10004a30
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 5
mov eax, dword [edi + 0x18]
sub eax, 0x10
push eax
call fcn.10004a30
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 6
mov eax, dword [edi + 0x1c]
sub eax, 0x10
push eax
call fcn.10004a30
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [ebp - 4], 7
mov eax, dword [edi + 0x20]
sub eax, 0x10
push eax
call fcn.10004a30
add eax, 0x10
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 8
mov eax, dword [edi + 0x24]
sub eax, 0x10
push eax
call fcn.10004a30
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 9
mov eax, dword [edi + 0x28]
sub eax, 0x10
push eax
call fcn.10004a30
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 0xa
mov eax, dword [edi + 0x2c]
sub eax, 0x10
push eax
call fcn.10004a30
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 0xb
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov edi, dword [edi + 0x34]
sub edi, 0x10
push edi
call fcn.10004a30
add esp, 0x34
add eax, 0x10
mov dword [esi + 0x34], eax
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
Function at 0x10008370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10136ca1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x1018e600]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10196a30], 0
jne 0x10008492
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10008492
cmp eax, 0x104
ja 0x10008492
push str.hpbcsiInstallerBootstrap.log
lea ecx, [ebp - 0x224]
call fcn.10003a30
mov esi, eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.10003a30
push esi
push eax
lea edx, [ebp - 0x21c]
push edx
mov byte [ebp - 4], 1
call fcn.10006c80
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10008434
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000845a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x21c]
call fcn.10008b20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000848e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x10008494
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010d913
mov esp, ebp
pop ebp
ret
Function at 0x10008c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10135b58
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1018e600]
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, dword [ebp + 8]
mov eax, 0xffff
mov edi, ecx
cmp ax, si
jne 0x10008c91
xor eax, eax
jmp 0x10008e17
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x10008cbd
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x10008cbd
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 2]
mov dword [edi], ecx
mov word [eax], si
mov ax, si
jmp 0x10008e17
cmp dword [edi + 0x54], 0
je 0x10008e12
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x10008ce7
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
sar eax, 1
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x10008d12
mov edi, dword [edi + 0x54]
push edi
push esi
call fcn.1010e9c8
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, si
jne 0x10008e17
mov eax, ecx
jmp 0x10008e17
movzx edx, si
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], edx
call fcn.10009670
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
lea ecx, [ecx]
mov edx, eax
cmp ebx, 0x10
jae 0x10008d3c
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, edx
push ebx
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x2e]
push edx
mov edx, dword [esi + 0x14]
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
test eax, eax
js 0x10008e0a
cmp eax, 1
jg 0x10008dd2
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x10008d7e
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x10008da7
cmp ebx, 0x10
jae 0x10008d8d
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.1010fcc2
add esp, 0x10
cmp esi, eax
jne 0x10008e0a
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
mov byte [edi + 0x4a], 1
cmp dword [ebp - 0x38], edx
jne 0x10008dfc
test esi, esi
jne 0x10008d30
cmp dword [ebp - 0x1c], 0x20
jae 0x10008e0a
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.100096d0
jmp 0x10008d27
cmp eax, 3
jne 0x10008e0a
mov eax, dword [edi + 0x54]
mov ecx, dword [ebp - 0x30]
call fcn.10008350
movzx esi, word [ebp + 8]
test al, al
jne 0x10008def
mov esi, 0xffff
lea ecx, [ebp - 0x2c]
call fcn.10008660
mov ax, si
jmp 0x10008e17
lea ecx, [ebp - 0x2c]
call fcn.10008660
mov ax, word [ebp + 8]
jmp 0x10008e17
lea ecx, [ebp - 0x2c]
call fcn.10008660
mov eax, 0xffff
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.1010d913
mov esp, ebp
pop ebp
ret 4
Function at 0x10009980
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10136478
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1018e600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x54], 0
jne 0x10009a76
mov eax, dword [ebp + 8]
push 0x40
push 0xa
push eax
call fcn.101294c4
add esp, 0xc
test eax, eax
je 0x10009a76
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov byte [esi + 0x50], 1
mov byte [esi + 0x4a], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
lea ecx, [esi + 0xc]
mov dword [esi + 0x14], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [ecx], 0
mov ecx, dword [esi + 0x24]
mov dword [ecx], 0
mov edx, dword [esi + 0x34]
mov dword [edx], 0
mov ecx, dword [esi + 0x10]
mov dword [ecx], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov ecx, dword [esi + 0x30]
mov edx, dword [0x10196aa8]
mov dword [ecx], 0
mov dword [esi + 0x54], eax
lea edi, [ebp + 8]
mov eax, esi
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], 0
call fcn.10009f30
mov edi, eax
mov dword [ebp - 4], 0
call fcn.1000a600
mov edi, eax
call fcn.10009c50
lea ecx, [ebp + 8]
call fcn.10007820
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
xor eax, eax
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 0x10009b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10135cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1018e600]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x10009c33
cmp byte [edi + 0x4a], 0
je 0x10009c33
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
mov ecx, edi
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x10009c27
lea esi, [ebp - 0x2c]
call fcn.10009670
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x10009b9e
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x10009bc7
dec eax
je 0x10009bcb
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x10009c22
jmp 0x10009c2e
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x10009bdb
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x10009c04
cmp ebx, 0x10
jae 0x10009bea
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.1010fcc2
add esp, 0x10
cmp esi, eax
jne 0x10009c1f
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x10009c2b
test esi, esi
jne 0x10009b92
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.100096d0
jmp 0x10009b8c
lea ecx, [ebp - 0x2c]
call fcn.10008660
xor al, al
jmp 0x10009c35
lea ecx, [ebp - 0x2c]
call fcn.10008660
mov al, 1
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.1010d913
mov esp, ebp
pop ebp
ret
Function at 0x10009e40
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10135afb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1018e600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.101293b5
push 4
mov dword [ebp - 4], 0
call fcn.1001ee4b
mov edi, eax
add esp, 4
test edi, edi
je 0x10009ebc
call fcn.1012928d
mov dword [edi], eax
call fcn.1012904c
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.10129376
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10009eb2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.1012939e
jmp 0x10009ebe
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4