joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b651
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
add esi, esi
call fcn.0043b689
dec edi
xor dword [eax], edx
sub edi, esi
and esi, esi
add eax, 1
add esi, 0x3b4ebf8b
cmp eax, ebx
jne fcn.0043b651
dec esi
sub esi, edi
mov edi, 0x724ad7fe
ret
Function at 0x40477d
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x42d068]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [esp + 8], eax
xor ebx, ebx
push edi
xor eax, eax
mov dword [esp + 0xac], ebx
push 0x208
mov dword [esp + 0xb4], 7
mov word [esp + 0xa0], ax
call fcn.004085dc
mov esi, eax
mov dword [esp], 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call fcn.0040978c
pop ecx
pop ecx
test eax, eax
jne 0x4047f3
mov edi, ebx
jmp 0x4047ff
add eax, 2
push eax
call fcn.0040dce1
pop ecx
mov edi, eax
push esi
call fcn.004085e5
pop ecx
push edi
lea ecx, [esp + 0xa0]
call fcn.00404999
lea ecx, [esp + 0x84]
call fcn.00404318
push ecx
lea edx, [esp + 0x88]
lea ecx, [esp + 0xd0]
call fcn.0040592d
pop ecx
lea ecx, [esp + 0x9c]
push ecx
mov ecx, eax
call fcn.0040554f
push eax
lea ecx, [esp + 0xb8]
call fcn.00406cbc
lea ecx, [esp + 0xcc]
call fcn.00406fd4
push 0x44
pop esi
push esi
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.0040a3d0
xor eax, eax
mov dword [esp + 0x2c], esi
lea edi, [esp + 0x1c]
mov dword [esp + 0x88], ebx
stosd dword es:[edi], eax
lea ecx, [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x80], 7
stosd dword es:[edi], eax
push 0x429a08
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp + 0x14]
xor edi, edi
mov word [esp + 0x54], ax
inc edi
xor eax, eax
mov dword [esp + 0x50], edi
mov word [esp + 0x70], ax
call fcn.00404999
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x70]
call fcn.0040554f
push 2
push 0x429a0c
lea ecx, [esp + 0x74]
call fcn.0040567a
push dword [esp + 0xc]
lea ecx, [esp + 0x70]
call fcn.004049c0
cmp dword [esp + 0x80], 8
lea eax, [esp + 0x6c]
cmovae eax, dword [esp + 0x6c]
push eax
call fcn.0040dce1
cmp dword [esp + 0x9c], 8
mov esi, eax
pop ecx
lea ecx, [esp + 0x84]
cmovae ecx, dword [esp + 0x84]
push ecx
call fcn.0040dce1
pop ecx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
push ebx
push ebx
push edi
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40493a
or ebx, 0xffffffff
jmp 0x404953
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push 0x1388
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
lea ecx, [esp + 0x6c]
call fcn.00406fd4
lea ecx, [esp + 0xb4]
call fcn.00406fd4
lea ecx, [esp + 0x84]
call fcn.00406fd4
lea ecx, [esp + 0x9c]
call fcn.00406fd4
mov ecx, dword [esp + 0xe4]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004081d2
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40b204
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, dword [esp + 0x14]
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 0xc]
mov edi, dword [esp + 0x18]
add ebx, 0xc
lea esi, [esi]
nop
Function at 0x40b274
Capabilities:
Access peb ldr_data
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
mov eax, dword [eax]
mov esi, dword [eax + 0x30]
test esi, esi
je 0x40b287
mov eax, dword [eax + 0x18]
mov dword [esp + 4], 0
mov dword [esp + 0x1c], eax
mov eax, dword [0x42dc58]
mov dword [esp], eax
call fcn.0040b204
mov ecx, dword [0x42dc88]
fadd qword [edx]
mov edi, eax
mov eax, dword [ecx]
test eax, eax
je case.0x40a958.15
movzx edx, word [esi]
movzx ebp, byte [ecx]
test dx, dx
je 0x40b427
xor eax, eax
lea esi, [esi]
nop
add eax, 1
cmp word [esi + eax*2], 0
jne 0x40b2d4
mov ebx, ebp
cmp al, bl
je 0x40b2ed
cmp byte [ecx + 1], al
jne 0x40b41a
lea eax, [esi + 2]
xor esi, esi
nop
add eax, 2
add esi, edx
movzx edx, word [eax - 2]
test dx, dx
jne 0x40b2f4
cmp dword [ecx + 4], esi
je case.0x40a958.15
cmp dword [ecx + 8], esi
jne 0x40b41a
mov esi, dword [0x42dc70]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x42dc7c]
xor edx, edx
sub esp, 0xc
test ecx, ecx
je 0x40b366
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + edx]
mov dword [eax + edx], ecx
mov ecx, dword [0x42dc78]
add edx, ecx
mov ecx, dword [0x42dc7c]
cmp ecx, edx
ja 0x40b348
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0040b0b4
mov edi, eax
test eax, eax
je 0x40b41a
mov esi, dword [0x42dc60]
lea ebp, [esp + 0x2c]
mov edx, dword [0x42dc7c]
mov dword [esp + 0xc], ebp
mov eax, dword [0x42dc50]
mov dword [esp], esi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call edi
mov eax, dword [0x42dc54]
sub esp, 0x10
mov edx, dword [0x42dc50]
mov ebx, dword [esp + 0x1c]
add ebx, eax
mov eax, 8
mov ecx, dword [ebx + 4]
cmp edx, 8
jbe 0x40b3de
nop
mov edx, dword [ebx + eax]
add edx, ecx
mov dword [esi + eax], edx
mov edx, dword [0x42dc78]
add eax, edx
ror byte [ebx + 0x42dc5015], 1
add byte [ecx], bh
ret 0xe677
mov eax, dword [0x42dc64]
mov edx, dword [esp + 0x2c]
mov dword [esi + 8], eax
mov eax, dword [0x42dc50]
mov dword [esp + 8], edx
mov dword [esp], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
call edi
mov eax, dword [0x42dc8c]
mov edx, dword [0x42dc8c]
sub esp, 0x10
add eax, dword [esi + 0xc]
add eax, esi
add esi, edx
mov dword [esp], esi
call eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, ebp
test al, al
je 0x40b433
cmp byte [ecx + 1], 0
jne 0x40b41a
xor esi, esi
jmp 0x40b302
Function at 0x10001c05
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002c674
call fcn.1002b067
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.10002b37
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 [0x1003cdfb], bl
jne 0x10001c5a
cmp byte [0x1003cdfa], bl
je 0x10001c96
cmp dword [edi + 0x14], 0x10
jb 0x10001c62
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ctor__reference_
mov edi, 0x1003c818
push edi
call fcn.1001f788
add esp, 0xc
cmp byte [0x1003cdfa], 0
je 0x10001c86
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10001c96
push edi
call fcn.10005eb0
pop ecx
push esi
call fcn.1001f788
pop ecx
mov eax, esi
call fcn.1002b030
ret 8

