joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ff10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, ecx
or ecx, 0xffffffff
push esi
push edi
movzx edx, byte [ebx]
movzx eax, byte [ebx + 1]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 3]
shl edx, 8
or edx, eax
movzx esi, byte [edx + ebx + 8]
lea edi, [edx + 4]
movzx eax, byte [edx + ebx + 9]
shl esi, 8
or esi, eax
movzx eax, byte [edx + ebx + 0xa]
shl esi, 8
or esi, eax
movzx eax, byte [edx + ebx + 0xb]
shl esi, 8
xor edx, edx
or esi, eax
test edi, edi
je 0x45ff7b
movzx eax, byte [ebx + edx + 4]
inc edx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4cfa84]
cmp edx, edi
jb 0x45ff62
not ecx
xor eax, eax
pop edi
cmp esi, ecx
pop esi
setne al
pop ebx
ret

Function at 0x46049a
Capabilities:
Enumerate pe sections

Disassembly:
cmp dword [esp + 4], 0x20
push esi
mov esi, ecx
je 0x4604ab
mov eax, 0x61
pop esi
ret
mov dword [esi + 0x90], 1
movzx ecx, byte [edx]
shl ecx, 8
movzx eax, byte [edx + 1]
add ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
add ecx, eax
mov dword [esi + 0x94], ecx
movzx ecx, byte [edx + 4]
shl ecx, 8
movzx eax, byte [edx + 5]
add ecx, eax
movzx eax, byte [edx + 6]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 8
add ecx, eax
mov dword [esi + 0x98], ecx
movzx ecx, byte [edx + 8]
movzx eax, byte [edx + 9]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0xa]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0xb]
shl ecx, 8
add ecx, eax
mov dword [esi + 0x9c], ecx
movzx ecx, byte [edx + 0xc]
movzx eax, byte [edx + 0xd]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0xe]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0xf]
shl ecx, 8
add ecx, eax
mov dword [esi + 0xa0], ecx
movzx ecx, byte [edx + 0x10]
movzx eax, byte [edx + 0x11]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x12]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x13]
shl ecx, 8
add ecx, eax
mov dword [esi + 0xa4], ecx
movzx ecx, byte [edx + 0x14]
movzx eax, byte [edx + 0x15]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x16]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x17]
shl ecx, 8
add ecx, eax
mov dword [esi + 0xa8], ecx
movzx ecx, byte [edx + 0x18]
movzx eax, byte [edx + 0x19]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x1a]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x1b]
shl ecx, 8
add ecx, eax
mov dword [esi + 0xac], ecx
movzx ecx, byte [edx + 0x1c]
movzx eax, byte [edx + 0x1d]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x1e]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x1f]
shl ecx, 8
add ecx, eax
xor eax, eax
mov dword [esi + 0xb0], ecx
pop esi
ret
Function at 0x48e3d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
push 0x3000
push 0x16
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0xac], eax
lea ecx, [esi + 0xa8]
mov byte [eax], 0x8b
mov eax, dword [esi + 0xac]
mov byte [eax + 1], 0x44
mov eax, dword [esi + 0xac]
mov byte [eax + 2], 0x24
mov eax, dword [esi + 0xac]
mov byte [eax + 3], 4
mov eax, dword [esi + 0xac]
mov byte [eax + 4], 0xa3
mov eax, dword [esi + 0xac]
mov dword [eax + 5], ecx
mov eax, dword [esi + 0xac]
mov byte [eax + 9], 0xc7
mov eax, dword [esi + 0xac]
mov byte [eax + 0xa], 0x44
mov eax, dword [esi + 0xac]
mov byte [eax + 0xb], 0x24
mov eax, dword [esi + 0xac]
mov byte [eax + 0xc], 4
mov eax, dword [esi + 0xac]
mov dword [eax + 0xd], esi
mov eax, dword [esi + 0xac]
mov byte [eax + 0x11], 0xe9
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
mov ecx, dword [esi + 0xac]
test eax, eax
je 0x48e49c
mov eax, 0x48e309
sub eax, ecx
sub eax, 0x16
mov dword [ecx + 0x12], eax
push dword [esi + 0xac]
push 0xfffffffffffffffc
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [esi + 0xa4], eax
pop esi
ret
mov eax, 0x48a76c
mov byte [esi + 0x58], 1
sub eax, ecx
sub eax, 0x16
mov dword [ecx + 0x12], eax
push dword [esi + 0xac]
push 0xfffffffffffffffc
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [esi + 0xa4], eax
pop esi
ret
Function at 0x48f81f
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
call fcn.0049998e
mov edi, eax
mov esi, dword [edi + 0xa3]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
push dword [edi + 0x8f]
call dword [sym.imp.USER32.dll_GetDC]
push dword [edi + 0xa7]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
push ebx
call ebp
mov dword [esp + 0x14], eax
test esi, esi
je 0x48f872
mov eax, dword [esi - 4]
cdq
sub eax, edx
sar eax, 1
jmp 0x48f874
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
push dword [esp + 0x14]
push ebx
call ebp
push ebx
push dword [edi + 0x8f]
call dword [sym.imp.USER32.dll_ReleaseDC]
add dword [esp + 0x1c], 6
add dword [esp + 0x20], 6
push esi
push dword [edi + 0x8f]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push dword [edi + 0x8f]
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push dword [edi + 0x9f]
push dword [edi + 0x9b]
call dword [sym.imp.USER32.dll_MonitorFromPoint]
xor ecx, ecx
mov dword [esp + 0x50], 0x28
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoA]
mov ecx, dword [esp + 0x1c]
mov eax, ecx
mov ebx, dword [edi + 0x9b]
cdq
sub eax, edx
mov edx, dword [esp + 0x5c]
sar eax, 1
sub ebx, eax
lea eax, [ebx + ecx]
cmp eax, edx
jle 0x48f92b
mov ebx, edx
sub ebx, ecx
mov eax, dword [esp + 0x54]
cmp ebx, eax
jge 0x48f935
mov ebx, eax
call dword [sym.imp.USER32.dll_GetCursor]
xor ebp, ebp
mov dword [esp + 0x14], 0
test eax, eax
je 0x48f9d6
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x48f9d6
cmp dword [esp + 0x34], ebp
sete byte [esp + 0x13]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x38]
push eax
push 0x18
push dword [esp + 0x38]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x48f9c4
mov eax, dword [esp + 0x40]
test eax, eax
jns 0x48f9b9
neg eax
mov dword [esp + 0x40], eax
movzx ecx, byte [esp + 0x13]
inc ecx
cdq
idiv ecx
mov ebp, eax
push dword [esp + 0x34]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x30]
call esi
add ebp, dword [edi + 0x9f]
push 0x54
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebp
push ebx
push 0
push dword [edi + 0x8f]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [edi + 0x8f]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0x64
push 1
push dword [edi + 0x8f]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
Function at 0x48fa1c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
call fcn.0049998e
mov esi, eax
mov eax, dword [esi + 0xa3]
test eax, eax
je 0x48fa42
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebx + 0x24]
mov edx, str.ToolTipText
call fcn.00495cbb
mov dword [esi + 0xa3], eax
test eax, eax
je 0x48fa70
cmp word [eax], 0
jne 0x48fab3
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi + 0xa3], 0
call fcn.0049998e
mov esi, eax
mov eax, dword [esi + 0x8f]
test eax, eax
je 0x48faac
push 1
push eax
mov dword [esi + 0x93], 0
mov dword [esi + 0x97], 0
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [esi + 0x8f]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x80]
mov dword [esi + 0x97], eax
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x3c]
mov dword [esi + 0x93], eax
test edi, edi
je 0x48fae0
mov eax, dword [edi]
mov dword [esi + 0x9b], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x9f], eax
cmp byte [ebp + 8], 0
je 0x48faf2
call fcn.0048f81f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x2bc
push 1
push dword [esi + 0x8f]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401640
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 1
jne 0x401654
mov eax, dword [0x435b2c]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
jmp 0x401666
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [0x435b30]
shr edx, 1
cmp dword [ebp - 4], edx
jae 0x4016eb
mov eax, dword [ebp - 4]
mov ecx, dword [0x435b14]
movzx edx, word [ecx + eax*2]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
shr eax, 0xc
cmp eax, 3
jne 0x4016e6
mov ecx, dword [ebp - 0xc]
and ecx, 0xfff
add ecx, 0x1474
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
sub edx, 0x1474
mov dword [ebp - 8], edx
cmp dword [ebp - 4], 0
jne 0x4016c7
push 0x20e
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x4016c7
xor eax, eax
jmp 0x4016eb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx]
add eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov dword [edx + ecx], eax
jmp 0x40165d
mov esp, ebp
pop ebp
ret

