joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468460
Capabilities:
Read file on windows
Set file attributes

Disassembly:
sub esp, 0x41c
mov eax, dword [0x479004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x47c7cc]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
mov ebp, 0x1519a5
mov ebx, 0x8e46a7b8
mov dword [0x47c434], ebx
cmp eax, 0x3dc
jne 0x4684b2
push 0
push 0x476a20
call esi
push 0
call edi
mov eax, dword [0x47c7cc]
dec ebp
jne 0x468493
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CancelIo]
xor esi, esi
cmp eax, 0x997
jne 0x4684fb
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebp
lea edx, [esp + 0x34]
push edx
push ebp
mov dword [esp + 0x24], ebp
call edi
push ebp
call ebx
mov eax, dword [0x47c7cc]
cmp esi, 0x845f8b
jne 0x468512
mov eax, dword [0x47a940]
add eax, 0xa231
mov dword [0x47c7cc], eax
cmp eax, 0x141
jne 0x46852d
mov dword [0x47c008], 0xec58acac
mov dword [0x47c00c], 0xffffffff
inc esi
cmp esi, 0x12cca12
jl 0x4684c3
call fcn.004680a0
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004010fc
add esp, 0x41c
ret 0x10
Function at 0x401ee2
Capabilities:
Terminate process

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

Function at 0x409d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x409d2f
pop dword [ebp - 0x3c]
mov eax, 0xc1e685e5
sub eax, 0xc1a5e8b6
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3721e
push 0
mov eax, 0x4936d76a
sub eax, 0x48f5f692
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xcfbc1316
add ecx, 0x30442ca1
xor edi, edi
add edi, eax
mov edx, 0x413bc4
add edx, dword [ebp - 0x3c]
mov esi, 0x2e33a166
sub esi, 0xde9df787
add dword [ebp - 0x18], ebx
mov ebx, dword [edx]
sub dword [ebp - 0x14], 0xe9c1832a
sub ebx, esi
sub dword [ebp - 0x38], 0xb071497b
mov dword [edi], ebx
xor dword [ebp - 0x34], ecx
add edi, 4
add edx, 0x5d82f5b
sub edx, 0x5d82f57
loop 0x409d8a
add eax, 0x4f56ecb2
sub eax, 0x4f55fb03
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc5b6af47
sub ecx, 0xc576af47
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp int.00401219
Function at 0x406e90
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
or esi, 0xffffffff
test eax, eax
je 0x407045
push ebx
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
je 0x407044
mov eax, dword [0x40b1c8]
push ebp
push 0x1000
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x40703c
push edi
nop
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x1000
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [esp + 0x1c]
cmp edx, 8
mov eax, ebp
mov edi, edx
jb 0x406ffe
mov ebp, edx
shr ebp, 3
lea ebx, [ebx]
movzx ebx, byte [eax]
xor ebx, esi
and ebx, 0xff
add eax, 1
mov ecx, esi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
add eax, 1
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
add eax, 1
sub edi, 8
sub ebp, 1
mov esi, ecx
jne 0x406f20
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
je 0x40701f
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4090f0]
add eax, 1
sub edi, 1
jne 0x407002
cmp edx, 0x1000
je 0x406ef0
mov edx, dword [0x40b1c8]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebp
pop ebx
mov eax, esi
not eax
pop esi
add esp, 8
ret 4