Function at 0x10001ca7
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002c674
call fcn.1002b067
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
push edi
call fcn.1000282f
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 [0x1003cdfb], cl
jne 0x10001cf2
cmp byte [0x1003cdfa], cl
je 0x10001d2f
cmp dword [edi + 0x14], 0x10
jb 0x10001cfa
mov edi, dword [edi]
push eax
push edi
push str.CMemMappedFile__s__ctor__new_with_size_lu_
mov edi, 0x1003c818
push edi
call fcn.1001f788
add esp, 0x10
cmp byte [0x1003cdfa], 0
je 0x10001d1f
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10001d2f
push edi
call fcn.10005eb0
pop ecx
mov ecx, esi
call fcn.100033f0
mov eax, esi
call fcn.1002b030
ret 4

Function at 0x10001d40
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002c674
call fcn.1002b067
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
push edi
call fcn.1000282f
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 [0x1003cdfb], al
jne 0x10001d88
cmp byte [0x1003cdfa], al
je 0x10001dc4
cmp dword [edi + 0x14], 0x10
jb 0x10001d90
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ctor__new_
mov edi, 0x1003c818
push edi
call fcn.1001f788
add esp, 0xc
cmp byte [0x1003cdfa], 0
je 0x10001db4
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10001dc4
push edi
call fcn.10005eb0
pop ecx
mov eax, esi
call fcn.1002b030
ret
Function at 0x10002659
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002c7a2
call fcn.1002b067
cmp byte [0x1003cdfb], 0
mov edi, 0x1003c818
mov esi, dword [ebp + 8]
jne 0x1000267f
cmp byte [0x1003cdfa], 0
je 0x100026ae
push esi
push str.CMemMappedFile_CreateWithSize__size_lu_
push edi
call fcn.1001f788
add esp, 0xc
cmp byte [0x1003cdfa], 0
je 0x1000269e
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x100026ae
push edi
call fcn.10005eb0
pop ecx
call fcn.1001f788
test al, al
je 0x1000270a
call fcn.1001be5e
test al, al
je 0x1000270a
cmp byte [0x1003cdfb], 0
jne 0x100026d2
cmp byte [0x1003cdfa], 0
je 0x10002701
push esi
push str.CMemMappedFile::CreateWithSize__lu___REMOTE_CREATION_
push edi
call fcn.1001f788
add esp, 0xc
cmp byte [0x1003cdfa], 0
je 0x100026f1
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10002701
push edi
call fcn.10005eb0
pop ecx
push esi
call fcn.1001bc5c
pop ecx
jmp 0x10002767
cmp byte [0x1003cdfb], 0
jne 0x1000271c
cmp byte [0x1003cdfa], 0
je 0x1000274b
push esi
push str.CMemMappedFile::CreateWithSize__lu___LOCAL_CREATION_
push edi
call fcn.1001f788
add esp, 0xc
cmp byte [0x1003cdfa], 0
je 0x1000273b
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x1000274b
push edi
call fcn.10005eb0
pop ecx
push 0x34
call fcn.1001f788
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov dword [ebp - 4], eax
test ecx, ecx
je 0x10002767
push esi
call fcn.10001ca7
call fcn.1002b030
ret