Function at 0x401a60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x435b20], 0x24e1
mov eax, dword [0x435b20]
sub eax, 0x24e1
mov dword [0x435b20], eax
mov ecx, 1
test ecx, ecx
je 0x401b0b
mov edx, dword [0x435b20]
cmp edx, dword [ebp + 0xc]
jb 0x401a97
jmp 0x401b0b
cmp dword [0x435b20], 0
jne 0x401ab5
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401ab5
xor eax, eax
jmp 0x401b0b
mov eax, dword [ebp + 8]
add eax, dword [0x435b20]
mov ecx, dword [eax]
add ecx, dword [0x435b20]
mov edx, dword [ebp + 8]
add edx, dword [0x435b20]
mov dword [edx], ecx
mov dword [ebp - 4], 0x12d6f0
mov eax, dword [0x435b20]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x435b20]
push eax
call fcn.00401810
add esp, 8
mov ecx, dword [0x435b20]
add ecx, 4
mov dword [0x435b20], ecx
jmp 0x401a7d
mov esp, ebp
pop ebp
ret
Function at 0x4020c0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x402130
xor eax, eax
jmp 0x402211
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
jne 0x402148
xor eax, eax
jmp 0x402211
push ebp
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
call fcn.00401b10
mov esp, ebp
pop ebp
ret
Function at 0x10001bff
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002c5fd
call fcn.1002b257
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.10002b1a
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 [0x1003ce0b], bl
jne 0x10001c54
cmp byte [0x1003ce0a], bl
je 0x10001c90
cmp dword [edi + 0x14], 0x10
jb 0x10001c5c
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ctor__reference_
mov edi, 0x1003c820
push edi
call fcn.100070e7
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10001c80
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10001c90
push edi
call fcn.10005ee0
pop ecx
push esi
call fcn.100070e7
pop ecx
mov eax, esi
call fcn.1002b220
ret 8

