joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd20060
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0x12
jge 0xd1ffe2
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 8]
jb 0xd1ff3b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x18]
shl ecx, 8
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x18]
or ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jb 0xd1ff6a
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x18]
shl edx, 8
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x18]
or edx, ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
clc
clc
jb 0xd1ff99
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x18]
shl eax, 8
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 0x18]
or eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 8]
jb 0xd1ffc8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4]
xor eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4], eax
jmp 0xd1ff07
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
jmp 0xd20002
mov eax, dword [ebp - 0x1c]
add eax, 2
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x12
jge 0xd20035
push 1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00d1f280
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 4], edx
jmp 0xd1fff9
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0
jmp 0xd20050
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0x400
jge 0xd20086
push 1
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00d1f280
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + ecx*4 + 4], eax
jmp 0xd20047
mov esp, ebp
pop ebp
ret
Function at 0xd205a0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
shr eax, 0x10
and eax, 0xffff
test eax, eax
jne 0xd205dd
mov ecx, dword [0xd26f0c]
cmp ecx, dword [ebp + 8]
jne 0xd205cd
mov edx, dword [ebp + 0xc]
and edx, 0xffff
and edx, 0xffff
cmp edx, 0x154
jne 0xd205cd
mov eax, 0xd20392
jmp 0xd20614
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [fcn.00d23004]
jmp 0xd20614
push 0xd25528
mov edx, dword [ebp + 0xc]
push edx
call fcn.00d22230
add esp, 8
test eax, eax
jne 0xd20604
mov eax, dword [ebp + 8]
cmp eax, dword [0xd26f0c]
jne 0xd20604
mov eax, 0xd20392
jmp 0xd20614
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00d20618
add esp, 8
pop ebp
ret 8
Function at 0xd22230
Capabilities:
Decompress data using aplib

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
test edx, 3
jne 0xd2227c
mov eax, dword [edx]
cmp al, byte [ecx]
jne 0xd22274
or al, al
je 0xd22270
cmp ah, byte [ecx + 1]
jne 0xd22274
or ah, ah
je 0xd22270
shr eax, 0x10
cmp al, byte [ecx + 2]
jne 0xd22274
or al, al
je 0xd22270
cmp ah, byte [ecx + 3]
jne 0xd22274
add ecx, 4
add edx, 4
or ah, ah
jne 0xd22240
mov edi, edi
xor eax, eax
ret
sbb eax, eax
shl eax, 1
inc eax
ret
test edx, 1
je 0xd22298
mov al, byte [edx]
inc edx
cmp al, byte [ecx]
jne 0xd22274
inc ecx
or al, al
je 0xd22270
test edx, 2
je 0xd22240
mov ax, word [edx]
add edx, 2
cmp al, byte [ecx]
jne 0xd22274
or al, al
je 0xd22270
cmp ah, byte [ecx + 1]
jne 0xd22274
or ah, ah
je 0xd22270
add ecx, 2
jmp 0xd22240
Function at 0x10001c71
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002b4ac
call fcn.1002a0c8
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
xor ebx, ebx
mov ecx, edi
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
call fcn.10002a03
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], 1
mov dword [ebp - 4], ebx
cmp byte [0x1003cde0], bl
je 0x10001cea
cmp dword [edi + 0x14], 0x10
jb 0x10001cc6
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ctor__reference_
mov edi, 0x1003c7f0
push edi
call fcn.1001f9a5
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x10001cea
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.1001f9a5
pop ecx
mov eax, esi
call fcn.1002a091
ret 8

Function at 0x10001cfb
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002b4ac
call fcn.1002a0c8
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
push edi
call fcn.100026c3
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 [0x1003cde0], cl
je 0x10001d6b
cmp dword [edi + 0x14], 0x10
jb 0x10001d46
mov edi, dword [edi]
push eax
push edi
push str.CMemMappedFile__s__ctor__new_with_size_lu_
mov edi, 0x1003c7f0
push edi
call fcn.1001f9a5
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x10001d6b
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, esi
call fcn.100031a0
mov eax, esi
call fcn.1002a091
ret 4

Function at 0x10001d7c
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002b4ac
call fcn.1002a0c8
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
push edi
call fcn.100026c3
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 [0x1003cde0], al
je 0x10001de8
cmp dword [edi + 0x14], 0x10
jb 0x10001dc4
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ctor__new_
mov edi, 0x1003c7f0
push edi
call fcn.1001f9a5
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x10001de8
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, esi
call fcn.1002a091
ret
Function at 0x10002388
Capabilities:
Print debug messages