Function at 0x100028d9
Capabilities:
Print debug messages

Disassembly:
push 0x28
mov eax, 0x1002c80c
call fcn.1002b09b
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 [0x1003cdfb], bl
jne 0x10002903
cmp byte [0x1003cdfa], bl
je 0x10002940
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1000290d
mov eax, dword [esi]
push ecx
push eax
push str.CMemMappedFile_GetExistingMemoryMappedFile__name_s__size_lu_
mov edi, 0x1003c818
push edi
call fcn.1001f788
add esp, 0x10
cmp byte [0x1003cdfa], bl
je 0x10002931
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], bl
je 0x10002940
push edi
call fcn.10005eb0
pop ecx
push esi
call fcn.1001f788
mov edi, eax
pop ecx
test edi, edi
jne 0x100029a6
push 0x34
call fcn.1001f788
mov edi, eax
pop ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], ebx
test edi, edi
je 0x1000298b
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.10002b37
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.10001c05
mov edi, eax
jmp 0x1000298d
mov edi, ebx
test bl, 1
je 0x100029a6
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100029a6
inc eax
push eax
push dword [ebp - 0x28]
call fcn.1001f788
pop ecx
pop ecx
mov eax, edi
call fcn.1002b045
ret
Function at 0x100033f0
Capabilities:
Print debug messages

