joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468670
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4d4008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x110]
push 0x4d72f8
push str._s.
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x254], eax
cmp eax, 0xffffffff
jne 0x4686d4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470463
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
nop dword [eax]
mov ecx, 0x4c4c40
lea eax, [ebp - 0x224]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x468710
test dl, dl
je 0x46870c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x468710
add eax, 2
add ecx, 2
test dl, dl
jne 0x4686f0
xor eax, eax
jmp 0x468715
sbb eax, eax
or eax, 1
test eax, eax
je 0x4687da
mov eax, 0x4c4c3c
lea ecx, [ebp - 0x224]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x468748
test dl, dl
je 0x468744
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x468748
add ecx, 2
add eax, 2
test dl, dl
jne 0x468728
xor eax, eax
jmp 0x46874d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4687da
test byte [ebp - 0x250], 0x10
jne 0x4687da
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 4
lea esi, [ebp - 0x224]
add esi, eax
mov eax, dword [esi]
cmp eax, 0x7461642e
jne 0x4687a7
lea eax, [ebp - 0x224]
push eax
push 0x4d72f8
lea eax, [ebp - 0x110]
push str._s_s
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
call ebx
mov eax, dword [esi]
cmp eax, 0x67706a2e
jne 0x4687d4
lea eax, [ebp - 0x224]
push eax
push 0x4d72f8
lea eax, [ebp - 0x110]
push str._s_s
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
call ebx
mov esi, dword [ebp - 0x254]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4686e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00470463
mov esp, ebp
pop ebp
ret
Function at 0x468d70
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4d4008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x877ed8], 0
je 0x468f07
push str.access.dat
push 0x4d72f8
lea eax, [ebp - 0x108]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
je 0x468f07
push 0
push dword [edi + 0x877ed8]
call dword [sym.imp.PAL.dll_PalListGetDataCount]
add esp, 8
test eax, eax
je 0x468ee4
mov esi, eax
shl esi, 5
add esi, eax
push 0
push esi
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
mov ebx, eax
add esp, 8
mov dword [ebp - 0x10c], ebx
test ebx, ebx
je 0x468f07
push 0
push dword [edi + 0x877ed8]
call dword [sym.imp.PAL.dll_PalListFind]
mov edi, eax
add esp, 8
test edi, edi
je 0x468e62
push 0
push 0
push edi
call dword [sym.imp.PAL.dll_PalListGetData]
push 0x21
push eax
push ebx
call fcn.0047a5c0
push edi
add ebx, 0x21
call dword [sym.imp.PAL.dll_PalListFindNext]
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x468e35
mov ebx, dword [ebp - 0x10c]
mov ecx, esi
mov dword [ebp - 0x110], esi
and ecx, 3
je 0x468e79
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x110], eax
mov edi, dword [ebp - 0x10c]
mov cl, 4
mov edx, dword [ebp - 0x110]
mov eax, 0xff987dee
xor dword [edi], eax
mov eax, 0x84df873
xor dword [edi], eax
ror byte [edi], cl
add edi, 4
add cl, 1
and cl, 0xff
sub edx, 4
jne 0x468e87
push 0
lea eax, [ebp - 0x118]
push eax
push esi
mov esi, dword [ebp - 0x114]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470463
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x114]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470463
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00470463
mov esp, ebp
pop ebp
ret
Function at 0x469230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4d4008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push str.system.dat
push 0x4d72f8
lea eax, [ebp - 0x108]
mov esi, ecx
push str._s_s
push eax
mov dword [ebp - 0x114], esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4692b2
push 0x4c4d80
call dword [sym.imp.PAL.dll_PalErrorLogPrintf]
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470463
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.PAL.dll_PalCheckWindowMode]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov dword [esi + 8], eax
lea eax, [ebp - 0x110]
push eax
push 2
push 0x4bd324
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
push eax
push 0x330
push esi
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x265c8]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x265cc]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x265d4]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x265d0]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0xc
lea eax, [esi + 0x265d8]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x265e4]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x265e8]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x265f0]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x265ec]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0xc
lea eax, [esi + 0x265f4]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0xc
lea eax, [esi + 0x26760]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0xb34
lea eax, [esi + 0x2676c]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 8
lea eax, [esi + 0x272a0]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x1000
lea eax, [esi + 0x44968]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
add esi, 0x877ee8
push eax
push 4
push esi
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
push eax
push dword [esi]
mov esi, dword [ebp - 0x114]
push dword [esi + 0x877ee0]
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
add esi, 0x877ee4
push eax
push 4
push esi
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x114]
push dword [esi]
push dword [eax + 0x877edc]
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00470463
mov esp, ebp
pop ebp
ret
Function at 0x46c910
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
push 0
push eax
mov eax, dword [ebp + 8]
add eax, ebx
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x46c96b
test eax, eax
je 0x46c959
mov esi, dword [edi + 8]
add ebx, eax
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [edi + 4]
cmp eax, esi
jae 0x46c962
mov eax, dword [ebp + 0xc]
cmp ebx, eax
jb 0x46c926
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push 0x18
push str.HTTP:_recv_timeout_error
jmp 0x46c972
push 0x10
push str.HTTP:_recv_error
lea ecx, [edi + 0x18]
call fcn.0042fea0
push dword [edi]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
mov eax, 0x80004005
pop ebx
pop ebp
ret 8

