joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457b50
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0xc
push esi
mov dword [esp + 8], 0
call fcn.00456c80
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push esi
push ecx
call fcn.00457930
mov ecx, dword [esp + 0x14]
add esp, 0xc
mov edx, ecx
neg edx
sbb edx, edx
test edx, fcn.00401100
je 0x457ba0
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
pop esi
add esp, 0xc
ret
cmp dword [esp + 4], 3
jne 0x457bdc
cmp dword [esi + 0x18], 0x10
jb 0x457bb2
mov esi, dword [esi + 4]
jmp 0x457bb5
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x457c11
mov esi, dword [0x4db284]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], esi
mov eax, ecx
pop esi
add esp, 0xc
ret
cmp dword [esi + 0x18], 0x10
jb 0x457be7
mov esi, dword [esi + 4]
jmp 0x457bea
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x457c11
mov esi, dword [0x4db284]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], esi
mov eax, ecx
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x14]
mov dword [esi], 0
call fcn.00456c80
mov dword [esi + 4], eax
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x457d70
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x457df0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x457df0
mov dl, byte [ecx]
cmp dl, 0xbc
push esi
jne 0x457dbb
cmp byte [ecx + 1], 0xbd
jne 0x457dbb
lea edx, [ecx + 2]
mov esi, edi
sub esi, edx
push ebx
mov bl, byte [edx]
mov byte [esi + edx], bl
add edx, 1
test bl, bl
jne 0x457d97
lea eax, [ecx + 1]
pop ebx
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x457da7
sub ecx, eax
pop esi
mov byte [ecx + edi - 4], dl
mov eax, edi
pop edi
ret
xor dl, 0x23
xor esi, esi
mov byte [edi], dl
cmp byte [ecx], 0
je 0x457de7
mov edx, edi
sub edx, ecx
jmp 0x457dd0
mov al, byte [ecx + 1]
add ecx, 1
sub al, 1
xor al, byte [edx + ecx - 1]
add esi, 1
mov byte [edx + ecx], al
cmp byte [ecx], 0
jne 0x457dd0
mov byte [esi + edi], 0
pop esi
mov eax, edi
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x460f23
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d8eb0]
jne 0x460f2d
repz ret
jmp fcn.00468769
Function at 0x467d33
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4d91e8]
je 0x467d4e
inc edi
cmp edi, 0x17
jb 0x467d3f
cmp edi, 0x17
jae 0x467ece
push ebp
push 3
call fcn.0047751c
cmp eax, 1
pop ecx
je 0x467e9a
push 3
call fcn.0047751c
test eax, eax
pop ecx
jne 0x467d82
cmp dword [0x4d8ec4], 1
je 0x467e9a
cmp ebx, 0xfc
je 0x467ecd
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4dd240
push ebp
call fcn.00466ae6
add esp, 0xc
test eax, eax
je 0x467db8
push esi
push esi
push esi
push esi
push esi
call fcn.00462c09
add esp, 0x14
push 0x104
mov esi, 0x4dd259
push esi
push 0
mov byte [0x4dd35d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x467dfc
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00466ae6
add esp, 0xc
test eax, eax
je 0x467dfc
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00462c09
add esp, 0x14
push esi
call fcn.00464ad0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x467e41
push esi
call fcn.00464ad0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4dd554
push 0x4a50dc
sub ecx, eax
push ecx
push eax
call fcn.00461e92
add esp, 0x14
test eax, eax
je 0x467e41
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00462c09
add esp, 0x14
jmp 0x467e43
xor esi, esi
push 0x4a50d8
push ebx
push ebp
call fcn.00466b4b
add esp, 0xc
test eax, eax
je 0x467e63
push esi
push esi
push esi
push esi
push esi
call fcn.00462c09
add esp, 0x14
push dword [edi*8 + 0x4d91ec]
push ebx
push ebp
call fcn.00466b4b
add esp, 0xc
test eax, eax
je 0x467e85
push esi
push esi
push esi
push esi
push esi
call fcn.00462c09
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0047735f
add esp, 0xc
jmp 0x467ecd
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x467ecd
cmp ebp, 0xffffffff
je 0x467ecd
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4d91ec]
push dword [esi]
call fcn.00464ad0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x47735f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00468123
xor ebx, ebx
cmp dword [0x4ddb0c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x477435
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x477515
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4aa4d4
push edi
call esi
cmp eax, ebx
je 0x477515
push eax
call fcn.004680b5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4ddb0c], eax
call esi
push eax
call fcn.004680b5
mov dword [esp], 0x4aa4b0
push edi
mov dword [0x4ddb10], eax
call esi
push eax
call fcn.004680b5
mov dword [0x4ddb14], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00466873
test eax, eax
pop ecx
pop ecx
je 0x477403
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00462c09
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x477435
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004680b5
cmp eax, ebx
pop ecx
mov dword [0x4ddb1c], eax
je 0x477435
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004680b5
pop ecx
mov dword [0x4ddb18], eax
mov eax, dword [0x4ddb18]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4774ba
cmp dword [0x4ddb1c], ecx
je 0x4774ba
push eax
call fcn.0046812c
push dword [0x4ddb1c]
mov esi, eax
call fcn.0046812c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4774ba
cmp edi, ebx
je 0x4774ba
call esi
cmp eax, ebx
je 0x477487
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x477487
test byte [ebp - 0x18], 1
jne 0x4774ba
lea eax, [ebp - 0x10]
push eax
call fcn.004668aa
test eax, eax
pop ecx
je 0x4774a2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00462c09
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4774b1
or dword [ebp + 0x10], 0x200000
jmp 0x4774f5
or dword [ebp + 0x10], 0x40000
jmp 0x4774f5
mov eax, dword [0x4ddb10]
cmp eax, dword [ebp - 8]
je 0x4774f5
push eax
call fcn.0046812c
cmp eax, ebx
pop ecx
je 0x4774f5
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4774f5
mov eax, dword [0x4ddb14]
cmp eax, dword [ebp - 8]
je 0x4774f5
push eax
call fcn.0046812c
cmp eax, ebx
pop ecx
je 0x4774f5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ddb0c]
call fcn.0046812c
cmp eax, ebx
pop ecx
je 0x477515
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x477517
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47f87e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4d8eb0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0047f813
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004619c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x47f8cd
cmp dword [ebp - 0x1c], 5
jb 0x47f8e5
jmp 0x47f8e1
cmp dword [ebp - 0x10], 1
jne 0x47f8e5
cmp dword [ebp - 0x1c], 4
ja 0x47f8e1
jne 0x47f8e5
cmp dword [ebp - 0x18], 0
jbe 0x47f8e5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4ab8b0
call fcn.0047f6e7
test eax, eax
jge 0x47f906
mov byte [0x4da7e0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00460f23
add ebp, 0x78
leave
ret
Function at 0x10001c05
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002c674
call fcn.1002b067
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
xor ebx, ebx
mov ecx, edi
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
call fcn.10002b37
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], 1
mov dword [ebp - 4], ebx
cmp byte [0x1003cdfb], bl
jne 0x10001c5a
cmp byte [0x1003cdfa], bl
je 0x10001c96
cmp dword [edi + 0x14], 0x10
jb 0x10001c62
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ctor__reference_
mov edi, 0x1003c818
push edi
call fcn.100280ba
add esp, 0xc
cmp byte [0x1003cdfa], 0
je 0x10001c86
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10001c96
push edi
call fcn.10005eb0
pop ecx
push esi
call fcn.100280ba
pop ecx
mov eax, esi
call fcn.1002b030
ret 8

Function at 0x10001ca7
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002c674
call fcn.1002b067
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
push edi
call fcn.1000282f
pop ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov byte [esi + 0x30], cl
mov dword [ebp - 4], ecx
cmp byte [0x1003cdfb], cl
jne 0x10001cf2
cmp byte [0x1003cdfa], cl
je 0x10001d2f
cmp dword [edi + 0x14], 0x10
jb 0x10001cfa
mov edi, dword [edi]
push eax
push edi
push str.CMemMappedFile__s__ctor__new_with_size_lu_
mov edi, 0x1003c818
push edi
call fcn.100280ba
add esp, 0x10
cmp byte [0x1003cdfa], 0
je 0x10001d1f
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10001d2f
push edi
call fcn.10005eb0
pop ecx
mov ecx, esi
call fcn.100033f0
mov eax, esi
call fcn.1002b030
ret 4

Function at 0x10001d40
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x1002c674
call fcn.1002b067
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov dword [esi], vtable.CMemMappedFile.0
push edi
call fcn.1000282f
pop ecx
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov dword [ebp - 4], eax
cmp byte [0x1003cdfb], al
jne 0x10001d88
cmp byte [0x1003cdfa], al
je 0x10001dc4
cmp dword [edi + 0x14], 0x10
jb 0x10001d90
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ctor__new_
mov edi, 0x1003c818
push edi
call fcn.100280ba
add esp, 0xc
cmp byte [0x1003cdfa], 0
je 0x10001db4
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10001dc4
push edi
call fcn.10005eb0
pop ecx
mov eax, esi
call fcn.1002b030
ret
Function at 0x10002659
Capabilities:
Print debug messages

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

Function at 0x100028d9
Capabilities:
Print debug messages

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

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

Function at 0x10003670
Capabilities:
Print debug messages

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

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x1003cdfb], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1003c818
push edi
mov edi, ecx
jne 0x100037d4
cmp byte [0x1003cdfa], 0
je 0x10003819
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x100037de
mov ecx, dword [esi]
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100037e9
mov eax, dword [eax]
push ecx
push eax
push str.CMemMappedFile__s__load_from_file___11S
push ebx
call fcn.100280ba
add esp, 0x10
cmp byte [0x1003cdfa], 0
je 0x10003809
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10003819
push ebx
call fcn.10005eb0
pop ecx
xor ebx, ebx
cmp dword [esi + 0x14], 8
jb 0x10003823
mov esi, dword [esi]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileW]
push ebx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ecx, eax
test ecx, ecx
je 0x100038f6
mov eax, dword [edi]
mov dword [edi + 0x24], ecx
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, edi
call esi
test eax, eax
je 0x10003943
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [edi + 0x24]
push dword [edi + 0x28]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x1000388f
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 0x24]
jne 0x1000388f
mov bl, 1
jmp 0x100038e3
cmp byte [0x1003cdfb], bl
jne 0x1000389f
cmp byte [0x1003cdfa], bl
je 0x100038e3
lea esi, [edi + 4]
cmp dword [esi + 0x14], 0x10
jb 0x100038aa
mov esi, dword [esi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push str.CMemMappedFile__s__ERROR_READING_FILE__err_u_
mov esi, 0x1003c818
push esi
call fcn.100280ba
add esp, 0x10
cmp byte [0x1003cdfa], bl
je 0x100038d4
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], bl
je 0x100038e3
push esi
call fcn.10005eb0
pop ecx
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, edi
call esi
jmp 0x10003943
cmp byte [0x1003cdfb], bl
jne 0x10003906
cmp byte [0x1003cdfa], bl
je 0x10003943
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x10003911
mov edi, dword [edi]
push edi
push str.CMemMappedFile__s__ERROR___EMPTY_FILE
mov esi, 0x1003c818
push esi
call fcn.100280ba
add esp, 0xc
cmp byte [0x1003cdfa], bl
je 0x10003934
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], bl
je 0x10003943
push esi
call fcn.10005eb0
pop ecx
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x10003960
Capabilities:
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x1003cdfb], 0
push ebx
push edi
mov edi, ecx
mov ebx, 0x1003c818
jne 0x1000397e
cmp byte [0x1003cdfa], 0
je 0x100039bb
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x10003989
mov eax, dword [eax]
push dword [ebp + 8]
push eax
push str.CMemMappedFile__s__mapForReading_numBytes_u_
push ebx
call fcn.100280ba
add esp, 0x10
cmp byte [0x1003cdfa], 0
je 0x100039ab
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x100039bb
push ebx
call fcn.10005eb0
pop ecx
mov eax, dword [edi]
push esi
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, edi
call esi
cmp dword [edi + 0x20], 0
jne 0x10003a09
cmp byte [edi + 0x30], 0
jne 0x100039ec
mov eax, dword [edi]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x1002f5c0]
mov ecx, edi
call esi
jmp 0x10003a05
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x100039f7
mov eax, dword [eax]
push eax
push 0
push 4
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
mov dword [edi + 0x20], eax
cmp dword [edi + 0x20], 0
pop esi
je 0x10003a4f
push dword [ebp + 8]
push 0
push 0
push 4
push dword [edi + 0x20]
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [edi + 0x28], eax
test eax, eax
jne 0x10003aa4
cmp byte [0x1003cdfb], al
jne 0x10003a35
cmp byte [0x1003cdfa], al
je 0x10003aa2
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x10003a40
mov edi, dword [edi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
push str.CMemMappedFile__s__ERROR_MAPPING_FILE_FOR_READING__err_u_
jmp 0x10003a79
cmp byte [0x1003cdfb], 0
jne 0x10003a61
cmp byte [0x1003cdfa], 0
je 0x10003aa2
add edi, 4
cmp dword [edi + 0x14], 0x10
jb 0x10003a6c
mov edi, dword [edi]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
push str.CMemMappedFile__s__ERROR_OPENING_FILE_FOR_READING__err_u_
push ebx
call fcn.100280ba
add esp, 0x10
cmp byte [0x1003cdfa], 0
je 0x10003a92
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003cdfb], 0
je 0x10003aa2
push ebx
call fcn.10005eb0
pop ecx
xor eax, eax
pop edi
pop ebx
pop ebp
ret 4