Disassembly:
mov al, byte [0x1003cdfb]
push esi
mov esi, ecx
push edi
mov edi, 0x1003c818
test al, al
jne 0x1000340a
cmp byte [0x1003cdfa], al
je 0x10003449
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003415
mov eax, dword [eax]
push eax
push str.CMemMappedFile__s__createMemoryMappedFile
push edi
call fcn.1001f788
add esp, 0xc
cmp byte [0x1003cdfa], 0
je 0x10003434
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov al, byte [0x1003cdfb]
test al, al
je 0x10003449
push edi
call fcn.10005eb0
mov al, byte [0x1003cdfb]
pop ecx
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x100034e5
mov ecx, esi
call fcn.1001f788
mov dword [esi + 0x20], eax
test eax, eax
je 0x100034b9
cmp byte [0x1003cdfb], 0
jne 0x10003474
cmp byte [0x1003cdfa], 0
je 0x100034b1
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x1000347f
mov eax, dword [eax]
push dword [esi + 0x24]
push eax
push str.CMemMappedFile__s__created_file_of_size___lu
push edi
call fcn.1001f788
add esp, 0x10
cmp byte [0x1003cdfa], 0
je 0x100034a1
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x100034b1
push edi
call fcn.10005eb0
pop ecx
push esi
call fcn.1001f788
jmp 0x1000352b
cmp byte [0x1003cdfb], 0
jne 0x100034cb
cmp byte [0x1003cdfa], 0
je 0x1000352c
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x100034d6
mov esi, dword [esi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push str.CMemMappedFile__s__ERROR_CREATING__err_u_
jmp 0x10003503
test al, al
jne 0x100034f1
cmp byte [0x1003cdfa], al
je 0x1000352c
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x100034fc
mov esi, dword [esi]
push ecx
push esi
push str.CMemMappedFile__s__ERROR_CREATING__SIZE__0_
push edi
call fcn.1001f788
add esp, 0x10
cmp byte [0x1003cdfa], 0
je 0x1000351c
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x1000352c
push edi
call fcn.10005eb0
pop ecx
pop edi
pop esi
ret

Function at 0x10003670
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x1003cdfb], 0
push esi
mov esi, ecx
jne 0x10003685
cmp byte [0x1003cdfa], 0
je 0x100036c9
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003690
mov eax, dword [eax]
push edi
push dword [esi + 0x24]
mov edi, 0x1003c818
push eax
push str.CMemMappedFile__s__size___lu
push edi
call fcn.1001f788
add esp, 0x10
cmp byte [0x1003cdfa], 0
je 0x100036b8
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x100036c8
push edi
call fcn.10005eb0
pop ecx
pop edi
mov eax, dword [esi + 0x24]
pop esi
ret
Function at 0x100036e0
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x1003cdfb], 0
push esi
mov esi, ecx
jne 0x100036f5
cmp byte [0x1003cdfa], 0
je 0x10003748
lea ecx, [esi + 4]
cmp dword [ecx + 0x14], 0x10
jb 0x10003700
mov ecx, dword [ecx]
cmp dword [esi + 0x20], 0
mov edx, str.false
push edi
mov eax, str.true
mov edi, 0x1003c818
cmove eax, edx
push eax
push ecx
push str.CMemMappedFile__s__isValid___s
push edi
call fcn.1001f788
add esp, 0x10
cmp byte [0x1003cdfa], 0
je 0x10003737
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10003747
push edi
call fcn.10005eb0
pop ecx
pop edi
cmp dword [esi + 0x20], 0
pop esi
setne al
ret
Function at 0x100037b0
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x1003cdfb], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1003c818
push edi
mov edi, ecx
jne 0x100037d4
cmp byte [0x1003cdfa], 0
je 0x10003819
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x100037de
mov ecx, dword [esi]
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100037e9
mov eax, dword [eax]
push ecx
push eax
push str.CMemMappedFile__s__load_from_file___11S
push ebx
call fcn.1001f788
add esp, 0x10
cmp byte [0x1003cdfa], 0
je 0x10003809
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10003819
push ebx
call fcn.10005eb0
pop ecx
xor ebx, ebx
cmp dword [esi + 0x14], 8
jb 0x10003823
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 0x100038f6
mov eax, dword [edi]
mov dword [edi + 0x24], ecx
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, edi
call esi
test eax, eax
je 0x10003943
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 0x1000388f
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 0x24]
jne 0x1000388f
mov bl, 1
jmp 0x100038e3
cmp byte [0x1003cdfb], bl
jne 0x1000389f
cmp byte [0x1003cdfa], bl
je 0x100038e3
lea esi, [edi + 4]
cmp dword [esi + 0x14], 0x10
jb 0x100038aa
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, 0x1003c818
push esi
call fcn.1001f788
add esp, 0x10
cmp byte [0x1003cdfa], bl
je 0x100038d4
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], bl
je 0x100038e3
push esi
call fcn.10005eb0
pop ecx
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, edi
call esi
jmp 0x10003943
cmp byte [0x1003cdfb], bl
jne 0x10003906
cmp byte [0x1003cdfa], bl
je 0x10003943
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x10003911
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ERROR___EMPTY_FILE
mov esi, 0x1003c818
push esi
call fcn.1001f788
add esp, 0xc
cmp byte [0x1003cdfa], bl
je 0x10003934
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], bl
je 0x10003943
push esi
call fcn.10005eb0
pop ecx
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 0x10003960
Capabilities:
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x1003cdfb], 0
push ebx
push edi
mov edi, ecx
mov ebx, 0x1003c818
jne 0x1000397e
cmp byte [0x1003cdfa], 0
je 0x100039bb
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003989
mov eax, dword [eax]
push dword [ebp + 8]
push eax
push str.CMemMappedFile__s__mapForReading_numBytes_u_
push ebx
call fcn.1001f788
add esp, 0x10
cmp byte [0x1003cdfa], 0
je 0x100039ab
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x100039bb
push ebx
call fcn.10005eb0
pop ecx
mov eax, dword [edi]
push esi
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, edi
call esi
cmp dword [edi + 0x20], 0
jne 0x10003a09
cmp byte [edi + 0x30], 0
jne 0x100039ec
mov eax, dword [edi]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, edi
call esi
jmp 0x10003a05
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100039f7
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 0x10003a4f
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 0x10003aa4
cmp byte [0x1003cdfb], al
jne 0x10003a35
cmp byte [0x1003cdfa], al
je 0x10003aa2
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x10003a40
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 0x10003a79
cmp byte [0x1003cdfb], 0
jne 0x10003a61
cmp byte [0x1003cdfa], 0
je 0x10003aa2
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x10003a6c
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.1001f788
add esp, 0x10
cmp byte [0x1003cdfa], 0
je 0x10003a92
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10003aa2
push ebx
call fcn.10005eb0
pop ecx
xor eax, eax
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10003ab0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x1003cdfb], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, 0x1003c818
jne 0x10003ad2
cmp byte [0x1003cdfa], 0
je 0x10003b0d
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003add
mov eax, dword [eax]
push ebx
push eax
push str.CMemMappedFile__s__mapForWriting_numBytes_u_
push esi
call fcn.1001f788
add esp, 0x10
cmp byte [0x1003cdfa], 0
je 0x10003afd
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10003b0d
push esi
call fcn.10005eb0
pop ecx
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, edi
call esi
cmp dword [edi + 0x20], 0
jne 0x10003b60
cmp byte [edi + 0x30], 0
jne 0x10003b3d
mov eax, dword [edi]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, edi
call esi
jmp 0x10003b56
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003b48
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 0x10003c00
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 0x10003bd4
cmp byte [0x1003cdfb], 0
jne 0x10003b89
cmp byte [0x1003cdfa], 0
je 0x10003bc9
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003b94
mov eax, dword [eax]
push ebx
push eax
push str.CMemMappedFile__s__mapped_for_writing__u_bytes
mov esi, 0x1003c818
push esi
call fcn.1001f788
add esp, 0x10
cmp byte [0x1003cdfa], 0
je 0x10003bb9
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10003bc9
push esi
call fcn.10005eb0
pop ecx
mov eax, dword [edi + 0x28]
mov dword [edi + 0x2c], ebx
jmp 0x10003c5a
cmp byte [0x1003cdfb], 0
jne 0x10003be6
cmp byte [0x1003cdfa], 0
je 0x10003c58
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x10003bf1
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 0x10003c2a
cmp byte [0x1003cdfb], 0
jne 0x10003c12
cmp byte [0x1003cdfa], 0
je 0x10003c58
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x10003c1d
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, 0x1003c818
push esi
call fcn.1001f788
add esp, 0x10
cmp byte [0x1003cdfa], 0
je 0x10003c48
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10003c58
push esi
call fcn.10005eb0
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4