Function at 0x10001ca1
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002c5fd
call fcn.1002b257
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
push edi
call fcn.10002814
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 [0x1003ce0b], cl
jne 0x10001cec
cmp byte [0x1003ce0a], cl
je 0x10001d29
cmp dword [edi + 0x14], 0x10
jb 0x10001cf4
mov edi, dword [edi]
push eax
push edi
push str.CMemMappedFile__s__ctor__new_with_size_lu_
mov edi, 0x1003c820
push edi
call fcn.100070e7
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x10001d19
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10001d29
push edi
call fcn.10005ee0
pop ecx
mov ecx, esi
call fcn.100033f0
mov eax, esi
call fcn.1002b220
ret 4

Function at 0x10001d3a
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002c5fd
call fcn.1002b257
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
push edi
call fcn.10002814
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 [0x1003ce0b], al
jne 0x10001d82
cmp byte [0x1003ce0a], al
je 0x10001dbe
cmp dword [edi + 0x14], 0x10
jb 0x10001d8a
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ctor__new_
mov edi, 0x1003c820
push edi
call fcn.100070e7
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10001dae
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10001dbe
push edi
call fcn.10005ee0
pop ecx
mov eax, esi
call fcn.1002b220
ret
Function at 0x1000263e
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002c735
call fcn.1002b257
cmp byte [0x1003ce0b], 0
mov edi, 0x1003c820
mov esi, dword [ebp + 8]
jne 0x10002664
cmp byte [0x1003ce0a], 0
je 0x10002693
push esi
push str.CMemMappedFile_CreateWithSize__size_lu_
push edi
call fcn.100070e7
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10002683
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10002693
push edi
call fcn.10005ee0
pop ecx
call fcn.100070e7
test al, al
je 0x100026ef
call fcn.1001c19e
test al, al
je 0x100026ef
cmp byte [0x1003ce0b], 0
jne 0x100026b7
cmp byte [0x1003ce0a], 0
je 0x100026e6
push esi
push str.CMemMappedFile::CreateWithSize__lu___REMOTE_CREATION_
push edi
call fcn.100070e7
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x100026d6
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100026e6
push edi
call fcn.10005ee0
pop ecx
push esi
call fcn.1001bf9c
pop ecx
jmp 0x1000274c
cmp byte [0x1003ce0b], 0
jne 0x10002701
cmp byte [0x1003ce0a], 0
je 0x10002730
push esi
push str.CMemMappedFile::CreateWithSize__lu___LOCAL_CREATION_
push edi
call fcn.100070e7
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10002720
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10002730
push edi
call fcn.10005ee0
pop ecx
push 0x34
call fcn.100070e7
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov dword [ebp - 4], eax
test ecx, ecx
je 0x1000274c
push esi
call fcn.10001ca1
call fcn.1002b220
ret