Function at 0x46ca40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
mov eax, dword [0x4d4008]
xor eax, esp
mov dword [esp + 0x1a4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x14]
push edi
mov edi, dword [0x6dc75c]
push eax
push 0x101
mov dword [edi], 0xffffffff
mov dword [edi + 8], 0x2710
call dword [sym.imp.WS2_32.dll_WSAStartup]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
jne 0x46cac7
push 0x19
push str.HTTP:_gethostbyname_error
lea ecx, [edi + 0x18]
call fcn.0042fea0
push dword [edi]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0x80004005
pop edi
pop esi
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.00470463
mov esp, ebp
pop ebp
ret 8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x46cae3
push 0x12
push str.HTTP:_socket_error
jmp 0x46ca96
mov eax, 2
mov word [esp + 8], ax
mov eax, dword [esi + 0xc]
push 0x50
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x46cb24
push 0x13
push str.HTTP:_connect_error
jmp 0x46ca96
mov ecx, dword [esp + 0x1ac]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00470463
mov esp, ebp
pop ebp
ret 8
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.1001382b
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x10001cea
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.1001382b
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.1001382b
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.1001382b
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.1001382b
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100023ce
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
xor edi, edi
call fcn.1001382b
test al, al
jne 0x1000243d
push 0x34
call fcn.1001382b
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.1001382b
jmp 0x10002548
call fcn.1001bb6e
test al, al
je 0x100024fe
push esi
call fcn.1001382b
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.1001382b
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.1001382b
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.1001382b
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.1001382b
cmp byte [0x1003cde0], 0
pop ecx
pop ecx
je 0x10002524
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x34
call fcn.1001382b
pop ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x10002546
push esi
mov ecx, eax
call fcn.1001382b
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.1001382b
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x1000258c
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
call fcn.1001382b
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.1001382b
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.1001382b
add esp, 0xc
cmp byte [0x1003cde0], 0
je 0x100025f7
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x34
call fcn.1001382b
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.1001382b
add esp, 0x10
cmp byte [0x1003cde0], bl
je 0x100027bd
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.1001382b
mov edi, eax
pop ecx
test edi, edi
jne 0x10002822
push 0x34
call fcn.1001382b
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.1001382b
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.1001382b
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.1001382b
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.1001382b
add esp, 0x10
cmp byte [0x1003cde0], 0
je 0x1000322c
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call fcn.1001382b
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.1001382b
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.1001382b
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.1001382b
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.1001382b
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.1001382b
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.1001382b
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