joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100043a0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x10004503
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.10002db0
mov ecx, dword [ebx + 4]
lea eax, [edi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edi
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x100044d6
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
mov dword [ebp - 4], ebx
lea eax, [eax + edi*8]
mov dword [ebp - 8], eax
cmp ebx, esi
jne 0x10004456
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x100044c9
mov eax, dword [eax + 4]
mov ebx, dword [ecx + 8]
cmp ebx, dword [eax + 8]
jne 0x10004490
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x10004488
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
jmp 0x100044c9
mov edi, eax
cmp dword [ebp - 4], eax
je 0x100044a6
mov eax, dword [eax + 4]
mov edi, eax
cmp ebx, dword [eax + 8]
je 0x100044df
cmp dword [ebp - 4], eax
jne 0x10004497
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
mov dword [eax], edx
mov ebx, dword [edx + 4]
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov dword [edi + 4], ebx
mov edi, dword [ebp - 4]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax], ecx
mov ebx, dword [ebp - 0x10]
mov ecx, edx
cmp edx, esi
jne 0x10004402
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov esi, eax
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x100044c9
push str.invalid_hash_bucket_count
call fcn.10082bcd
int3
Function at 0x10010550
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x10010581
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10010570
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x1001a370
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100ef0f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100f29c4]
push ebx
mov dword [ebp - 0x14], 0x7c6b7861
mov bl, 0x2e
mov dword [ebp - 0x10], 0x71776f62
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10100bbc]
mov dword [ebp - 0xc], 0x6a00696c
mov word [ebp - 8], 0x7d6a
cmp eax, dword [ecx + 4]
jle 0x1001a40c
push 0x10100bbc
call fcn.10084984
add esp, 4
cmp dword [0x10100bbc], 0xffffffff
jne 0x1001a40c
mov eax, dword [ebp - 0xc]
movq xmm0, qword [ebp - 0x14]
mov dword [0x10100c0c], eax
mov ax, word [ebp - 8]
push 0x100c3220
movq qword [0x10100c04], xmm0
mov word [0x10100c10], ax
mov byte [0x10100c12], bl
call fcn.10084d5f
push 0x10100bbc
call fcn.1008493a
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, 0x10100c04
xor ecx, ebp
pop ebx
call fcn.10084864
mov esp, ebp
pop ebp
ret

Function at 0x1001a760
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100ef0f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100f29c4]
push ebx
mov dword [ebp - 0x14], 0x6b7a6f62
mov bl, 0x2e
mov dword [ebp - 0x10], 0x7c776d60
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10100ae0]
mov dword [ebp - 0xc], 0x6a006a6b
mov word [ebp - 8], 0x7d6a
cmp eax, dword [ecx + 4]
jle 0x1001a7fc
push 0x10100ae0
call fcn.10084984
add esp, 4
cmp dword [0x10100ae0], 0xffffffff
jne 0x1001a7fc
mov eax, dword [ebp - 0xc]
movq xmm0, qword [ebp - 0x14]
mov dword [0x10100cf0], eax
mov ax, word [ebp - 8]
push 0x100c3130
movq qword [0x10100ce8], xmm0
mov word [0x10100cf4], ax
mov byte [0x10100cf6], bl
call fcn.10084d5f
push 0x10100ae0
call fcn.1008493a
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, 0x10100ce8
xor ecx, ebp
pop ebx
call fcn.10084864
mov esp, ebp
pop ebp
ret

Function at 0x1001ad80
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0x13], 0
je 0x1001adaa
movups xmm0, xmmword [ecx]
mov eax, 0x10
movaps xmm1, xmmword [0x100e64a0]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
nop dword [eax]
xor byte [eax + ecx], 0x2e
inc eax
cmp eax, 0x14
jb 0x1001ada0
mov eax, ecx
ret

