joyce8/EMBER2024-capa huggingface dataset:
Function at 0x65901d70
Capabilities:
Hash data using djb2

Disassembly:
push ebx
mov eax, dword [esp + 8]
movsx edx, byte [eax]
test edx, edx
je 0x65901da0
lea ecx, [eax + 1]
mov eax, 0x1505
lea esi, [esi]
mov ebx, eax
add ecx, 1
shl ebx, 5
add eax, ebx
add eax, edx
movsx edx, byte [ecx - 1]
test edx, edx
jne 0x65901d88
pop ebx
ret
mov eax, 0x1505
pop ebx
ret

Function at 0x65901ed0
Capabilities:
Access peb ldr_data
Hash data using djb2

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0x14]
lea ebp, [eax + 0x14]
cmp ebp, edi
je 0x65901f82
mov esi, ebp
mov ebp, dword [esp + 0x20]
lea esi, [esi]
mov ebx, dword [edi + 0x20]
cmp word [ebx], 0
je 0x65901f45
xor ecx, ecx
lea esi, [esi]
nop
add ecx, 1
cmp word [ebx + ecx*2], 0
jne 0x65901f08
mov dword [esp + 4], esi
xor edx, edx
mov dword [esp + 8], edi
mov edi, ecx
nop
movzx eax, word [ebx + edx*2]
lea ecx, [eax - 0x41]
lea esi, [eax + 0x20]
cmp cl, 0x1a
cmovb eax, esi
cbw
mov word [ebx + edx*2], ax
add edx, 1
cmp edx, edi
jl 0x65901f20
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
mov dword [esp], ebx
call fcn.65901df0
movzx edx, word [eax]
lea ecx, [eax + 2]
mov eax, 0x1505
test edx, edx
je 0x65901f74
lea esi, [esi]
mov ebx, eax
add ecx, 2
shl ebx, 5
add eax, ebx
add eax, edx
movzx edx, word [ecx - 2]
test edx, edx
jne 0x65901f60
cmp ebp, eax
je 0x65901f8c
mov edi, dword [edi]
cmp esi, edi
jne 0x65901ef8
add esp, 0xc
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0x10]
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x65901fa0
Capabilities:
Hash data using djb2
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 8
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + eax + 0x78]
add ecx, edi
mov ebp, dword [ecx + 0x18]
mov eax, dword [ecx + 0x20]
test ebp, ebp
je 0x65902015
mov dword [esp + 4], ecx
add eax, edi
xor esi, esi
mov edx, eax
lea esi, [esi]
nop
mov eax, dword [edx + esi*4]
add eax, edi
movsx ecx, byte [eax]
lea ebx, [eax + 1]
mov eax, 0x1505
test ecx, ecx
je 0x65902008
mov dword [esp], esi
lea esi, [esi]
nop
mov esi, eax
add ebx, 1
shl esi, 5
add esi, eax
lea eax, [esi + ecx]
movsx ecx, byte [ebx - 1]
test ecx, ecx
jne 0x65901ff0
mov esi, dword [esp]
cmp dword [esp + 0x20], eax
je 0x6590201f
add esi, 1
cmp esi, ebp
jne 0x65901fd0
xor eax, eax
add esp, 8
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 4]
lea eax, [edi + esi*2]
add eax, dword [ecx + 0x24]
movzx eax, word [eax]
lea eax, [edi + eax*4]
add eax, dword [ecx + 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x65902017
add esp, 8
add eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x65902210
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.65902d90
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.65902d90
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x65902270
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6593906c]
test esi, esi
jle 0x65902390
mov eax, dword [0x65939070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x659022a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x65902327
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x65902290
mov dword [esp], ebx
call fcn.65902a60
mov edi, eax
test eax, eax
je 0x659023b7
mov eax, dword [0x65939070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.65902ba0
mov edx, dword [0x65939070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x65902397
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x65902320
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x65902330
add dword [0x6593906c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x65939070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x65902320
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.65902210
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x659022ae
mov eax, dword [0x65939070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.65902210
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.65902210
lea esi, [esi]
nop
Function at 0x659026d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6593907c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x65939074]
sub esp, 4
test ebx, ebx
je 0x65902725
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6590271e
test esi, esi
je 0x6590271e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x65902700
mov dword [esp], 0x6593907c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x65902a60
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x65900000], 0x5a4d
jne 0x65902a85
mov ecx, dword [0x6590003c]
cmp dword [ecx + 0x65900000], 0x4550
lea edx, [ecx + 0x65900000]
je 0x65902a90
ret
cmp word [ecx + 0x65900018], 0x10b
jne 0x65902a85
push esi
movzx eax, word [ecx + 0x65900014]
push ebx
movzx esi, word [ecx + 0x65900006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x65900000
test si, si
je 0x65902ad8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x65902ace
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x65902ada
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x65902ac0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x100019a6
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x100276db
call fcn.10026576
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
mov ecx, edi
call fcn.1000303b
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov byte [esi + 0x30], 1
mov dword [ebp - 4], ecx
cmp byte [0x10036ee8], cl
je 0x10001a1a
cmp dword [edi + 0x14], 0x10
jb 0x100019f5
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ctor__reference_
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10001a1a
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.1000303b
pop ecx
mov eax, esi
call fcn.10026544
ret 8

Function at 0x10001a2b
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x100276db
call fcn.10026576
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
push edi
call fcn.100021f9
pop ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov byte [esi + 0x30], cl
mov dword [ebp - 4], ecx
cmp byte [0x10036ee8], cl
je 0x10001a9c
cmp dword [edi + 0x14], 0x10
jb 0x10001a76
mov edi, dword [edi]
push eax
push edi
push str.CMemMappedFile__s__ctor__new_with_size_lu_
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
cmp byte [0x10036ee8], 0
je 0x10001a9c
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, esi
call fcn.10002e0d
mov eax, esi
call fcn.10026544
ret 4

Function at 0x10001aad
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x100276db
call fcn.10026576
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
push edi
call fcn.100021f9
pop ecx
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov dword [ebp - 4], eax
cmp byte [0x10036ee8], al
je 0x10001b1a
cmp dword [edi + 0x14], 0x10
jb 0x10001af5
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ctor__new_
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10001b1a
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, esi
call fcn.10026544
ret
Function at 0x10001c19
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x100276db
call fcn.10026576
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CMemMappedFile.0
and dword [ebp - 4], 0
cmp byte [0x10036ee8], 0
je 0x10001c6d
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10001c48
mov eax, dword [eax]
push eax
push str.CMemMappedFile__s__dtor
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10001c6d
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, esi
call fcn.10004020
cmp dword [esi + 0x20], 0
je 0x10001c83
push dword [esi + 0x20]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [esi + 0x1c], 0
je 0x10001c92
push dword [esi + 0x1c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
pop ecx
push esi
call fcn.1000303b
or dword [ebp - 4], 0xffffffff
pop ecx
push 0
push 1
lea ecx, [esi + 4]
call fcn.1000303b
call fcn.10026544
ret
Function at 0x10001ed1
Capabilities:
Print debug messages

Disassembly:
push 0x20
mov eax, 0x10027712
call fcn.100265a9
cmp byte [0x10036ee8], 0
mov esi, 0x100368d8
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.kernel32.dll_OutputDebugStringA]
je 0x10001f1c
cmp dword [edi + 0x14], 8
jb 0x10001efe
mov eax, dword [edi]
jmp 0x10001f00
mov eax, edi
push eax
push str.CMemMappedFile_CreateAndLoadFromFile__file__11S_
push esi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10001f1c
push esi
call ebx
xor esi, esi
call fcn.1000303b
test al, al
jne 0x10001f75
push 0x34
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x2c], eax
and dword [ebp - 4], esi
test eax, eax
je 0x10001f44
mov ecx, eax
call fcn.10001aad
mov esi, eax
jmp 0x10001f46
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push edi
call fcn.1000303b
push eax
mov eax, dword [esi]
xor edi, edi
inc edi
mov ecx, esi
mov dword [ebp - 4], edi
call dword [eax + 0x28]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push edi
call fcn.1000303b
jmp 0x1000207d
call fcn.100196ae
test al, al
je 0x10002031
push edi
call fcn.1000303b
mov dword [ebp - 0x2c], eax
pop ecx
test eax, eax
je 0x10002007
cmp byte [0x10036ee8], 0
je 0x10001ff2
cmp dword [edi + 0x14], 8
jb 0x10001fa3
mov eax, dword [edi]
jmp 0x10001fa5
mov eax, edi
mov esi, dword [sym.imp.MSVCR120.dll_sprintf]
push eax
push str.CMemMappedFile::CreateAndLoadFromFile___11S_
push 0x100368d8
call esi
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10001ff2
push 0x100368d8
call ebx
cmp byte [0x10036ee8], 0
je 0x10001ff2
push str.CMemMappedFile___remote_creation
push 0x100368d8
call esi
cmp byte [0x10036ee8], 0
pop ecx
pop ecx
je 0x10001ff2
push 0x100368d8
call ebx
push dword [ebp - 0x2c]
call fcn.100194d2
mov esi, eax
pop ecx
push edi
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x28]
jmp 0x1000207d
cmp byte [0x10036ee8], 0
je 0x1000207d
push str.CMemMappedFile__ERROR_diskFileSize__0_
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
cmp byte [0x10036ee8], 0
pop ecx
pop ecx
je 0x1000207d
push edi
call ebx
jmp 0x1000207d
cmp byte [0x10036ee8], 0
je 0x10002059
push str.CMemMappedFile___creation_deferred
mov esi, 0x100368d8
push esi
call dword [sym.imp.MSVCR120.dll_sprintf]
cmp byte [0x10036ee8], 0
pop ecx
pop ecx
je 0x10002059
push esi
call ebx
push 0x34
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x1000207b
push edi
mov ecx, eax
call fcn.10001992
mov esi, eax
jmp 0x1000207d
xor esi, esi
mov eax, esi
call fcn.10026558
ret
Function at 0x10002085
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x10027b41
call fcn.10026576
cmp byte [0x10036ee8], 0
mov edi, dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCR120.dll_sprintf]
je 0x100020c9
push esi
push str.CMemMappedFile_CreateWithSize__size_lu_
push 0x100368d8
call ebx
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x100020c9
push 0x100368d8
call edi
call fcn.1000303b
test al, al
je 0x1000210d
call fcn.100196ae
test al, al
je 0x1000210d
cmp byte [0x10036ee8], 0
je 0x10002104
push esi
push str.CMemMappedFile::CreateWithSize__lu___REMOTE_CREATION_
push 0x100368d8
call ebx
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10002104
push 0x100368d8
call edi
push esi
call fcn.100194d2
pop ecx
jmp 0x10002152
cmp byte [0x10036ee8], 0
je 0x10002136
push esi
push str.CMemMappedFile::CreateWithSize__lu___LOCAL_CREATION_
push 0x100368d8
call ebx
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10002136
push 0x100368d8
call edi
push 0x34
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov dword [ebp - 4], eax
test ecx, ecx
je 0x10002152
push esi
call fcn.10001a2b
call fcn.10026544
ret

Function at 0x1000229e
Capabilities:
Print debug messages

Disassembly:
push 0x28
mov eax, 0x10027783
call fcn.100265a9
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
cmp byte [0x10036ee8], bl
je 0x100022f1
cmp dword [esi + 0x14], 0x10
jb 0x100022ca
mov eax, dword [esi]
jmp 0x100022cc
mov eax, esi
push ecx
push eax
push str.CMemMappedFile_GetExistingMemoryMappedFile__name_s__size_lu_
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
cmp byte [0x10036ee8], bl
je 0x100022f1
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.1000303b
mov edi, eax
pop ecx
test edi, edi
jne 0x1000234c
push 0x34
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
mov dword [ebp - 0x34], edi
and dword [ebp - 4], 0
test edi, edi
je 0x10002335
push esi
lea ecx, [ebp - 0x28]
call fcn.1000303b
push dword [ebp - 0x2c]
xor ebx, ebx
mov byte [ebp - 4], 1
inc ebx
mov ecx, edi
push eax
mov dword [ebp - 0x30], ebx
call fcn.100019a6
mov edi, eax
jmp 0x10002337
xor edi, edi
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x1000234c
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.1000303b
mov eax, edi
call fcn.10026558
ret
Function at 0x10002e0d
Capabilities:
Print debug messages

Disassembly:
mov al, byte [0x10036ee8]
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll_sprintf]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.kernel32.dll_OutputDebugStringA]
test al, al
je 0x10002e57
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10002e32
mov eax, dword [eax]
push eax
push str.CMemMappedFile__s__createMemoryMappedFile
push 0x100368d8
call ebx
mov al, byte [0x10036ee8]
add esp, 0xc
test al, al
je 0x10002e57
push 0x100368d8
call edi
mov al, byte [0x10036ee8]
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x10002ee8
mov ecx, esi
call fcn.1000303b
mov dword [esi + 0x20], eax
test eax, eax
je 0x10002eb0
cmp byte [0x10036ee8], 0
je 0x10002ea7
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10002e84
mov eax, dword [eax]
push dword [esi + 0x24]
push eax
push str.CMemMappedFile__s__created_file_of_size___lu
push 0x100368d8
call ebx
add esp, 0x10
cmp byte [0x10036ee8], 0
je 0x10002ea7
push 0x100368d8
call edi
push esi
call fcn.1000303b
pop ecx
jmp 0x10002f18
cmp byte [0x10036ee8], 0
je 0x10002f18
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x10002ec4
mov esi, dword [esi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push str.CMemMappedFile__s__ERROR_CREATING__err_u_
mov esi, 0x100368d8
push esi
call ebx
add esp, 0x10
cmp byte [0x10036ee8], 0
je 0x10002f18
push esi
jmp 0x10002f16
test al, al
je 0x10002f18
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x10002ef7
mov esi, dword [esi]
push ecx
push esi
push str.CMemMappedFile__s__ERROR_CREATING__SIZE__0_
push 0x100368d8
call ebx
add esp, 0x10
cmp byte [0x10036ee8], 0
je 0x10002f18
push 0x100368d8
call edi
pop edi
pop esi
pop ebx
ret

Function at 0x100034a7
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x10036ee8], 0
push esi
mov esi, ecx
je 0x100034e8
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100034be
mov eax, dword [eax]
push edi
push dword [esi + 0x24]
mov edi, 0x100368d8
push eax
push str.CMemMappedFile__s__size___lu
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
cmp byte [0x10036ee8], 0
je 0x100034e7
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
mov eax, dword [esi + 0x24]
pop esi
ret