Disassembly:
push 0x20
mov eax, 0x1002b5ba
call fcn.1002a0fc
cmp byte [0x1003cde0], 0
mov ebx, 0x1003c7f0
mov esi, dword [ebp + 8]
je 0x100023ce
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100023af
mov eax, dword [esi]
push eax
push str.CMemMappedFile_CreateAndLoadFromFile__file__11S_
push ebx
call fcn.1001f9a5
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100023ce
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
xor edi, edi
call fcn.1001f9a5
test al, al
jne 0x1000243d
push 0x34
call fcn.1001f9a5
pop ecx
mov dword [ebp - 0x2c], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x100023f8
mov ecx, eax
call fcn.10001d7c
mov edi, eax
jmp 0x100023fa
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.10002a85
mov eax, dword [edi]
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 4], 1
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
call fcn.1001f9a5
jmp 0x10002548
call fcn.1001bb6e
test al, al
je 0x100024fe
push esi
call fcn.1001f9a5
mov ebx, eax
pop ecx
test ebx, ebx
je 0x100024d1
cmp byte [0x1003cde0], 0
je 0x100024b4
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x1000246a
mov ecx, dword [esi]
push ecx
push str.CMemMappedFile::CreateAndLoadFromFile___11S_
mov edi, 0x1003c7f0
push edi
call fcn.1001f9a5
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100024b4
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cde0], 0
je 0x100024b4
push str.CMemMappedFile___remote_creation
push edi
call fcn.1001f9a5
cmp byte [0x1003cde0], 0
pop ecx
pop ecx
je 0x100024b4
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push ebx
call fcn.1001b987
mov edi, eax
pop ecx
push esi
mov ecx, dword [edi]
mov esi, dword [ecx + 0x28]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
jmp 0x10002548
cmp byte [0x1003cde0], 0
je 0x10002548
push str.CMemMappedFile__ERROR_diskFileSize__0_
mov esi, 0x1003c7f0
push esi
call fcn.1001f9a5
cmp byte [0x1003cde0], 0
pop ecx
pop ecx
je 0x10002548
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
jmp 0x10002548
cmp byte [0x1003cde0], 0
je 0x10002524
push str.CMemMappedFile___creation_deferred
push ebx
call fcn.1001f9a5
cmp byte [0x1003cde0], 0
pop ecx
pop ecx
je 0x10002524
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x34
call fcn.1001f9a5
pop ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x10002546
push esi
mov ecx, eax
call fcn.1001f9a5
mov edi, eax
jmp 0x10002548
xor edi, edi
mov eax, edi
call fcn.1002a0a6
ret
Function at 0x10002550
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002b5ec
call fcn.1002a0c8
cmp byte [0x1003cde0], 0
mov edi, 0x1003c7f0
mov esi, dword [ebp + 8]
je 0x1000258c
push esi
push str.CMemMappedFile_CreateWithSize__size_lu_
push edi
call fcn.1001f9a5
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x1000258c
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
call fcn.1001f9a5
test al, al
je 0x100025cf
call fcn.1001bb6e
test al, al
je 0x100025cf
cmp byte [0x1003cde0], 0
je 0x100025c6
push esi
push str.CMemMappedFile::CreateWithSize__lu___REMOTE_CREATION_
push edi
call fcn.1001f9a5
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100025c6
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.1001b987
pop ecx
jmp 0x10002613
cmp byte [0x1003cde0], 0
je 0x100025f7
push esi
push str.CMemMappedFile::CreateWithSize__lu___LOCAL_CREATION_
push edi
call fcn.1001f9a5
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100025f7
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x34
call fcn.1001f9a5
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov dword [ebp - 4], eax
test ecx, ecx
je 0x10002613
push esi
call fcn.10001cfb
call fcn.1002a091
ret

Function at 0x1000276d
Capabilities:
Print debug messages

