joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f4b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001f68
push 0
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
jmp 0x1001f6b
and eax, 0x10
ret 4

Function at 0x100263f
Capabilities:
Shutdown system

Disassembly:
test byte [esp + 4], 2
jne 0x1002650
call fcn.01002613
cmp eax, 2
jne 0x100268e
test byte [esp + 4], 4
jne 0x1002673
push 4
push 0x40
push 0
push 0x1001251
push 0x522
push 0
call fcn.01003f0d
cmp eax, 6
jne 0x100268e
cmp word [0x100aa64], 0
jne 0x1002689
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x100268e
call fcn.01003f0d
ret 4

Function at 0x1002b34
Capabilities:
Create directory

Disassembly:
push edi
mov edi, dword [esp + 8]
mov cl, byte [edi]
test cl, cl
je 0x1002b99
push ebx
push esi
lea esi, [edi + 1]
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x3a
jne 0x1002b57
cmp byte [edi + 2], 0x5c
jne 0x1002b57
lea esi, [edi + 3]
jmp 0x1002b92
cmp cl, 0x5c
jne 0x1002b92
cmp al, cl
jne 0x1002b92
push 2
lea esi, [edi + 2]
pop ebx
jmp 0x1002b92
cmp byte [esi], 0x5c
jne 0x1002b89
cmp byte [esi - 1], 0x3a
je 0x1002b89
test ebx, ebx
je 0x1002b7a
dec ebx
jmp 0x1002b89
and byte [esi], 0
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x1002b68
pop esi
pop ebx
pop edi
ret 4

Function at 0x1002eaf
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
sub esp, 0x104
push ebp
push esi
mov esi, dword [0x100ac40]
xor ebp, ebp
cmp esi, ebp
push edi
mov edi, esi
je 0x1002f03
push ebx
mov ebx, dword [sym.imp.kernel32.dll_LocalFree]
cmp dword [0x100b884], ebp
jne 0x1002ef2
cmp dword [0x100b490], ebp
jne 0x1002ef2
push 0x80
push dword [esi]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.kernel32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call ebx
push edi
call ebx
cmp esi, ebp
mov edi, esi
jne 0x1002ecd
pop ebx
cmp dword [0x100b880], ebp
je 0x1002f53
cmp dword [0x100b884], ebp
jne 0x1002f53
cmp dword [0x100b490], ebp
jne 0x1002f53
push 0x100ac44
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
test byte [0x100b494], 0x20
je 0x1002f3e
lea eax, [esp + 0xc]
push eax
call fcn.01005b71
push 0x1001284
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
call fcn.01003f0d
cmp word [0x100aa64], 1
je 0x1002f6a
cmp dword [0x100b880], ebp
je 0x1002f6a
call fcn.01003f0d
pop edi
pop esi
mov dword [0x100b880], ebp
pop ebp
add esp, 0x104
ret
Function at 0x1002f7a
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
xor edi, edi
xor ebp, ebp
push edi
lea eax, [esp + 0x14]
push 0x1001348
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esp + 0x118]
inc edi
push esi
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.01005b32
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.kernel32.dll_CreateDirectoryA]
je 0x1003015
cmp edi, 0x190
jl 0x1002f8f
push esi
push 0
push 0x1001344
push dword [esp + 0x124]
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x1003006
xor ebp, ebp
push esi
inc ebp
call dword [sym.imp.kernel32.dll_DeleteFileA]
push 0
push esi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x104
ret 8
xor ebp, ebp
push ebp
push esi
call ebx
test eax, eax
je 0x1002fde
xor eax, eax
inc eax
mov dword [0x100b880], eax
mov ebp, eax
jmp 0x1003006