Function at 0x407050
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x79d74c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79d752
pop ebp
sub ebp, 6
sub ebp, 0x39d74c
jmp 0x79d7b0
jmp 0x79d7b9
mov eax, 0x39d74c
add eax, ebp
add eax, 0x93
mov ecx, 0x642
mov edx, 0x9998e35c
xor byte [eax], dl
inc eax
dec ecx
jne 0x79d7d0
jmp 0x79d7e3
sbb al, 0x34
pop esp
dec esp
pop esp
pop esp
xor al, 0x5c
nop
jo 0x79d84b
outsd dx, dword [esi]
pushfd
or al, 0xa3
leave
cwde
cld
insb byte es:[edi], dx
pop esp
or al, 0xd7
xchg ecx, eax
xlatb
aad 0x60
pop esp
pop esp
pop esp
fstp qword [ebp + 0x5c5c5ca4]
pop edi
xchg ecx, eax
in al, 0x58
pop esp
pop esp
pop esp
out 0x74, al
pop esp
pop esp
pop esp
stosd dword es:[edi], eax
mov esi, 0xddd7945f
push eax
pop esp
pop esp
pop esp
pop edi
cdq
or al, 0x34
xchg edx, eax
push 0x27345c55
invalid
xlatb
ror dword [esp + ebx*2 + 0x5c], 1
pop esp
popfd
mov ch, 0x5e
insd dword es:[edi], dx
pop esi
fistp word [esi - 0x26aceaa8]
test al, 0xa3
mov dword [0x509e01a3], eax
pop esp
xlatb
sar byte [eax + 0x58], 1
pop esp
pop esp
pop esp
xor al, 0x92
push 0x27345c55
invalid

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001950
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ebx
cmp byte [ebx], 0xe9
jne 0x10001974
lea ecx, [ebx + 5]
add ecx, dword [ebx + 1]
call fcn.10001950
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10353d88]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x103550c0]
cmp eax, dword [ecx + 4]
jle 0x100019cc
push 0x103550c0
call fcn.10017343
add esp, 4
cmp dword [0x103550c0], 0xffffffff
jne 0x100019cc
push 0x40
push 0x1000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x103550c0
mov dword [0x103550bc], eax
call fcn.100172f9
add esp, 4
push esi
mov esi, dword [0x103550bc]
push edi
lea edx, [esi + 0x1000]
cmp esi, edx
je 0x100019f3
nop
lea ecx, [esi + 0x1c]
call fcn.10001940
test eax, eax
je 0x100019f5
add esi, 0x20
cmp esi, edx
jne 0x100019e0
xor esi, esi
xor edi, edi
lea ecx, [edi + ebx]
call fcn.10001700
add edi, eax
cmp edi, 5
jl 0x100019f7
test edi, edi
jle 0x10001a21
mov ecx, esi
sub ebx, esi
mov edx, edi
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x10001a10
mov ebx, dword [ebp - 0xc]
lea ecx, [edi + esi]
sub edi, ecx
mov byte [ecx], 0xe9
lea eax, [edi - 5]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add eax, ebx
mov dword [ecx + 1], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push ebx
call edi
mov eax, dword [ebp - 0x10]
sub eax, ebx
mov byte [ebx], 0xe9
sub eax, 5
mov dword [ebx + 1], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10003460
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp 0x10003479
jmp 0x1000348b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x100034d0
call fcn.10003460
cmp dword [ebp - 4], 0x103
jne 0x100034e1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100034f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x1006900c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x84], 0x96772876
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x80], 0x2d647c5
mov dword [ebp - 0x7c], 0xc489879
mov dword [ebp - 0x78], 0x868eef78
mov dword [ebp - 0x74], 0xf2cb6144
mov dword [ebp - 0x70], 0xe8d736f5
mov dword [ebp - 0x6c], 0x393b1ca4
mov dword [ebp - 0x68], 0x804c76e0
mov dword [ebp - 0x64], 0x99b575fa
mov dword [ebp - 0x60], 0x546c37ef
mov dword [ebp - 0x5c], 0x8a1f40e6
mov dword [ebp - 0x58], 0x4dff5bbb
mov dword [ebp - 0x54], 0x471a3ee9
mov dword [ebp - 0x50], 0x3fb150b5
mov dword [ebp - 0x4c], 0xe8d3ba85
mov dword [ebp - 0x48], 0x2ccd0ecb
mov dword [ebp - 0x44], 0xe3b31f1
mov dword [ebp - 0x40], 0x4f0a9998
mov dword [ebp - 0x3c], 0xcfb63c63
mov dword [ebp - 0x38], 0x9662c936
mov dword [ebp - 0x34], 0x576e7bfe
mov dword [ebp - 0x30], 0xc0f2073c
mov dword [ebp - 0x2c], 0xb182a062
mov dword [ebp - 0x28], 0x27e7fb07
mov dword [ebp - 0x24], 0xf98d8baf
mov dword [ebp - 0x20], 0x3398a2fe
mov dword [ebp - 0x1c], 0xe2a22525
mov dword [ebp - 0x18], 0x91fb354a
mov dword [ebp - 0x14], 0x2da256d5
mov dword [ebp - 0x10], 0x8518461
mov dword [ebp - 0xc], 0xd8c98029
mov dword [ebp - 8], 0x5495dbc8
cmp ecx, esi
jae 0x1000360e
mov eax, ecx
lea edx, [edx + 1]
and eax, 0x7f
mov al, byte [ebp + eax - 0x84]
xor al, byte [ecx + edi]
inc ecx
mov byte [edx - 1], al
cmp ecx, esi
jb 0x100035f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10017199
mov esp, ebp
pop ebp
ret
Function at 0x10006da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10006db1
sub esi, ecx
mov dword [ebp + 8], esi
lea eax, [esi + 1]
push eax
call fcn.100177d8
add esp, 4
mov edi, eax
xor edx, edx
mov dword [ebp - 4], edi
test esi, esi
je 0x10006e85
cmp esi, 0x40
jb 0x10006e50
lea eax, [ebx - 1]
lea ecx, [edi - 1]
add eax, esi
add ecx, esi
cmp edi, eax
ja 0x10006def
cmp ecx, ebx
jae 0x10006e50
movaps xmm1, xmmword [0x10061b50]
mov ecx, esi
mov esi, ebx
and ecx, 0xffffffc0
sub esi, edi
mov eax, edi
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
nop word [eax + eax]
movups xmm0, xmmword [edi + eax]
lea eax, [eax + 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [ebx + edx + 0x10]
pxor xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [ebx + edx + 0x20]
pxor xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
movups xmm0, xmmword [ebx + edx + 0x30]
add edx, 0x40
pxor xmm0, xmm1
movups xmmword [eax - 0x10], xmm0
cmp edx, ecx
jb 0x10006e10
mov edi, dword [ebp - 4]
cmp edx, esi
jae 0x10006e76
sub ebx, edi
lea ecx, [edx + edi]
mov dword [ebp + 8], ebx
mov ebx, esi
mov edi, dword [ebp + 8]
sub ebx, edx
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor al, 0xa1
mov byte [ecx - 1], al
sub ebx, 1
jne 0x10006e63
mov edi, dword [ebp - 4]
mov byte [edi + esi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [edi + esi], dl
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10006ea0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push 0xe
call fcn.100177d8
mov edi, str.autologin.ini
add esp, 4
mov ecx, eax
sub edi, eax
mov esi, 0xd
nop word [eax + eax]
mov dl, byte [edi + ecx]
lea ecx, [ecx + 1]
xor dl, 0xa1
mov byte [ecx - 1], dl
sub esi, 1
jne 0x10006ec0
pop edi
mov byte [eax + 0xd], 0
pop esi
ret
Function at 0x10009300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000932b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000a5a0
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 + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x1000934d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1000934f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x100093d3
jg 0x10009364
test esi, esi
je 0x100093d3
test ecx, ecx
jl 0x100093ad
jg 0x1000936e
test eax, eax
je 0x100093ad
cmp edi, ecx
jg 0x10009382
jl 0x10009378
cmp esi, eax
jae 0x10009382
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.1002f080
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x100093b0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x100093d3
jg 0x100093ba
test esi, esi
je 0x100093d3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x100093d3
push eax
push esi
push 1
push edx
call fcn.10033ed0
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100093f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x1000941b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000a680
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x1000943d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x1000943f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x100094de
jg 0x1000945c
test esi, esi
je 0x100094de
test ecx, ecx
jl 0x100094a9
jg 0x10009466
test eax, eax
je 0x100094a9
cmp ebx, ecx
jg 0x1000947a
jl 0x10009470
cmp esi, eax
jae 0x1000947a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.1002f080
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x100094b0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x100094de
jg 0x100094ba
test esi, esi
je 0x100094de
cmp dword [edi + 0x4c], 0
je 0x100094de
mov ecx, edi
call fcn.1000c160
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.10034822
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10009810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1006900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10009840
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017199
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000987c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000987c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017199
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10009961
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100098a4
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 0x100098d7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.10032137
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017199
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x10009961
cmp eax, 1
jle 0x10009934
cmp eax, 3
jne 0x10009961
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10002cf0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017199
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10009951
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10033ed0
add esp, 0x10
cmp edi, eax
jne 0x10009961
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10009867
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10017199
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1006900c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x1000c2c1
cmp byte [esi + 0x3d], 0
je 0x1000c2c1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000c277
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1000c289
sub eax, 1
je 0x1000c28d
sub eax, 2
je 0x1000c2c1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017199
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000c2aa
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10033ed0
add esp, 0x10
cmp edi, eax
jne 0x1000c277
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017199
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10017199
mov esp, ebp
pop ebp
ret

Function at 0x1000d600
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004f240
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1006900c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10017454
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1001a90a
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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