Function at 0x1001ade0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0xa], 0
je 0x1001adf2
xor eax, eax
xor byte [eax + ecx], 0x2e
inc eax
cmp eax, 0xb
jb 0x1001ade8
mov eax, ecx
ret
Function at 0x1001bf00
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0xb], 0
je 0x1001bf12
xor eax, eax
xor byte [eax + ecx], 0x2e
inc eax
cmp eax, 0xc
jb 0x1001bf08
mov eax, ecx
ret
Function at 0x1001d280
Capabilities:
Encode data using xor
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100ef0f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100f29c4]
push ebx
push esi
mov dword [ebp - 0x14], 0x5d010000
mov bl, 0x2e
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10100e78]
mov dword [ebp - 0x10], 0x5e5b5a4b
mov dword [ebp - 0xc], 0x47404700
cmp eax, dword [esi + 4]
jle 0x1001d30d
push 0x10100e78
call fcn.10084984
add esp, 4
cmp dword [0x10100e78], 0xffffffff
jne 0x1001d30d
movq xmm0, qword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
push 0x100c33a0
movq qword [0x10100e2c], xmm0
mov dword [0x10100e34], eax
mov byte [0x10100e38], bl
call fcn.10084d5f
push 0x10100e78
call fcn.1008493a
add esp, 8
cmp byte [0x10100e38], 0
je 0x1001d32c
xor eax, eax
nop dword [eax + eax]
xor byte [eax + 0x10100e2c], bl
inc eax
cmp eax, 0xd
jb 0x1001d320
mov eax, dword [0x10100e3c]
mov word [ebp - 8], 0x4b43
cmp eax, dword [esi + 4]
jle 0x1001d38a
push 0x10100e3c
call fcn.10084984
add esp, 4
cmp dword [0x10100e3c], 0xffffffff
jne 0x1001d38a
movaps xmm0, xmmword [0x100e6640]
mov ax, word [ebp - 8]
push 0x100c33c0
movups xmmword [0x10100e80], xmm0
mov word [0x10100e90], ax
mov byte [0x10100e92], bl
call fcn.10084d5f
push 0x10100e3c
call fcn.1008493a
add esp, 8
cmp byte [0x10100e92], 0
je 0x1001d3bd
movups xmm0, xmmword [0x10100e80]
mov eax, 0x10
movaps xmm1, xmmword [0x100e64a0]
pxor xmm1, xmm0
movups xmmword [0x10100e80], xmm1
xor byte [eax + 0x10100e80], bl
inc eax
cmp eax, 0x13
jb 0x1001d3b1
mov eax, dword [0x10100e1c]
cmp eax, dword [esi + 4]
pop esi
mov dword [ebp - 0x14], 0x5e611d6f
mov dword [ebp - 0x10], 0x4041475a
mov dword [ebp - 0xc], 0x2e566b5d
pop ebx
jle 0x1001d423
push 0x10100e1c
call fcn.10084984
add esp, 4
cmp dword [0x10100e1c], 0xffffffff
jne 0x1001d423
movq xmm0, qword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
push 0x100c33e0
movq qword [0x10100e44], xmm0
mov dword [0x10100e4c], eax
call fcn.10084d5f
push 0x10100e1c
call fcn.1008493a
add esp, 8
cmp byte [0x10100e4f], 0
je 0x1001d43d
xor eax, eax
nop
xor byte [eax + 0x10100e44], 0x2e
inc eax
cmp eax, 0xc
jb 0x1001d430
push 0x10100e2c
push 0
push 0x10100e80
push 0x10100e44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10084864
mov esp, ebp
pop ebp
ret