Disassembly:
push 0x28
mov eax, 0x1002b656
call fcn.1002a0fc
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ecx
cmp byte [0x1003cde0], bl
je 0x100027bd
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10002799
mov eax, dword [esi]
push ecx
push eax
push str.CMemMappedFile_GetExistingMemoryMappedFile__name_s__size_lu_
mov edi, 0x1003c7f0
push edi
call fcn.1001f9a5
add esp, 0x10
cmp byte [0x1003cde0], bl
je 0x100027bd
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.1001f9a5
mov edi, eax
pop ecx
test edi, edi
jne 0x10002822
push 0x34
call fcn.1001f9a5
mov edi, eax
pop ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], ebx
test edi, edi
je 0x10002808
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.10002a03
push dword [ebp - 0x30]
xor ebx, ebx
lea eax, [ebp - 0x28]
inc ebx
mov ecx, edi
push eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x2c], ebx
call fcn.10001c71
mov edi, eax
jmp 0x1000280a
mov edi, ebx
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x10002822
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 3
call fcn.1001f9a5
mov eax, edi
call fcn.1002a0a6
ret
Function at 0x100031a0
Capabilities:
Print debug messages

Disassembly:
mov al, byte [0x1003cde0]
push esi
mov esi, ecx
push edi
mov edi, 0x1003c7f0
test al, al
je 0x100031e1
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100031bd
mov eax, dword [eax]
push eax
push str.CMemMappedFile__s__createMemoryMappedFile
push edi
call fcn.1001f9a5
mov al, byte [0x1003cde0]
add esp, 0xc
test al, al
je 0x100031e1
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov al, byte [0x1003cde0]
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x10003258
mov ecx, esi
call fcn.1001f9a5
mov dword [esi + 0x20], eax
test eax, eax
je 0x10003235
cmp byte [0x1003cde0], 0
je 0x1000322c
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x1000320a
mov eax, dword [eax]
push dword [esi + 0x24]
push eax
push str.CMemMappedFile__s__created_file_of_size___lu
push edi
call fcn.1001f9a5
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x1000322c
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.1001f9a5
pop ecx
jmp 0x10003287
cmp byte [0x1003cde0], 0
je 0x10003287
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x10003249
mov esi, dword [esi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push str.CMemMappedFile__s__ERROR_CREATING__err_u_
jmp 0x1000326e
test al, al
je 0x10003287
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x10003267
mov esi, dword [esi]
push ecx
push esi
push str.CMemMappedFile__s__ERROR_CREATING__SIZE__0_
push edi
call fcn.1001f9a5
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x10003287
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
pop esi
ret

Function at 0x10003460
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x1003cde0], 0
push esi
mov esi, ecx
je 0x100034a0
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003477
mov eax, dword [eax]
push edi
push dword [esi + 0x24]
mov edi, 0x1003c7f0
push eax
push str.CMemMappedFile__s__size___lu
push edi
call fcn.1001f9a5
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x1000349f
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
mov eax, dword [esi + 0x24]
pop esi
ret

