joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10030200
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100303cd
pushal
mov esi, section..data
lea edi, [esi - 0x1d000]
push edi
or ebp, 0xffffffff
jmp 0x1003022a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10030231
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10030220
mov eax, 1
add ebx, ebx
jne 0x10030243
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10030238
jne 0x10030254
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10030238
xor ecx, ecx
sub eax, 3
jb 0x10030268
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100302da
mov ebp, eax
add ebx, ebx
jne 0x10030273
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10030280
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100302a4
inc ecx
add ebx, ebx
jne 0x10030290
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10030285
jne 0x100302a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10030285
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100302c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100302b5
jmp 0x10030226
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100302c4
add edi, ecx
jmp 0x10030226
pop esi
mov edi, esi
mov ecx, 0x43f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100302e2
cmp byte [edi], 0xa
jne 0x100302e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x100302e7
lea edi, [esi + 0x2d000]
mov eax, dword [edi]
or eax, eax
je 0x1003035f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3046c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x304ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10030314
mov ecx, edi
jns 0x10030343
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x304f0]
or eax, eax
je 0x10030359
mov dword [ebx], eax
add ebx, 4
jmp 0x10030331
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10030390
cmp al, 0xef
ja 0x10030383
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10030365
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10030372
mov ebp, dword [esi + 0x304f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x100303c4
sub esp, 0xffffff80
jmp 0x10002acf
Function at 0x406410
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41d66b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404194
call fcn.00408fa4
push 4
mov dword [esp + 0x18], 0
call fcn.0040a763
mov edi, eax
add esp, 4
test edi, edi
je 0x406484
push ebx
call fcn.00408d9f
mov dword [edi], eax
call fcn.00408b5e
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00408f65
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406478
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00408f8d
pop ebx
jmp 0x406486
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 ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40b25b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4203ec]
jne 0x40b265
repz ret
jmp fcn.004120ec
Function at 0x4177d4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4203ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00410d07
and dword [ebp - 0x14], 0
cmp dword [0x437fb0], 0
mov dword [ebp - 0x18], eax
jne 0x417887
push 0x403f30
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41792f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403f24
push ebx
call edi
test eax, eax
je 0x41792f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403f14
push ebx
mov dword [0x437fb0], eax
call edi
push eax
call esi
push 0x403f00
push ebx
mov dword [0x437fb4], eax
call edi
push eax
call esi
push 0x403ee4
push ebx
mov dword [0x437fb8], eax
call edi
push eax
call esi
mov dword [0x437fc0], eax
test eax, eax
je 0x417887
push 0x403ecc
push ebx
call edi
push eax
call esi
mov dword [0x437fbc], eax
mov eax, dword [0x437fbc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4178e0
cmp dword [0x437fc0], ecx
je 0x4178e0
push eax
call esi
push dword [0x437fc0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4178e0
test ebx, ebx
je 0x4178e0
call edi
test eax, eax
je 0x4178d7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4178d7
test byte [ebp - 8], 1
jne 0x4178e0
or dword [ebp + 0x10], 0x200000
jmp 0x417913
mov eax, dword [0x437fb4]
cmp eax, dword [ebp - 0x18]
je 0x417913
push eax
call esi
test eax, eax
je 0x417913
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x417913
mov eax, dword [0x437fb8]
cmp eax, dword [ebp - 0x18]
je 0x417913
push eax
call esi
test eax, eax
je 0x417913
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x437fb0]
call esi
test eax, eax
je 0x41792f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417931
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b25b
leave
ret
Function at 0x4191f0
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1388
call fcn.00418090
cmp dword [0x8e2404], 0x37
push esi
jne 0x4192f6
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualLock]
push 0
lea ecx, [esp + 0xb8c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
mov eax, dword [esp + 0xc]
push 0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
push 0
lea ecx, [esp + 0x38c]
push ecx
push 0x40401c
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x78c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x168]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
call esi
push 0x404034
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea ecx, [esp + 0x24]
push 0
push ecx
mov dword [esp + 0x28], 0
call fcn.0040a580
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov eax, dword [0x8e4b68]
mov dword [esp + 8], eax
mov eax, 0x5d1
add dword [esp + 8], eax
mov ecx, dword [esp + 8]
mov dl, byte [ecx + edi]
mov eax, dword [0x8e0bfc]
mov byte [eax + edi], dl
pop esi
add esp, 0x1388
ret
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.10027b15
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x10001cea
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.10027b15
pop ecx
mov eax, esi
call fcn.1002a091
ret 8

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.10027b15
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.10027b15
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100023ce
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
xor edi, edi
call fcn.10027b15
test al, al
jne 0x1000243d
push 0x34
call fcn.10027b15
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.10027b15
jmp 0x10002548
call fcn.1001bb6e
test al, al
je 0x100024fe
push esi
call fcn.10027b15
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.10027b15
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.10027b15
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.10027b15
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.10027b15
cmp byte [0x1003cde0], 0
pop ecx
pop ecx
je 0x10002524
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x34
call fcn.10027b15
pop ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x10002546
push esi
mov ecx, eax
call fcn.10027b15
mov edi, eax
jmp 0x10002548
xor edi, edi
mov eax, edi
call fcn.1002a0a6
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.10027b15
add esp, 0x10
cmp byte [0x1003cde0], bl
je 0x100027bd
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.10027b15
mov edi, eax
pop ecx
test edi, edi
jne 0x10002822
push 0x34
call fcn.10027b15
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.10027b15
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.10027b15
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.10027b15
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.10027b15
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x1000322c
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.10027b15
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.10027b15
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.10027b15
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.10027b15
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.10027b15
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.10027b15
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.10027b15
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.10027b15
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.10027b15
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.10027b15
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.10027b15
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.10027b15
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.10027b15
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