Function at 0x1001d4f0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0xc], 0
je 0x1001d502
xor eax, eax
xor byte [eax + ecx], 0x2e
inc eax
cmp eax, 0xd
jb 0x1001d4f8
mov eax, ecx
ret
Function at 0x1001dbb0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x400
push 0
push 0x100f3430
call fcn.1009c590
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
nop
xor eax, eax
test cl, 1
je 0x1001dbdb
bts eax, 7
shr ecx, 1
test cl, 1
je 0x1001dbe6
bts eax, 6
shr ecx, 1
test cl, 1
je 0x1001dbf1
bts eax, 5
shr ecx, 1
test cl, 1
je 0x1001dbfc
bts eax, 4
shr ecx, 1
test cl, 1
je 0x1001dc07
bts eax, 3
shr ecx, 1
test cl, 1
je 0x1001dc12
bts eax, 2
shr ecx, 1
test cl, 1
je 0x1001dc1d
bts eax, 1
test cl, 2
je 0x1001dc26
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
xor edx, edx
lea ecx, [edx + 1]
nop dword [eax]
test bl, 1
je 0x1001dcbf
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x1001dcb0
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x100f3430], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x1001dbd0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001dcf0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x100ef0f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x100e5fc8
push eax
or ebx, 0xffffffff
call fcn.100a23fe
add esp, 8
mov dword [ebp - 0x408], eax
test eax, eax
jne 0x1001dd36
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10084864
mov esp, ebp
pop ebp
ret 4
push esi
push edi
nop dword [eax + eax]
push eax
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.100a26f6
mov edi, eax
lea esi, [ebp - 0x404]
add esp, 0x10
mov edx, edi
test edi, edi
je 0x1001dd8d
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x100f3430]
sub edx, 1
jne 0x1001dd65
mov eax, dword [ebp - 0x408]
cmp edi, 0x400
je 0x1001dd40
push dword [ebp - 0x408]
call fcn.100a248c
mov ecx, dword [ebp - 4]
add esp, 4
not ebx
xor ecx, ebp
mov eax, ebx
pop edi
pop esi
pop ebx
call fcn.10084864
mov esp, ebp
pop ebp
ret 4
Function at 0x1001e4a0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x100ef0f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov dword [ebp - 0x650], ebx
cmp ebx, 0xffffffff
je 0x1001e5da
lea eax, [ebp - 0x640]
mov dword [ebp - 0x640], pe_nt_image_headers32
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
nop
push dword [ebp - 0x638]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x644], eax
test eax, eax
je 0x1001e5c4
xor esi, esi
mov edi, 0x100efb8c
mov dword [ebp - 0x648], esi
xor ebx, ebx
lea ecx, [ebp - 0x64c]
push ecx
push 8
lea ecx, [ebp - 0xc]
push ecx
push dword [edi - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1001e594
cmp dword [ebp - 0x64c], 8
jne 0x1001e594
lea edx, [ebp - 0xc]
mov eax, edi
mov esi, 4
nop
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x1001e565
add edx, 4
add eax, 4
sub esi, 4
jae 0x1001e550
xor eax, eax
jmp 0x1001e58a
cmp cl, byte [eax]
jne 0x1001e585
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x1001e585
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x1001e585
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
jne 0x1001e585
xor eax, eax
jmp 0x1001e58a
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001e5f0
mov esi, dword [ebp - 0x648]
mov eax, dword [ebp - 0x644]
inc esi
add ebx, 0xc
mov dword [ebp - 0x648], esi
add edi, 0xc
cmp ebx, 0x750
jb 0x1001e520
mov esi, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ebx, dword [ebp - 0x650]
lea eax, [ebp - 0x640]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1001e4f0
push ebx
call esi
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10084864
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x644]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
mov eax, dword [ebp - 0x648]
push eax
lea eax, [eax + eax*2]
push dword [eax*4 + 0x100efb88]
lea eax, [ebp - 0x118]
push eax
call fcn.1001e670
mov ecx, eax
call fcn.1001d4f0
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.1001e830
add esp, 0x14
call fcn.1001e710
mov ecx, eax
call fcn.1001ae00
mov edx, eax
lea ecx, [ebp - 0x518]
call fcn.1002d740
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1001e850
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100ef0f8]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001e8a0
mov ecx, eax
call fcn.1001ad60
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10002b80
add esp, 0x10
call fcn.1001e910
mov ecx, eax
call fcn.1001af10
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.1002d740
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1001ea50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100ef0f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100f29c4]
push ebx
mov dword [ebp - 0x10], 0x5d41426d
mov bl, 0x2e
mov dword [ebp - 0xc], 0x4f426d4b
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10100f58]
mov word [ebp - 8], 0x5d5d
cmp eax, dword [ecx + 4]
jle 0x1001eadd
push 0x10100f58
call fcn.10084984
add esp, 4
cmp dword [0x10100f58], 0xffffffff
jne 0x1001eadd
movq xmm0, qword [ebp - 0x10]
mov ax, word [ebp - 8]
push 0x100c3510
movq qword [0x10100f3c], xmm0
mov word [0x10100f44], ax
mov byte [0x10100f46], bl
call fcn.10084d5f
push 0x10100f58
call fcn.1008493a
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, 0x10100f3c
xor ecx, ebp
pop ebx
call fcn.10084864
mov esp, ebp
pop ebp
ret