Function at 0x1003e60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push ebx
call dword [sym.imp.kernel32.dll_lstrlenA]
add eax, 0x14
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x1003ea0
push ebp
push 0x10
push ebp
push ebp
push 0x4b5
push ebp
call fcn.01003f0d
call fcn.01003547
mov dword [0x100aa5c], eax
xor eax, eax
jmp 0x1003f07
push edi
push ebx
push esi
call dword [sym.imp.kernel32.dll_lstrcpyA]
push 0x10013c4
push esi
call fcn.01005b32
push ebp
push 0x4000080
push 1
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x1003efa
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1003efa
test al, 0x10
je 0x1003efa
xor eax, eax
mov dword [0x100aa5c], ebp
inc eax
jmp 0x1003f06
call fcn.01003547
mov dword [0x100aa5c], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x1003f0d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1003f1c
pop dword [ebp - 8]
mov eax, 0x9886bfa5
add eax, 0x68797f77
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x25194443
add dword [ebp - 0x18], 0x29390108
mov dword [ebp - 0x14], 0x4d8ea498
add dword [ebp - 0x14], 0xe4a4a7ad
mov dword [ebp - 0x10], 0xbcde44ed
sub dword [ebp - 0x10], 0x709200bf
mov dword [ebp - 0xc], 0xf7d919a2
sub dword [ebp - 0xc], 0xf7d919a2
lea eax, [ebp - 0x18]
push eax
mov eax, 0x84e28a95
sub eax, 0x83e27941
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xabc96d62
sub dword [ebp - 0x18], 0x3757040c
mov dword [ebp - 0x14], 0x78bafb66
add dword [ebp - 0x14], 0xc8b1660f
mov dword [ebp - 0x10], 0x4306efd1
sub dword [ebp - 0x10], 0xdf978365
mov dword [ebp - 0xc], 0xbdfdc97f
add dword [ebp - 0xc], 0x42023681
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x37f86
push 0
call eax
mov ecx, 0x4adc
mov ebx, eax
mov esi, 0x806191bd
add esi, 0x80a2fe43
add esi, dword [ebp - 8]
mov edi, 0xcad07240
add edi, 0x27c2924d
mov dword [ebp - 4], 0x2f460039
mov edx, dword [esi]
mov dword [ebp - 4], 0xf4066b9b
xor edx, edi
mov dword [ebx], edx
xor dword [ebp - 4], 0xe0e043e6
add ebx, 4
add esi, 0x34599af1
add esi, 0xcba66513
loop 0x1004033
add eax, 0x4d67b44
add eax, 0xfb2aa2ff
xor ebx, ebx
add ebx, eax
add eax, 0xaf71869
add eax, 0xf508e79c
mov ecx, 0xee75902b
add ecx, 0x128a6fd5
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x1004809
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebx, ebx
inc ebx
push esi
mov edi, ebx
call fcn.01005bca
test eax, eax
jne 0x1004823
mov eax, ebx
jmp 0x100487e
cmp dword [0x100ac3c], 0
jne 0x1004870
test byte [0x100b898], bl
jne 0x1004870
push 6
push 0
push 0x100383d
push dword [0x100aa4c]
mov dword [0x100ae64], esi
push 0x7d3
push dword [0x100b4a4]
call fcn.01003f0d
sub eax, 6
je 0x100486e
dec eax
je 0x1004884
sub eax, 0x832
jne 0x1004870
mov dword [0x100ac3c], ebx
mov edi, ebx
push 0x80
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
xor edi, edi
jmp 0x100487c

Function at 0x1005a5e
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x1005a85
inc esi
mov al, byte [esi]
test al, al
je 0x1005a7e
cmp al, 0x22
jne 0x1005a73
cmp byte [esi], 0x22
jne 0x1005a96
jmp 0x1005a95
cmp al, 0x20
jle 0x1005a96
inc esi
cmp byte [esi], 0x20
jg 0x1005a89
jmp 0x1005a96
cmp al, 0x20
jg 0x1005a9c
inc esi
mov al, byte [esi]
test al, al
jne 0x1005a91
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x1005ab6
movzx eax, word [ebp - 0x14]
jmp 0x1005ab9
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x1005bca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1005bdd
xor eax, eax
jmp 0x1005be5
shr eax, 4
not eax
and eax, 1
ret 4
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
mov eax, 4
push edi
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
call fcn.00401121
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 4
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v3.5
push 0x80000002
call edi
mov eax, dword [esp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x1c]
push edx
push 0
push str.Install
push eax
call ebx
cmp byte [esi], 1
jne 0x401067
push str.true
jmp 0x4010a2
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v3.5
push 0x80000002
call edi
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push esi
lea eax, [esp + 0x1c]
push eax
push 0
push str.Install
push ecx
call ebx
cmp byte [esi], 1
je 0x401060
push str.false
push str.VersionFramework:::_S_n
call fcn.004011eb
mov edx, dword [esp + 0x14]
add esp, 8
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x4010c3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c004]
jne 0x4010cd
repz ret
jmp fcn.0040141e
Function at 0x4053d6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404243
and dword [ebp - 4], 0
cmp dword [0x40d924], 0
mov ebx, eax
jne 0x405487
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405538
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405538
push eax
call fcn.004041d1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40d924], eax
call esi
push eax
call fcn.004041d1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40d928], eax
call esi
push eax
call fcn.004041d1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40d92c], eax
call esi
push eax
call fcn.004041d1
pop ecx
mov dword [0x40d934], eax
test eax, eax
je 0x405487
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004041d1
pop ecx
mov dword [0x40d930], eax
mov eax, dword [0x40d930]
cmp eax, ebx
je 0x4054df
cmp dword [0x40d934], ebx
je 0x4054df
push eax
call fcn.0040424c
push dword [0x40d934]
mov esi, eax
call fcn.0040424c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4054df
test edi, edi
je 0x4054df
call esi
test eax, eax
je 0x4054d6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4054d6
test byte [ebp - 0xc], 1
jne 0x4054df
or dword [ebp + 0x10], 0x200000
jmp 0x405518
mov eax, dword [0x40d928]
cmp eax, ebx
je 0x405518
push eax
call fcn.0040424c
pop ecx
test eax, eax
je 0x405518
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405518
mov eax, dword [0x40d92c]
cmp eax, ebx
je 0x405518
push eax
call fcn.0040424c
pop ecx
test eax, eax
je 0x405518
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40d924]
call fcn.0040424c
pop ecx
test eax, eax
je 0x405538
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40553a
xor eax, eax
pop edi
pop esi
pop ebx
leave
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.10020b26
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.10020b26
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.10020b26
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.10020b26
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.10020b26
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.10020b26
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.10020b26
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.10020b26
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.10020b26
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.10020b26
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.10020b26
mov edi, eax
pop ecx
test edi, edi
jne 0x10002989
push 0x34
call fcn.10020b26
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.10020b26
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.10020b26
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.10020b26
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.10020b26
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.10020b26
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.10020b26
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.10020b26
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.10020b26
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.10020b26
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.10020b26
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.10020b26
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