Function at 0x100028bc
Capabilities:
Print debug messages

Disassembly:
push 0x28
mov eax, 0x1002c7ad
call fcn.1002b28b
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 [0x1003ce0b], bl
jne 0x100028e6
cmp byte [0x1003ce0a], bl
je 0x10002923
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x100028f0
mov eax, dword [esi]
push ecx
push eax
push str.CMemMappedFile_GetExistingMemoryMappedFile__name_s__size_lu_
mov edi, 0x1003c820
push edi
call fcn.100070e7
add esp, 0x10
cmp byte [0x1003ce0a], bl
je 0x10002914
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], bl
je 0x10002923
push edi
call fcn.10005ee0
pop ecx
push esi
call fcn.100070e7
mov edi, eax
pop ecx
test edi, edi
jne 0x10002989
push 0x34
call fcn.100070e7
mov edi, eax
pop ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], ebx
test edi, edi
je 0x1000296e
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.10002b1a
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.10001bff
mov edi, eax
jmp 0x10002970
mov edi, ebx
test bl, 1
je 0x10002989
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10002989
inc eax
push eax
push dword [ebp - 0x28]
call fcn.100070e7
pop ecx
pop ecx
mov eax, edi
call fcn.1002b235
ret
Function at 0x100033f0
Capabilities:
Print debug messages

Disassembly:
mov al, byte [0x1003ce0b]
push esi
mov esi, ecx
push edi
mov edi, 0x1003c820
test al, al
jne 0x1000340a
cmp byte [0x1003ce0a], 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.100070e7
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10003434
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov al, byte [0x1003ce0b]
test al, al
je 0x10003449
push edi
call fcn.10005ee0
mov al, byte [0x1003ce0b]
pop ecx
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x100034e5
mov ecx, esi
call fcn.100070e7
mov dword [esi + 0x20], eax
test eax, eax
je 0x100034b9
cmp byte [0x1003ce0b], 0
jne 0x10003474
cmp byte [0x1003ce0a], 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.100070e7
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x100034a1
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100034b1
push edi
call fcn.10005ee0
pop ecx
push esi
call fcn.100070e7
jmp 0x1000352b
cmp byte [0x1003ce0b], 0
jne 0x100034cb
cmp byte [0x1003ce0a], 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 [0x1003ce0a], 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.100070e7
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x1000351c
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x1000352c
push edi
call fcn.10005ee0
pop ecx
pop edi
pop esi
ret

Function at 0x10003670
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x1003ce0b], 0
push esi
mov esi, ecx
jne 0x10003685
cmp byte [0x1003ce0a], 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, 0x1003c820
push eax
push str.CMemMappedFile__s__size___lu
push edi
call fcn.100070e7
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x100036b8
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100036c8
push edi
call fcn.10005ee0
pop ecx
pop edi
mov eax, dword [esi + 0x24]
pop esi
ret
Function at 0x100036e0
Capabilities:
Print debug messages

Disassembly:
cmp byte [0x1003ce0b], 0
push esi
mov esi, ecx
jne 0x100036f5
cmp byte [0x1003ce0a], 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, 0x1003c820
cmove eax, edx
push eax
push ecx
push str.CMemMappedFile__s__isValid___s
push edi
call fcn.100070e7
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x10003737
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10003747
push edi
call fcn.10005ee0
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 [0x1003ce0b], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1003c820
push edi
mov edi, ecx
jne 0x100037d4
cmp byte [0x1003ce0a], 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.100070e7
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x10003809
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10003819
push ebx
call fcn.10005ee0
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 [0x1002f5c8]
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 [0x1003ce0b], bl
jne 0x1000389f
cmp byte [0x1003ce0a], 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, 0x1003c820
push esi
call fcn.100070e7
add esp, 0x10
cmp byte [0x1003ce0a], bl
je 0x100038d4
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], bl
je 0x100038e3
push esi
call fcn.10005ee0
pop ecx
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, edi
call esi
jmp 0x10003943
cmp byte [0x1003ce0b], bl
jne 0x10003906
cmp byte [0x1003ce0a], 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, 0x1003c820
push esi
call fcn.100070e7
add esp, 0xc
cmp byte [0x1003ce0a], bl
je 0x10003934
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], bl
je 0x10003943
push esi
call fcn.10005ee0
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