joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000aa20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x580
mov eax, dword [0x10038654]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x570], eax
mov dword [ebp - 0x574], ecx
call edi
mov esi, eax
lea edx, [esi + 1]
push edx
call fcn.1001721c
mov ecx, dword [ebp - 0x570]
add esp, 4
mov dword [ebp - 0x56c], eax
mov dword [eax], ebx
lea eax, [ebp - 0x350]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1000abcf
test byte [ebp - 0x350], 0x10
jne 0x1000abcf
mov edx, dword [ebp - 0x56c]
push edx
push esi
call edi
test eax, eax
je 0x1000abbc
mov edi, dword [ebp - 0x56c]
cmp byte [edi], bl
je 0x1000abbc
push 0x10033d44
push edi
call fcn.10018ee6
add esp, 8
test eax, eax
je 0x1000abb1
push 0x10033d48
push edi
call fcn.10018ee6
add esp, 8
test eax, eax
je 0x1000abb1
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x578]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x1000abb1
mov ecx, dword [ebp - 0x578]
cmp ecx, dword [ebp - 0x334]
jne 0x1000abb1
push edi
lea edx, [ebp - 0x568]
push 4
push edx
mov dword [ebp - 0x568], ebx
call fcn.10019428
lea eax, [ebp - 0x568]
add esp, 0xc
lea edx, [eax + 1]
jmp 0x1000ab30
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000ab30
sub eax, edx
push 0x10033d4c
mov byte [ebp + eax - 0x569], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x1000abb1
push 0x208
lea eax, [ebp - 0x560]
push ebx
push eax
mov dword [ebp - 0x580], ebx
mov dword [ebp - 0x57c], ebx
mov dword [ebp - 0x564], ebx
call fcn.1001caf0
add esp, 0xc
push str.ZwQueryInformationFile
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1000abaa
push 9
push 0x20c
lea ecx, [ebp - 0x564]
push ecx
mov ecx, dword [ebp - 0x570]
lea edx, [ebp - 0x580]
push edx
push ecx
call eax
test eax, eax
je 0x1000abe4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add edi, 4
cmp byte [edi], bl
jne 0x1000aab0
mov eax, dword [ebp - 0x56c]
cmp eax, ebx
je 0x1000abcf
push eax
call fcn.10018bf7
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100180fb
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x564]
push 0x30c
lea ecx, [ebp - 0x31c]
shr edx, 1
xor eax, eax
push ebx
push ecx
mov word [ebp + edx*2 - 0x560], ax
call fcn.1001caf0
add esp, 0xc
push ebx
push ebx
push 0x30b
lea edx, [ebp - 0x31c]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x560]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x574]
lea ecx, [ebp - 0x31c]
push ecx
lea edx, [ebp - 0x568]
push edx
push str._s_s
push 0x410
push eax
call fcn.10018f2d
mov ecx, dword [ebp - 8]
add esp, 0x14
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.100180fb
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c6a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002eaab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10038654]
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.100178af
push 4
mov dword [ebp - 4], 0
call fcn.10018832
mov edi, eax
add esp, 4
test edi, edi
je 0x1000c71c
call fcn.10017787
mov dword [edi], eax
call fcn.10017546
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.10017870
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x1000c712
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.10017898
jmp 0x1000c71e
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
Function at 0x1000f070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
xor ebx, ebx
xor edi, edi
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x1000f281
cmp dword [esi + 0x6af90], 3
jb 0x1000f0e7
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebx, ebx
je 0x1000f124
mov edx, dword [esi + 0x6af84]
sub edx, ebx
cmp edx, 0x7efa
ja 0x1000f124
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x1000f10f
mov dword [esi + 0x6afa0], eax
mov eax, ebx
call fcn.1000ed90
mov edi, eax
mov eax, dword [esi + 0x6af90]
cmp edi, eax
jbe 0x1000f124
mov edi, eax
mov eax, dword [esi + 0x6af84]
push esi
cmp edi, 3
jb 0x1000f205
sub eax, dword [esi + 0x6af88]
lea edx, [edi - 3]
call fcn.1000e590
sub dword [esi + 0x6af90], edi
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af90]
cmp edi, dword [esi + 0x6af98]
ja 0x1000f1ce
cmp eax, 3
jb 0x1000f1ce
mov eax, 1
sub edi, eax
jmp 0x1000f170
add dword [esi + 0x6af84], eax
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov ebx, dword [esi + 0x6af7c]
shl ebx, 5
xor ecx, ebx
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub edi, eax
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov edx, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], edx
jne 0x1000f170
add dword [esi + 0x6af84], eax
jmp 0x1000f226
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor edi, edi
and edx, 0x7fff
mov dword [esi + 0x6af7c], edx
jmp 0x1000f226
movzx edx, byte [eax + esi + 0x1af70]
xor eax, eax
call fcn.1000e590
dec dword [esi + 0x6af90]
add esp, 4
inc dword [esi + 0x6af84]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000f263
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x1000f23f
lea ecx, [eax + esi + 0x1af70]
jmp 0x1000f241
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
sub edx, eax
push 0
push edx
push ecx
mov eax, esi
call fcn.1000e390
mov eax, dword [esi + 0x6af84]
add esp, 0xc
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x1000f274
call fcn.1000ef30
cmp dword [esi + 0x6af90], 0
jne 0x1000f093
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x1000f294
lea ecx, [eax + esi + 0x1af70]
jmp 0x1000f296
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
sub edx, eax
push 1
push edx
push ecx
mov eax, esi
call fcn.1000e390
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ff70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x1000ff7e
xor eax, eax
pop ebp
ret
push esi
not eax
cmp edx, 8
jb 0x1001004d
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10033730]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10033730]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10033730]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10033730]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10033730]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10033730]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10033730]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10033730]
add ecx, 8
sub edx, 8
dec esi
jne 0x1000ff90
pop edi
test edx, edx
je 0x1001006a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x10033730]
inc ecx
dec edx
jne 0x10010051
not eax
pop esi
pop ebp
ret

Function at 0x10010070
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x10033730]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x10033730]
mov dword [edx + 8], ecx
ret
Function at 0x10010510
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x100105fb
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x10010547
cmp dword [esi + 0x40], edi
jae 0x10010547
push eax
call fcn.10018bf7
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x1001055f
lea eax, [edi + edi]
push eax
call fcn.1001721c
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.1001add0
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x100105f8
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x10033730]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10033730]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x10010577
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x1001063a
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x1001061f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.1001add0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1001065c
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10010a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x84]
push ebx
mov ebx, dword [ebp + 8]
push edi
test ecx, ecx
je 0x10010a98
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x10010ada
sub edi, eax
cmp edi, edx
jbe 0x10010a6a
mov edi, edx
push edi
add eax, ecx
push eax
push ebx
call fcn.1001add0
mov eax, dword [esi + 0x78]
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
push eax
mov edx, edi
mov ecx, ebx
call fcn.1000ff70
add esp, 0x10
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x10010ad3
push 0
lea ecx, [ebp + 8]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10010ada
mov edx, dword [esi + 0x78]
mov edi, dword [ebp + 8]
add dword [esi + 0x74], edi
push edx
mov edx, edi
mov ecx, ebx
call fcn.1000ff70
add esp, 4
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret 4
mov dword [esi + 0x14], 0x1000000
pop edi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x10011c10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
jne 0x10011c47
cmp dword [0x10039c0c], eax
je 0x10011c47
cmp dword [0x1003aec4], eax
jne 0x10011c47
push eax
push eax
push eax
push 0x10011af0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1003aec4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10011c50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push 0xff
push str.127.0.0.1
call fcn.100189a4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add esp, 0xc
push 0
push 0
push 0
push 0x10011af0
push 0
push 0
mov dword [0x10039c04], ecx
mov dword [0x10039c08], edx
mov dword [0x10039c0c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1003aec4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
pop ebp
ret

Function at 0x10011cc0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x10011af0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
ret
Function at 0x10012770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea ecx, [ebp - 4]
mov esi, eax
mov dword [ebp - 4], 0
call fcn.10012240
mov ecx, dword [esi + 4]
mov ebx, eax
mov eax, dword [esi + 8]
mov dword [ebp - 8], ebx
mov edi, ebx
cmp eax, 4
jb 0x100127b4
lea esp, [esp]
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x100127e4
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x100127a0
test eax, eax
je 0x10012862
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x100127e4
cmp eax, 1
jbe 0x10012862
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x100127e4
cmp eax, 2
jbe 0x10012862
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
je 0x10012862
mov edi, dword [ebp - 4]
xor eax, eax
test edi, edi
jle 0x100127fa
lea ecx, [ecx]
mov cl, byte [esi]
xor byte [eax + ebx], cl
inc eax
cmp eax, edi
jl 0x100127f0
mov eax, dword [esi + 8]
test eax, eax
jle 0x1001285e
add eax, edi
push eax
call fcn.1001721c
mov edx, dword [esi + 8]
add esp, 4
mov ebx, eax
mov eax, dword [esi + 4]
push edx
push eax
push ebx
call fcn.1001add0
mov ecx, dword [ebp - 8]
mov edx, dword [esi + 8]
add esp, 0xc
push edi
push ecx
add edx, ebx
push edx
call fcn.1001add0
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 8]
add esp, 0xc
add ecx, edi
push ebx
call fcn.10012520
push ebx
call fcn.10018bf7
mov ebx, dword [ebp - 8]
add esp, 4
push ebx
call fcn.10018bf7
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
jmp 0x100128c3
push 0x10034130
call fcn.10016500
add esp, 4
mov esi, eax
push 0xa
mov ecx, esi
call fcn.10012c10
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x1001289f
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x1001289f
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x100128c0
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x100128b8
or eax, 4
push 0
push eax
call fcn.10005a70
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
push ebx
call fcn.10012520
push ebx
call fcn.10018bf7
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100128e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea ecx, [ebp - 4]
mov edi, eax
mov dword [ebp - 4], 0
call fcn.10012240
mov ebx, eax
mov eax, dword [edi + 8]
test eax, eax
jne 0x10012920
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x1001291a
lea ebx, [ebx]
mov dl, byte [edi]
xor byte [eax + ebx], dl
inc eax
cmp eax, ecx
jl 0x10012910
push ebx
jmp 0x10012a04
mov ecx, dword [edi + 4]
mov esi, ebx
cmp eax, 4
jb 0x10012944
lea ebx, [ebx]
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x10012970
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x10012930
test eax, eax
je 0x100129e0
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x10012970
cmp eax, 1
jbe 0x100129e0
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x10012970
cmp eax, 2
jbe 0x100129e0
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x100129e0
push 0x10034148
call fcn.10016500
add esp, 4
mov esi, eax
push 0xa
mov ecx, esi
call fcn.10012c10
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x100129ad
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x100129ad
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x10012a0c
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x100129c6
or eax, 4
push 0
push eax
call fcn.10005a70
push ebx
call fcn.10018bf7
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 8]
mov edx, dword [ebp - 4]
sub edx, eax
lea esi, [eax + ebx]
xor eax, eax
test edx, edx
jle 0x100129fb
mov cl, byte [edi]
xor byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x100129f1
mov edi, dword [edi + 8]
mov ecx, dword [ebp - 4]
sub ecx, edi
push esi
mov edx, dword [ebp + 8]
call fcn.10012520
push ebx
call fcn.10018bf7
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100133d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f327
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10038654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x10034188
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.10005bb0
lea esi, [ebx + 0x10]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.10016060
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x10013469
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.10005a70
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov ecx, esi
mov dword [ebx + edx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.10015340
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x1003aeec]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
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 4
Function at 0x10013dd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f2d7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10038654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x10034198
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.10005bb0
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.10016060
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x10013e63
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.10005a70
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.10015340
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x1003aeec]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
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 4