Function at 0x1001f420
Capabilities:
Create thread
Terminate process

Disassembly:
push 0
push 0
push 0
push fcn.1001f410
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10020090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x10020176
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x10020165
jg 0x100200d0
test edx, edx
je 0x10020165
nop dword [eax]
call fcn.100216d0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10020124
jg 0x100200e7
test esi, esi
je 0x10020124
cmp ebx, eax
jg 0x100200f7
jl 0x100200f1
cmp edi, esi
jae 0x100200f7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.1009c010
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x10020149
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x1002015f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x100200d0
jl 0x1002015f
test edi, edi
jne 0x100200d0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 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 + 0x10], eax
test eax, eax
je 0x10020198
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x1002019a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x10020218
jg 0x100201ad
test esi, esi
je 0x10020218
test eax, eax
jl 0x100201fc
jg 0x100201b7
test ebx, ebx
je 0x100201fc
cmp edi, eax
jg 0x100201c7
jl 0x100201c1
cmp esi, ebx
jae 0x100201c7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.1009c010
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x10020218
jg 0x100201ff
test esi, esi
je 0x10020218
jmp 0x100201ff
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x10020218
push eax
push esi
push 1
push edx
call fcn.100a31ac
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 0x10020760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100ef0f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10020790
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10084864
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100207cc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x100207cc
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.10084864
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100208b3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100207f4
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 0x10020827
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100a285a
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.10084864
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], 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 - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x100208b3
cmp eax, 1
jle 0x10020886
cmp eax, 3
jne 0x100208b3
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.100a285a
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.10084864
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100208a3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100a31ac
add esp, 0x10
cmp edi, eax
jne 0x100208b3
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x100207b7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10084864
mov esp, ebp
pop ebp
ret 4
Function at 0x10021350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100ef0f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1002140a
cmp byte [esi + 0x3d], 0
je 0x1002140a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100213f8
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 0x100213c0
sub eax, 1
je 0x100213c4
sub eax, 2
jne 0x100213f8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10084864
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100213e1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100a31ac
add esp, 0x10
cmp edi, eax
jne 0x100213f8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10084864
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10084864
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10084864
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c17e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100ef0f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10084d74
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10082f07
mov dword [esi + 4], eax
lea ebx, [edi + 4]
mov eax, dword [ebp - 0x10]
lea edx, [edi + 8]
mov dword [ebp - 0x14], ebx
lea ecx, [eax + 0x18]
mov ebx, dword [ebp - 0x10]
add esp, 8
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x34], esi
add edi, 0x14
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea esi, [eax + 0x24]
mov byte [ebx + 0x48], 0
add eax, 0x28
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [edx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x2c], esi
mov ebx, dword [ebp - 0x14]
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [ecx], 0
mov ecx, dword [0x10100f68]
mov dword [eax], 0
mov eax, dword [0x10100f64]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x4c], 0
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret