joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x749838b4
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5d0a320a
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40183c
Capabilities:
Create process on windows
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x4055ac], 0
je 0x401919
xor edx, edx
push ebp
push 0x401912
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x405035], 0
je 0x40186e
push 0x4055b4
call sub.KERNEL32.DLL_TlsGetValue
mov byte [0x4055ac], 0
mov eax, dword [0x40560c]
push eax
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
mov dword [0x40560c], eax
mov ebx, dword [0x4055d4]
jmp 0x4018a1
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, dword [ebx]
cmp ebx, 0x4055d4
jne 0x40188f
mov eax, 0x4055d4
call fcn.0040113c
mov eax, 0x4055e4
call fcn.0040113c
mov eax, 0x405610
call fcn.0040113c
mov eax, dword [0x4055cc]
test eax, eax
je 0x4018e7
mov edx, dword [eax]
mov dword [0x4055cc], edx
push eax
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, dword [0x4055cc]
test eax, eax
jne 0x4018d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401919
cmp byte [0x405035], 0
je 0x401907
push 0x4055b4
call sub.KERNEL32.DLL_TlsSetValue
push 0x4055b4
call sub.KERNEL32.DLL_WinExec
ret
pop ebx
pop ebp
ret
Function at 0x401e64
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
cmp byte [0x4055ac], 0
jne 0x401e81
call fcn.00401778
test al, al
je 0x401e89
cmp ebx, 0x7ffffff8
jle 0x401e93
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x401fe7
xor ecx, ecx
push ebp
push 0x401fe0
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x405035], 0
je 0x401eb4
push 0x4055b4
call sub.KERNEL32.DLL_TlsGetValue
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x401ec4
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x401f63
mov eax, ebx
test eax, eax
jns 0x401ed9
add eax, 3
sar eax, 2
mov edx, dword [0x40560c]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x401f63
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x401f14
mov eax, ebx
test eax, eax
jns 0x401f03
add eax, 3
sar eax, 2
mov ecx, dword [0x40560c]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x401f3a
mov ecx, ebx
test ecx, ecx
jns 0x401f1d
add ecx, 3
sar ecx, 2
mov edi, dword [0x40560c]
mov dword [edi + ecx*4 - 0xc], eax
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, esi
mov edx, dword [edx + 8]
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x40559c]
sub ebx, 4
add dword [0x4055a0], ebx
call fcn.00402a44
jmp 0x401fe7
cmp ebx, dword [0x405604]
jg 0x401fb5
sub dword [0x405604], ebx
cmp dword [0x405604], 0xc
jge 0x401f87
add ebx, dword [0x405604]
xor eax, eax
mov dword [0x405604], eax
mov eax, dword [0x405608]
add dword [0x405608], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x40559c]
sub ebx, 4
add dword [0x4055a0], ebx
call fcn.00402a44
jmp 0x401fe7
mov eax, ebx
call fcn.00401d70
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401fe7
cmp byte [0x405035], 0
je 0x401fdf
push 0x4055b4
call sub.KERNEL32.DLL_TlsSetValue
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x401ff4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [0x4055b0], eax
cmp byte [0x4055ac], 0
jne 0x40202c
call fcn.00401778
test al, al
jne 0x40202c
mov dword [0x4055b0], 8
mov dword [ebp - 4], 8
jmp 0x40218d
xor ecx, ecx
push ebp
push 0x402186
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x405035], 0
je 0x40204d
push 0x4055b4
call sub.KERNEL32.DLL_TlsGetValue
mov esi, ebx
sub esi, 4
mov ebx, dword [esi]
test bl, 2
jne 0x402068
mov dword [0x4055b0], 9
jmp 0x40215d
dec dword [0x40559c]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x4055a0], eax
test bl, 1
je 0x4020c8
mov eax, esi
sub eax, 0xc
mov edx, dword [eax + 8]
cmp edx, 0xc
jl 0x402098
test edx, 0x80000003
je 0x4020a7
mov dword [0x4055b0], 0xa
jmp 0x40215d
mov eax, esi
sub eax, edx
cmp edx, dword [eax + 8]
je 0x4020bf
mov dword [0x4055b0], 0xa
jmp 0x40215d
add ebx, edx
mov esi, eax
call fcn.0040191c
and ebx, 0x7ffffffc
mov eax, esi
add eax, ebx
mov edi, eax
cmp edi, dword [0x405608]
jne 0x402108
sub dword [0x405608], ebx
add dword [0x405604], ebx
cmp dword [0x405604], 0x3c00
jle 0x4020f9
call fcn.00401c0c
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00402a44
jmp 0x40218d
mov edx, dword [eax]
test dl, 2
je 0x40212b
and edx, 0x7ffffffc
cmp edx, 4
jge 0x402126
mov dword [0x4055b0], 0xb
jmp 0x40215d
or dword [eax], 1
jmp 0x402154
mov eax, edi
cmp dword [eax + 4], 0
je 0x40213e
cmp dword [eax], 0
je 0x40213e
cmp dword [eax + 8], 0xc
jge 0x40214a
mov dword [0x4055b0], 0xb
jmp 0x40215d
mov edx, dword [eax + 8]
add ebx, edx
call fcn.0040191c
mov edx, ebx
mov eax, esi
call fcn.00401b84
mov eax, dword [0x4055b0]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40218d
cmp byte [0x405035], 0
je 0x402185
push 0x4055b4
call sub.KERNEL32.DLL_TlsSetValue
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x402690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40400c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402728
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402708
xor eax, eax
push ebp
push 0x402701
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402744
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402708
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40400c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40400c], ax
mov esp, ebp
pop ebp
ret
Function at 0x402d70
Capabilities:
Get geographical location
Write file on windows

Disassembly:
push ecx
cmp byte [0x405034], 0
je 0x402dd1
cmp word [0x405208], 0xd7b2
jne 0x402d99
cmp dword [0x405210], 0
jbe 0x402d99
mov eax, 0x405204
call dword [0x405220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x404054
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_WriteFile
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402df8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_WriteFile
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
pop edx
ret
cmp byte [0x404018], 0
jne 0x402ded
push 0
push 0x40404c
push 0x404054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403528
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00402fb4
mov eax, dword [ebp - 8]
call fcn.00402fb4
xor eax, eax
push ebp
push 0x4035b5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x403590
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00402fc4
push eax
mov eax, dword [ebp - 4]
call fcn.00402fc4
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40359a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4035bc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402f10
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.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
mov edi, eax
pop ecx
test edi, edi
jne 0x10002989
push 0x34
call fcn.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
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.1001f8f1
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
Function at 0x10003960
Capabilities:
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x1003ce0b], 0
push ebx
push edi
mov edi, ecx
mov ebx, 0x1003c820
jne 0x1000397e
cmp byte [0x1003ce0a], 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.1001f8f1
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x100039ab
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100039bb
push ebx
call fcn.10005ee0
pop ecx
mov eax, dword [edi]
push esi
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002f5c8]
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 [0x1002f5c8]
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 [0x1003ce0b], al
jne 0x10003a35
cmp byte [0x1003ce0a], 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 [0x1003ce0b], 0
jne 0x10003a61
cmp byte [0x1003ce0a], 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.1001f8f1
add esp, 0x10
cmp byte [0x1003ce0a], 0
je 0x10003a92
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10003aa2
push ebx
call fcn.10005ee0
pop ecx
xor eax, eax
pop edi
pop ebx
pop ebp
ret 4