joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ac43
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1016a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x220], 0
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x21c]
push eax
push ebx
mov dword [ebp - 0x238], edi
call fcn.0100926a
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x21c]
push eax
push ebx
call fcn.0100927e
mov esi, 0x800
push esi
mov dword [ebp - 0x230], eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x224], eax
test eax, eax
jne 0x100acf2
push dword [ebp - 0x234]
push dword [ebp - 0x230]
push dword [ebp - 0x22c]
push 0x1001a84
push 0x1003654
push edi
call fcn.01009022
add esp, 0x18
xor eax, eax
jmp 0x100adb7
push edi
push dword [ebp - 0x228]
push ebx
call fcn.010092d5
test eax, eax
je 0x100ae10
push edi
push ebx
call fcn.01009257
mov dword [ebp - 0x220], eax
test eax, eax
je 0x100ae10
push eax
call dword [sym.imp.msvcrt.dll_feof]
pop ecx
test eax, eax
jne 0x100ada0
mov edi, dword [sym.imp.msvcrt.dll_ferror]
push dword [ebp - 0x220]
push esi
push 1
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_fread]
push dword [ebp - 0x220]
mov dword [ebp - 0x228], eax
call edi
add esp, 0x14
test eax, eax
jne 0x100adc8
cmp dword [ebp - 0x228], eax
jle 0x100ad89
push dword [ebp - 0x23c]
push dword [ebp - 0x228]
push 1
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_fwrite]
push dword [ebp - 0x23c]
call edi
add esp, 0x14
test eax, eax
jne 0x100ade6
push dword [ebp - 0x220]
call dword [sym.imp.msvcrt.dll_feof]
pop ecx
test eax, eax
je 0x100ad2e
mov edi, dword [ebp - 0x238]
push edi
push ebx
call fcn.01009292
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_free]
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100dc5b
leave
ret 0x14
push dword [ebp - 0x234]
push dword [ebp - 0x230]
push dword [ebp - 0x22c]
push 0x1001a84
push 0x1003634
jmp 0x100ae02
push dword [ebp - 0x234]
push dword [ebp - 0x230]
push dword [ebp - 0x22c]
push 0x1001a84
push 0x1003610
push dword [ebp - 0x238]
call fcn.01009022
add esp, 0x18
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp - 0x220], 0
pop ecx
je 0x100aceb
push dword [ebp - 0x220]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
jmp 0x100aceb
Function at 0x100cdb3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov eax, 0x400
sub esp, 0xc
cmp dword [ebp + 0x10], eax
jg 0x100cdca
mov edx, eax
mov ecx, 0x4000
cmp edx, ecx
jge 0x100cddd
cmp dword [ebp + 0x10], eax
jg 0x100cde0
mov dword [ebp + 0x10], eax
jmp 0x100cde0
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
sub eax, edi
je 0x100ce1b
dec eax
je 0x100ce0f
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x1001900
push 0x1003aec
push dword [ebp + 0x14]
call fcn.01009022
add esp, 0x14
xor eax, eax
jmp 0x100cf51
mov eax, 0x8102
mov ecx, 0x180
jmp 0x100ce22
mov eax, 0x8000
xor ecx, ecx
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__open]
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x100ce52
push dword [ebp + 8]
push 0x10018a0
push 0x1003ad4
push dword [ebp + 0x14]
call fcn.01009022
add esp, 0x10
jmp 0x100ce08
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_malloc]
push esi
push 0x428
call ebx
mov esi, eax
pop ecx
cmp esi, edi
jne 0x100ce85
push dword [ebp + 8]
push 0x10018a0
push 0x1003ab4
push dword [ebp + 0x14]
call fcn.01009022
add esp, 0x10
jmp 0x100cf92
push dword [ebp + 0x10]
call ebx
mov ebx, eax
pop ecx
mov dword [esi + 0xc], ebx
cmp ebx, edi
jne 0x100ceb8
push esi
call dword [sym.imp.msvcrt.dll_free]
push dword [ebp + 8]
push 0x10018a0
push 0x1003ab4
push dword [ebp + 0x14]
call fcn.01009022
add esp, 0x14
jmp 0x100cf92
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__strdup]
pop ecx
mov dword [ebp - 0xc], eax
mov dword [esi], eax
cmp eax, edi
jne 0x100cef4
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_free]
call ebx
push esi
call ebx
push dword [ebp + 8]
push 0x10018a0
push 0x1003ab4
push dword [ebp + 0x14]
call fcn.01009022
add esp, 0x18
jmp 0x100cf92
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [esi + 8], ecx
xor ecx, ecx
cmp dword [ebp + 0xc], edi
mov dword [esi + 4], eax
sete cl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], ecx
cmp dword [ebp + 0xc], edi
jne 0x100cf4d
push 3
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, 3
jne 0x100cf56
cmp byte [ebp - 4], 0xef
jne 0x100cf56
cmp byte [ebp - 3], 0xbb
jne 0x100cf56
cmp byte [ebp - 2], 0xbf
jne 0x100cf56
mov dword [esi + 0x24], 1
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret 0x10
push edi
push edi
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100cf4d
push dword [ebp - 0xc]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push ebx
call edi
push esi
call edi
push dword [ebp + 8]
push 0x10018a0
push 0x1003ad4
push dword [ebp + 0x14]
call fcn.01009022
add esp, 0x1c
xor eax, eax
jmp 0x100cf4f
Function at 0x100cf9b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x20], 0
push edi
mov edi, dword [ebp + 0xc]
jne 0x100cfcc
push dword [esi]
push 0x10018a0
push 0x1003b10
push dword [ebp + 0x14]
call fcn.01009022
add esp, 0x10
xor eax, eax
jmp 0x100d081
cmp dword [ebp + 0x10], 0
push ebx
jle 0x100d07e
xor ebx, ebx
inc ebx
jmp 0x100d001
mov ecx, dword [esi + 0x10]
mov al, byte [ecx]
cmp al, 0xa
je 0x100d063
cmp al, 0xd
je 0x100cffd
cmp al, 0x1a
je 0x100d043
cmp dword [ebp + 0x10], ebx
jle 0x100d03e
dec dword [ebp + 0x10]
mov byte [edi], al
inc edi
inc dword [esi + 0x10]
jmp 0x100d001
inc ecx
mov dword [esi + 0x10], ecx
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
jbe 0x100cfdc
cmp dword [esi + 0x18], 0
jne 0x100d06b
push dword [esi + 8]
push dword [esi + 0xc]
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, dword [esi + 8]
je 0x100d029
mov dword [esi + 0x18], ebx
cmp dword [ebp + 0x10], 0
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax - 1]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jg 0x100d001
jmp 0x100d07e
mov byte [edi], 0
jmp 0x100d07e
mov eax, dword [esi + 0xc]
and dword [esi + 0x14], 0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], eax
mov byte [edi], 0
cmp edi, dword [ebp + 0xc]
ja 0x100d05b
mov dword [esi + 0x1c], ebx
inc edi
mov eax, edi
sub eax, dword [ebp + 0xc]
jmp 0x100d080
inc dword [esi + 0x10]
mov byte [edi], 0
jmp 0x100d073
mov byte [edi], 0
cmp edi, dword [ebp + 0xc]
jbe 0x100d07b
mov eax, edi
sub eax, dword [ebp + 0xc]
inc eax
jmp 0x100d080
mov dword [esi + 0x1c], ebx
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x100dc40
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1015208
call fcn.0100de24
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1017208
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100da55
cmp eax, esi
jne 0x100da48
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100da58
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100da2f
xor esi, esi
inc esi
mov eax, dword [0x1017204]
cmp eax, esi
jne 0x100da6b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100daa6
mov eax, dword [0x1017204]
test eax, eax
jne 0x100daa0
mov dword [0x1017204], esi
push 0x1001194
push 0x1001188
call fcn.0100d9ac
pop ecx
pop ecx
test eax, eax
je 0x100daa6
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100db70
mov dword [0x1016ecc], esi
mov eax, dword [0x1017204]
cmp eax, esi
jne 0x100daca
push 0x1001184
push 0x100117c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1017204], 2
cmp dword [ebp - 0x1c], ebx
jne 0x100dad7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x101720c], ebx
je 0x100daf8
push 0x101720c
call fcn.0100dd99
pop ecx
test eax, eax
je 0x100daf8
push ebx
push 2
push ebx
call dword [0x101720c]
push dword [0x1016eb4]
push dword [0x1016eb8]
push dword [0x1016eb0]
call fcn.01008de6
add esp, 0xc
mov dword [0x1016ec8], eax
cmp dword [0x1016ebc], ebx
jne 0x100db56
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1016ecc], ebx
jne 0x100db64
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1016ec8]
call fcn.0100de69
ret
call fcn.0100df71
jmp 0x100da0d

Function at 0x1010882
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x10108c3
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x101089c
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x10108e1
dec esi
je 0x10108d8
dec esi
jne 0x10108e6
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1011dd6
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
and dword [ebx + 0x28], 0
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 4], eax
xor eax, eax
cmp byte [ebp + 0x24], 0
mov word [ebx + 0xc], ax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x24], ecx
mov esi, 0x8000
jne 0x1011e26
push esi
push eax
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
and dword [ebx + 0x30], eax
mov word [ebx + 0x2c], ax
call fcn.0101180d
and dword [ebx + 0x20], 0
mov eax, esi
push 2
mov word [ebx + 0x3c], ax
mov eax, dword [ebx + 0x14]
pop ecx
mov dword [ebx + 0x34], esi
add eax, esi
push edi
movzx edi, byte [eax]
mov edx, dword [ebx + 0x20]
shl edx, 5
xor edx, edi
and edx, 0x7fff
inc eax
dec ecx
mov dword [ebx + 0x20], edx
jne 0x1011e4a
cmp byte [ebp + 0x24], cl
je 0x1011e70
mov edi, ebx
call fcn.0101164e
jmp 0x1011e82
xor eax, eax
mov ecx, esi
mov edx, dword [ebx + 0x18]
xor edi, edi
mov word [eax + edx], di
inc eax
inc eax
dec ecx
jne 0x1011e74
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.01010a0e
push 0x4b
pop edx
call fcn.01010a0e
call fcn.01011b53
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
pop edi
je 0x1011ec1
mov eax, dword [ebx + 0x14]
push esi
lea ecx, [eax + 0x8000]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x28]
neg eax
sbb eax, eax
pop esi
and eax, 3
pop ebx
pop ebp
ret 0x24
Function at 0x1014434
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc9c
mov eax, dword [0x1016a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc88], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0xc8c], eax
mov eax, dword [esi + 0x870]
add eax, 0x20
mov ecx, eax
shl ecx, 3
mov dword [ebp - 0xc9c], ecx
cmp ecx, 0x320
jb 0x1014481
xor eax, eax
jmp 0x1014663
push ebx
push edi
mov edi, eax
shl edi, 4
push edi
lea eax, [ebp - 0xc84]
push 0
push eax
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x644]
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 0x18]
add esp, 0x18
test ecx, ecx
jbe 0x10145e0
mov eax, dword [ebp + 0x14]
mov ebx, dword [esi + 0x34]
mov edi, dword [esi + 0x30]
shl eax, 2
mov dword [ebp - 0xc90], eax
mov eax, dword [ebp + 0x10]
shl eax, 2
mov dword [ebp - 0xc94], eax
mov dword [ebp - 0xc98], ecx
jmp 0x10144e0
mov eax, dword [ebp - 0xc94]
mov ecx, dword [ebp - 0xc88]
and ecx, 7
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0xc88]
shr ecx, 3
mov cl, byte [ecx + ebx]
test cl, dl
jne 0x101450a
mov eax, dword [ebp - 0xc88]
movzx eax, byte [edi + eax]
jmp 0x101454e
mov ecx, dword [ebp - 0xc88]
cmp byte [edi + ecx], 7
mov ecx, dword [esi + 0x2c]
push dword [ecx + eax]
push esi
jae 0x1014538
call fcn.010126be
mov ecx, dword [ebp - 0xc88]
movzx ecx, byte [edi + ecx]
movzx eax, al
lea eax, [ecx + eax*8 + 0x100]
jmp 0x1014547
call fcn.010126be
movzx eax, al
lea eax, [eax*8 + 0x107]
add dword [ebp - 0xc94], 4
inc dword [ebp - 0xc88]
lea eax, [ebp + eax*2 - 0xc84]
inc word [eax]
mov eax, dword [ebp - 0xc8c]
xor edx, edx
mov ecx, eax
and ecx, 7
inc edx
shl edx, cl
mov ecx, eax
shr ecx, 3
mov cl, byte [ecx + ebx]
test cl, dl
jne 0x1014580
movzx eax, byte [edi + eax]
jmp 0x10145c4
cmp byte [edi + eax], 7
mov ecx, dword [ebp - 0xc90]
mov eax, dword [esi + 0x2c]
push dword [eax + ecx]
push esi
jae 0x10145ae
call fcn.010126be
mov ecx, dword [ebp - 0xc8c]
movzx ecx, byte [edi + ecx]
movzx eax, al
lea eax, [ecx + eax*8 + 0x100]
jmp 0x10145bd
call fcn.010126be
movzx eax, al
lea eax, [eax*8 + 0x107]
add dword [ebp - 0xc90], 4
inc dword [ebp - 0xc8c]
lea eax, [ebp + eax*2 - 0x644]
inc word [eax]
dec dword [ebp - 0xc98]
jne 0x10144da
xor esi, esi
xor ebx, ebx
cmp dword [ebp - 0xc9c], esi
jbe 0x101465f
mov edi, 0x100
movzx eax, word [ebp + esi*2 - 0xc84]
mov ecx, edi
cmp ax, cx
movzx eax, ax
jae 0x101460c
movzx eax, byte [eax + 0x1003f30]
jmp 0x1014619
shr eax, 8
movzx eax, byte [eax + 0x1003f30]
add eax, 8
movzx ecx, word [ebp + esi*2 - 0x644]
mov edx, edi
cmp cx, dx
movzx ecx, cx
jae 0x1014634
movzx ecx, byte [ecx + 0x1003f30]
jmp 0x1014641
shr ecx, 8
movzx ecx, byte [ecx + 0x1003f30]
add ecx, 8
mov eax, dword [eax*4 + 0x1003ee8]
sub eax, dword [ecx*4 + 0x1003ee8]
cdq
xor eax, edx
sub eax, edx
add ebx, eax
inc esi
cmp esi, dword [ebp - 0xc9c]
jb 0x10145f1
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100dc5b
leave
ret 0x14
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1e5d3a7a
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..text_1
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x40e9244c
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x100067f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100da2a3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1010e07c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100b1cb2
mov dword [ebp - 4], 0
push 4
call fcn.100b3d5d
mov edi, eax
add esp, 4
test edi, edi
je 0x10006878
call fcn.100b1976
mov dword [edi], eax
call fcn.100b1735
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.100b166a
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x1000686a
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100b1692
jmp 0x1000687a
xor edi, edi
mov dword [esi + 0x38], 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
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 dword [ebp - 4], 0xffffffff
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
Function at 0x100068f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100da2a3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1010e07c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.100b1cb2
mov dword [ebp - 4], 0
push 4
call fcn.100b3d5d
mov edi, eax
add esp, 4
test edi, edi
je 0x10006978
call fcn.100b1976
mov dword [edi], eax
call fcn.100b1735
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.100b166a
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x1000696a
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100b1692
jmp 0x1000697a
xor edi, edi
mov dword [esi + 0x38], 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
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 dword [ebp - 4], 0xffffffff
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
Function at 0x1000c2d0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dd8e2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1010e07c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 8], ebx
je 0x1000c32d
lea eax, [edi + 0x68]
mov dword [edi], 0x100eb16c
mov dword [ebp + 8], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [ebp - 4], ebx
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov eax, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov edx, dword [edi]
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov esi, dword [edx + 4]
add esi, edi
mov ecx, esi
call fcn.100020a0
lea eax, [edi + 0x10]
push 0x20
mov ecx, esi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
call fcn.10006f40
mov byte [esi + 0x40], al
cmp dword [esi + 0x38], ebx
jne 0x1000c379
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push ebx
push eax
mov ecx, esi
call fcn.10001f30
mov dword [ebp - 4], 4
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea esi, [edi + 0x10]
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov ecx, esi
mov dword [ebp + 8], esi
call fcn.100067f0
mov byte [ebp - 4], 5
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
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], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov edx, dword [0x10113618]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, edi
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
Function at 0x1000d0c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100db888
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1010e07c]
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
cmp dword [edi + 0x44], ebx
je 0x1000d1ed
cmp byte [edi + 0x49], bl
je 0x1000d1ed
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x1000d17f
mov ecx, 0xf
mov dword [ebp - 0x18], ecx
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x1000d134
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x1000d14c
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
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x1000d183
dec eax
je 0x1000d187
sub eax, 2
je 0x1000d1de
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003930
xor al, al
jmp 0x1000d1ef
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x1000d197
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x1000d1c0
cmp ebx, 0x10
jae 0x1000d1a6
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.100b4dba
add esp, 0x10
cmp esi, eax
jne 0x1000d170
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x1000d1de
test esi, esi
jne 0x1000d140
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.1000c820
jmp 0x1000d13a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003930
mov al, 1
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.100b2b2c
mov esp, ebp
pop ebp
ret