Function at 0x100034f0
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x10036ee8], 0
push esi
mov esi, ecx
je 0x10003540
lea edx, [esi + 4]
cmp dword [edx + 0x14], 0x10
jb 0x10003507
mov edx, dword [edx]
cmp dword [esi + 0x20], 0
mov ecx, str.false
push edi
mov eax, str.true
mov edi, 0x100368d8
cmove eax, ecx
push eax
push edx
push str.CMemMappedFile__s__isValid___s
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
cmp byte [0x10036ee8], 0
je 0x1000353f
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
xor eax, eax
cmp dword [esi + 0x20], eax
pop esi
setne al
ret
Function at 0x100035aa
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x10036ee8], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, 0x100368d8
je 0x100035fc
cmp dword [edi + 0x14], 8
jb 0x100035ce
mov ecx, dword [edi]
jmp 0x100035d0
mov ecx, edi
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100035db
mov eax, dword [eax]
push ecx
push eax
push str.CMemMappedFile__s__load_from_file___11S
push ebx
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
cmp byte [0x10036ee8], 0
je 0x100035fc
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x10003606
mov edi, dword [edi]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push edi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
push ebx
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ecx, eax
test ecx, ecx
je 0x100036b2
mov eax, dword [esi]
mov dword [esi + 0x24], ecx
push ecx
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
je 0x100036e9
push ebx
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
push dword [esi + 0x24]
push dword [esi + 0x28]
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x10003668
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x24]
jne 0x10003668
mov bl, 1
jmp 0x100036a9
cmp byte [0x10036ee8], bl
je 0x100036a9
lea edi, [esi + 4]
cmp dword [edi + 0x14], 0x10
jb 0x1000367b
mov edi, dword [edi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
push str.CMemMappedFile__s__ERROR_READING_FILE__err_u_
mov edi, 0x100368d8
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x10
cmp byte [0x10036ee8], bl
je 0x100036a6
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov edi, dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
jmp 0x100036e9
cmp byte [0x10036ee8], bl
je 0x100036e9
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x100036c5
mov esi, dword [esi]
push esi
push str.CMemMappedFile__s__ERROR___EMPTY_FILE
mov esi, 0x100368d8
push esi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp byte [0x10036ee8], bl
je 0x100036e9
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100036fb
Capabilities:
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x10036ee8], 0
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll_sprintf]
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov esi, ecx
je 0x10003746
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003723
mov eax, dword [eax]
push dword [ebp + 8]
push eax
push str.CMemMappedFile__s__mapForReading_numBytes_u_
push 0x100368d8
call ebx
add esp, 0x10
cmp byte [0x10036ee8], 0
je 0x10003746
push 0x100368d8
call edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
cmp dword [esi + 0x20], 0
jne 0x10003781
cmp byte [esi + 0x30], 0
jne 0x10003762
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
jmp 0x1000377b
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x1000376d
mov eax, dword [eax]
push eax
push 0
push 4
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
mov dword [esi + 0x20], eax
cmp dword [esi + 0x20], 0
je 0x100037bc
push dword [ebp + 8]
push 0
push 0
push 4
push dword [esi + 0x20]
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [esi + 0x28], eax
test eax, eax
jne 0x100037f6
cmp byte [0x10036ee8], al
je 0x100037f4
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x100037ad
mov esi, dword [esi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push str.CMemMappedFile__s__ERROR_MAPPING_FILE_FOR_READING__err_u_
jmp 0x100037dd
cmp byte [0x10036ee8], 0
je 0x100037f4
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x100037d0
mov esi, dword [esi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push str.CMemMappedFile__s__ERROR_OPENING_FILE_FOR_READING__err_u_
mov esi, 0x100368d8
push esi
call ebx
add esp, 0x10
cmp byte [0x10036ee8], 0
je 0x100037f4
push esi
call edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4