Function at 0x100034c0
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x1003cde0], 0
push esi
mov esi, ecx
je 0x1000350f
lea edx, [esi + 4]
cmp dword [edx + 0x14], 0x10
jb 0x100034d7
mov edx, dword [edx]
cmp dword [esi + 0x20], 0
mov ecx, str.false
push edi
mov eax, str.true
mov edi, 0x1003c7f0
cmove eax, ecx
push eax
push edx
push str.CMemMappedFile__s__isValid___s
push edi
call fcn.1001f9a5
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x1000350e
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
cmp dword [esi + 0x20], 0
pop esi
setne al
ret
Function at 0x10003580
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x1003cde0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1003c7f0
push edi
mov edi, ecx
je 0x100035d0
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x100035a5
mov ecx, dword [esi]
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100035b0
mov eax, dword [eax]
push ecx
push eax
push str.CMemMappedFile__s__load_from_file___11S
push ebx
call fcn.1001f9a5
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x100035d0
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
xor ebx, ebx
cmp dword [esi + 0x14], 8
jb 0x100035da
mov esi, dword [esi]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileW]
push ebx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ecx, eax
test ecx, ecx
je 0x10003696
mov eax, dword [edi]
mov dword [edi + 0x24], ecx
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
test eax, eax
je 0x100036cc
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [edi + 0x24]
push dword [edi + 0x28]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x10003646
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 0x24]
jne 0x10003646
mov bl, 1
jmp 0x10003683
cmp byte [0x1003cde0], bl
je 0x10003683
lea esi, [edi + 4]
cmp dword [esi + 0x14], 0x10
jb 0x10003659
mov esi, dword [esi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push str.CMemMappedFile__s__ERROR_READING_FILE__err_u_
mov esi, 0x1003c7f0
push esi
call fcn.1001f9a5
add esp, 0x10
cmp byte [0x1003cde0], bl
je 0x10003683
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
jmp 0x100036cc
cmp byte [0x1003cde0], bl
je 0x100036cc
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x100036a9
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ERROR___EMPTY_FILE
mov esi, 0x1003c7f0
push esi
call fcn.1001f9a5
add esp, 0xc
cmp byte [0x1003cde0], bl
je 0x100036cc
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x100036e0
Capabilities:
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x1003cde0], 0
push ebx
push edi
mov edi, ecx
mov ebx, 0x1003c7f0
je 0x10003722
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003700
mov eax, dword [eax]
push dword [ebp + 8]
push eax
push str.CMemMappedFile__s__mapForReading_numBytes_u_
push ebx
call fcn.1001f9a5
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x10003722
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [edi]
push esi
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
cmp dword [edi + 0x20], 0
jne 0x10003770
cmp byte [edi + 0x30], 0
jne 0x10003753
mov eax, dword [edi]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
jmp 0x1000376c
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x1000375e
mov eax, dword [eax]
push eax
push 0
push 4
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
mov dword [edi + 0x20], eax
cmp dword [edi + 0x20], 0
pop esi
je 0x100037ae
push dword [ebp + 8]
push 0
push 0
push 4
push dword [edi + 0x20]
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [edi + 0x28], eax
test eax, eax
jne 0x100037ea
cmp byte [0x1003cde0], al
je 0x100037e8
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x1000379f
mov edi, dword [edi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
push str.CMemMappedFile__s__ERROR_MAPPING_FILE_FOR_READING__err_u_
jmp 0x100037cf
cmp byte [0x1003cde0], 0
je 0x100037e8
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x100037c2
mov edi, dword [edi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
push str.CMemMappedFile__s__ERROR_OPENING_FILE_FOR_READING__err_u_
push ebx
call fcn.1001f9a5
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x100037e8
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
xor eax, eax
pop edi
pop ebx
pop ebp
ret 4
Function at 0x100037f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x1003cde0], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, 0x1003c7f0
je 0x10003834
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003814
mov eax, dword [eax]
push ebx
push eax
push str.CMemMappedFile__s__mapForWriting_numBytes_u_
push esi
call fcn.1001f9a5
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x10003834
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
cmp dword [edi + 0x20], 0
jne 0x10003883
cmp byte [edi + 0x30], 0
jne 0x10003864
mov eax, dword [edi]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x1002e5c4]
mov ecx, edi
call esi
jmp 0x1000387d
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x1000386f
mov eax, dword [eax]
push eax
push 0
push 2
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
mov dword [edi + 0x20], eax
cmp dword [edi + 0x20], 0
je 0x100038fe
push ebx
push 0
push 0
push 2
push dword [edi + 0x20]
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [edi + 0x28], eax
test eax, eax
je 0x100038db
cmp byte [0x1003cde0], 0
je 0x100038d3
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100038ae
mov eax, dword [eax]
push ebx
push eax
push str.CMemMappedFile__s__mapped_for_writing__u_bytes
mov esi, 0x1003c7f0
push esi
call fcn.1001f9a5
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x100038d3
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [edi + 0x28]
mov dword [edi + 0x2c], ebx
jmp 0x1000393f
cmp byte [0x1003cde0], 0
je 0x1000393d
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x100038ef
mov edi, dword [edi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
push str.CMemMappedFile__s__ERROR_MAPPING_FILE_FOR_WRITING__err_u_
jmp 0x1000391f
cmp byte [0x1003cde0], 0
je 0x1000393d
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x10003912
mov edi, dword [edi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
push str.CMemMappedFile__s__ERROR_OPENING_FILE_FOR_WRITING__err_u_
mov esi, 0x1003c7f0
push esi
call fcn.1001f9a5
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x1000393d
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x10004020
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x28], edi
je 0x10004083
cmp byte [0x1003cde0], 0
je 0x10004065
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x1000403f
mov eax, dword [eax]
push ebx
push eax
push str.CMemMappedFile__s__unmap
mov ebx, 0x1003c7f0
push ebx
call fcn.1001f9a5
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x10004064
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop ebx
cmp dword [esi + 0x2c], edi
jbe 0x10004077
push dword [esi + 0x2c]
push edi
call dword [sym.imp.kernel32.dll_FlushViewOfFile]
mov dword [esi + 0x2c], edi
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [esi + 0x28], edi
pop edi
pop esi
ret