joyce8/EMBER2024-capa huggingface dataset:
Function at 0x33da4f47
Capabilities:
Get common file path

Disassembly:
push 0xc
mov eax, 0x33de47bb
call fcn.33dcf7a4
mov dword [ebp - 0x14], ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
mov esi, dword [ebp + 0xc]
push dword [esi]
call fcn.33da5ee5
test byte [ebp + 8], 1
mov dword [esi], ebx
mov edi, 0x30010
je 0x33da5005
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x27
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jl 0x33da5005
mov ecx, dword [ebp - 0x14]
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.33da5ee5
test eax, eax
jl 0x33da5005
mov ecx, dword [ebp - 0x10]
push edi
call fcn.33da5ee5
test al, al
jne 0x33da4fc7
mov ecx, dword [ebp - 0x10]
push 4
push edi
call fcn.33da5ee5
mov ecx, eax
call fcn.33da5ee5
mov ecx, dword [ebp - 0x14]
call fcn.33da5ee5
test eax, eax
je 0x33da5005
mov ecx, dword [ebp - 0x14]
call fcn.33da5ee5
push dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x40]
test al, al
jne 0x33da4ffb
mov ecx, dword [ebp - 0x14]
call fcn.33da5ee5
push dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x30]
push dword [ebp - 0x10]
mov ecx, esi
call fcn.33da5ee5
test byte [ebp + 8], 2
je 0x33da50aa
push dword [ebp - 0x18]
call fcn.33d59316
push dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call fcn.33da5ee5
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 5
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jl 0x33da50aa
mov ecx, dword [ebp - 0x14]
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.33da5ee5
test eax, eax
jl 0x33da50aa
mov ecx, dword [ebp - 0x10]
push edi
call fcn.33da5ee5
test al, al
jne 0x33da506c
mov ecx, dword [ebp - 0x10]
push 5
push edi
call fcn.33da5ee5
mov ecx, eax
call fcn.33da5ee5
mov ecx, dword [ebp - 0x14]
call fcn.33da5ee5
test eax, eax
je 0x33da50aa
mov ecx, dword [ebp - 0x14]
call fcn.33da5ee5
push dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x40]
test al, al
jne 0x33da50a0
mov ecx, dword [ebp - 0x14]
call fcn.33da5ee5
push dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x30]
push dword [ebp - 0x10]
mov ecx, esi
call fcn.33da5ee5
mov byte [ebp - 4], bl
push dword [ebp - 0x18]
call fcn.33d59316
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x10]
call fcn.33da5ee5
call fcn.33dcf87c
ret 8
Function at 0x33da5ee5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x33da5ef4
pop dword [ebp - 0x48]
mov eax, 0x7e950482
sub eax, 0x4abaa58e
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x50d9920a
sub dword [ebp - 0x58], 0x2874cbf
mov dword [ebp - 0x54], 0xf8307185
sub dword [ebp - 0x54], 0xc5fd2540
mov dword [ebp - 0x50], 0x19ab3ae6
add dword [ebp - 0x50], 0x32a10948
mov dword [ebp - 0x4c], 0x27aba2f0
add dword [ebp - 0x4c], 0xd8545d10
lea eax, [ebp - 0x58]
push eax
mov eax, 0xfef0dcea
add eax, 0x34e234ea
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x5996e685
sub dword [ebp - 0x58], 0xe5247d2f
mov dword [ebp - 0x54], 0xc3323beb
sub dword [ebp - 0x54], 0x81c5da76
mov dword [ebp - 0x50], 0x4cc59410
add dword [ebp - 0x50], 0x16a9d85c
mov dword [ebp - 0x4c], 0xb84254ce
sub dword [ebp - 0x4c], 0xb84254ce
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x1916f9c3
sub eax, 0xe543e7eb
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x685e1
push 0
call eax
mov ecx, 0x3f57b72d
sub ecx, 0x3f5761a3
xor edi, edi
add edi, eax
mov esi, 0x3ff14db9
add esi, 0xf3f11247
add esi, dword [ebp - 0x48]
mov ebx, 0xc92e0e99
mov edx, dword [esi]
mov dword [ebp - 0xc], 0xcd06d673
sub edx, ebx
sub dword [ebp - 4], 0x771ca266
mov dword [edi], edx
xor dword [ebp - 0xc], edi
add edi, 0xc97a433a
sub edi, 0xc97a4336
add esi, 0xcb08ae2c
sub esi, 0xcb08ae28
loop 0x33da6012
add eax, 0xf0edd24b
sub eax, 0xf0ec8950
xor ebx, ebx
add ebx, eax
add eax, 0xd955fa73
sub eax, 0xd955fa6e
mov ecx, 0xd8c125a0
sub ecx, 0xa4ee25a0
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x33da71dd
Capabilities:
Get file system object information

Disassembly:
push 0x2bc
mov eax, 0x33de4ddc
call fcn.33dcf80d
mov esi, dword [ebp + 8]
mov edi, ecx
call fcn.33da5ee5
cmp eax, esi
jne 0x33da7213
push 0x3f0
mov eax, dword [0x33e12d4c]
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
jmp 0x33da72ca
mov ecx, edi
call fcn.33da5ee5
cmp eax, esi
jne 0x33da7225
push 0x3f3
jmp 0x33da71ff
mov ecx, edi
call fcn.33da5ee5
cmp eax, esi
jne 0x33da7237
push 0x3f1
jmp 0x33da71ff
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
test eax, eax
je 0x33da7260
push 0x3000b
mov ecx, esi
call fcn.33da5ee5
mov ecx, eax
call fcn.33dae9b8
test al, 8
je 0x33da7260
push 0x3f2
jmp 0x33da71ff
xor edi, edi
push 0x2b0
lea eax, [ebp - 0x2c0]
push edi
push eax
mov dword [ebp - 0x2c4], edi
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
lea ecx, [ebp - 0x2c5]
call fcn.33da5ee5
mov dword [ebp - 4], edi
mov ecx, esi
call fcn.33d71a38
mov eax, dword [eax]
push 0x101
push 0x2b4
lea ecx, [ebp - 0x2c4]
push ecx
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x33da72b9
mov edi, dword [ebp - 0x2c4]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c5]
call fcn.33d57c47
mov eax, edi
call fcn.33dcf890
ret 4
Function at 0x33dab04b
Capabilities:
Delete file

Disassembly:
push 0x24
mov eax, 0x33de55cf
call fcn.33dcf7a4
push dword [ebp + 8]
call dword [sym.imp.MSO.dll_Ordinal_295]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x33dab0c9
lea esi, [edi + 3]
push esi
lea ecx, [ebp - 0x10]
call fcn.33da5ee5
mov dword [ebp - 4], ebx
push esi
mov esi, dword [ebp - 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.MSO.dll_Ordinal_6877]
mov word [esi + edi*2], 0x2a
mov word [esi + edi*2 + 2], bx
mov word [esi + edi*2 + 4], bx
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x33dab0bf
call dword [sym.imp.kernel32.dll_GetLastError]
or dword [ebp - 4], 0xffffffff
push esi
call fcn.33da5ee5
call fcn.33dcf87c
ret 4

Function at 0x33daba8f
Capabilities:
Copy file

Disassembly:
push 0x5c
mov eax, 0x33de5789
call fcn.33dcf80d
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x60], eax
call fcn.33da5ee5
test al, al
je 0x33dabb6c
push esi
call fcn.33da5ee5
test al, al
jne 0x33dabb6c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push esi
mov ebx, eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, ebx
sub ecx, eax
sar ecx, 1
cmp ecx, 7
jle 0x33dabae1
push 7
pop ecx
push ecx
xor esi, esi
push esi
push eax
lea ecx, [ebp - 0x5c]
call fcn.33da5ee5
mov edi, dword [ebp - 0x5c]
call fcn.33dab971
push esi
push dword [ebp + 0x10]
add eax, 0x14
push dword [ebp - 0x60]
mov eax, dword [eax]
push ebx
push esi
push edi
push eax
call fcn.33da5ee5
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], esi
or ebx, 0xffffffff
cmp eax, ebx
je 0x33dabb62
cmp eax, esi
je 0x33dabb23
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
push dword [ebp - 0x60]
mov dword [ebp - 0x64], esi
push dword [ebp - 0x68]
call dword [sym.imp.kernel32.dll_CopyFileW]
test eax, eax
je 0x33dabb3e
xor eax, eax
mov dword [ebp - 4], ebx
jmp 0x33dabb71
call dword [sym.imp.kernel32.dll_GetLastError]
push dword [ebp - 0x60]
mov edi, eax
call fcn.33da5ee5
cmp edi, esi
jle 0x33dabb5e
and edi, 0xffff
or edi, 0x80070000
mov eax, edi
jmp 0x33dabb39
mov dword [ebp - 4], ebx
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0x80004005
call fcn.33dcf890
ret 0xc
Function at 0x33db0313
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x3c
mov eax, 0x33de6667
call fcn.33dcf7d7
mov dword [ebp - 0x24], ecx
push dword [ebp + 0x14]
call fcn.33da5ee5
test al, al
jne 0x33db0338
mov eax, 0x8007007b
jmp 0x33db04ff
xor ebx, ebx
push ebx
push ebx
push 0x80
push 3
call fcn.33d7adb7
mov ecx, eax
call fcn.33da5ee5
push eax
push 1
push 0x80000000
push dword [ebp + 0x18]
call dword [sym.imp.MSO.dll_Ordinal_403]
mov esi, eax
mov dword [ebp + 0x18], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], ebx
or edi, 0xffffffff
cmp esi, edi
jne 0x33db0387
push ebx
push 0x776d726a
call dword [sym.imp.MSO.dll_Ordinal_6848]
mov dword [ebp - 4], edi
push edi
jmp 0x33db04f4
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
cmp dword [ebp - 0x20], ebx
ja 0x33db04df
cmp edi, 0xffffffff
je 0x33db04df
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 2
lea esi, [edi + 1]
push esi
call fcn.33da5ee5
push eax
lea ecx, [ebp - 0x18]
call fcn.33da5ee5
push esi
push ebx
mov esi, dword [ebp - 0x18]
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x33db04c7
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jne 0x33db04c7
cmp eax, ebx
jbe 0x33db0412
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
call fcn.33da5ee5
jmp 0x33db0428
push 2
call fcn.33da5ee5
push eax
lea ecx, [ebp - 0x14]
call fcn.33da5ee5
mov eax, dword [ebp - 0x14]
mov word [eax], bx
mov byte [ebp - 4], 1
push esi
call fcn.33da5ee5
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
cmp byte [ebp + 0x1c], bl
mov eax, 0x33d39c88
jne 0x33db045d
mov eax, 0x33d39c94
mov dword [ebp - 0x38], eax
push 8
push dword [ebp + 0x24]
push dword [ebp + 0x20]
lea eax, [ebp - 0x48]
push eax
push 0x33d3ac90
push 0x33d3ac20
push dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
call fcn.33da5ee5
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], ebx
push dword [ebp - 0x14]
call fcn.33da5ee5
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x18], ebx
je 0x33db04a1
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
jmp 0x33db04ff
mov byte [ebp - 4], bl
push dword [ebp - 0x14]
call fcn.33da5ee5
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x18], ebx
je 0x33db04fa
push dword [ebp + 0x18]
jmp 0x33db04f4
push ebx
push 0x776d726c
call dword [sym.imp.MSO.dll_Ordinal_6848]
mov byte [ebp - 4], 1
push esi
call fcn.33da5ee5
jmp 0x33db04ae
push ebx
push 0x776d726b
call dword [sym.imp.MSO.dll_Ordinal_6848]
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x33db04fa
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0x80004005
call fcn.33dcf87c
ret 0x20
Function at 0x33dcee94
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x33d3bdd0]
jne 0x33dcfb9d
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x33e16930], eax
mov dword [0x33e1692c], ecx
mov dword [0x33e16928], edx
mov dword [0x33e16924], ebx
mov dword [0x33e16920], esi
mov dword [0x33e1691c], edi
mov word [0x33e16948], ss
mov word [0x33e1693c], cs
mov word [0x33e16918], ds
mov word [0x33e16914], es
mov word [0x33e16910], fs
mov word [0x33e1690c], gs
pushfd
pop dword [0x33e16940]
mov eax, dword [ebp]
mov dword [0x33e16934], eax
mov eax, dword [ebp + 4]
mov dword [0x33e16938], eax
lea eax, [ebp + 8]
mov dword [0x33e16944], eax
mov eax, dword [ebp - 0x320]
mov dword [0x33e16880], 0x10001
mov eax, dword [0x33e16938]
mov dword [0x33e16834], eax
mov dword [0x33e16828], 0xc0000409
mov dword [0x33e1682c], 1
mov eax, dword [0x33d3bdd0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x33e14a30]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x33e16878], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x33d3c154
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x33e16878], 0
jne 0x33dcfc8d
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x402950
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408458
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x94
mov eax, dword [0x40c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ecx + 0x1818]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403c10
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push ecx
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0x44
push 0
push 0
push 0
push eax
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x88], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402aaf
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmova ecx, dword [ebp - 0x2c]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x2c]
cmova ecx, dword [ebp - 0x2c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0xa0]
call fcn.00405170
mov esi, eax
mov byte [ebp - 4], 1
mov edx, str.Open_GameLaucher__CreateProcess:
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00404f50
cmp dword [esi + 0x14], 0xf
mov edx, esi
jbe 0x402a58
mov edx, dword [esi]
push 0x405280
push ecx
push dword [esi + 0x10]
mov ecx, eax
call fcn.004063c0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp - 0x8c]
cmp ecx, 0xf
jbe 0x402aaf
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402aa5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402aa5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004072cf
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x402aeb
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402ae1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402ae1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004072cf
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040717c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x403030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40305c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x403084
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40308a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x4030f2
jg 0x4030a1
test esi, esi
je 0x4030f2
test ecx, ecx
jl 0x4030ed
jg 0x4030ab
test eax, eax
je 0x4030ed
cmp edi, ecx
jg 0x4030bf
jl 0x4030b5
cmp esi, eax
jae 0x4030bf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x4030f5
mov ecx, dword [ebp + 8]
jmp 0x4030ff
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x403119
jg 0x4030ff
test esi, esi
je 0x403119
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x403119
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x40315c
jl 0x403150
test ecx, ecx
jne 0x40315c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x403175
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x4031c3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x4031c9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x4031c9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x403236
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4031f2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x403224
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x403236
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x403200
test edi, edi
je 0x403236
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4035b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x40c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4035e0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040717c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40361c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40361c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040717c
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4036f3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403644
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x403650
movsx eax, bl
jmp 0x403688
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x4036b2
sub eax, 1
je 0x4036b2
sub eax, 2
jne 0x4036f3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040717c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4036d0
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4036f3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040717c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040717c
mov esp, ebp
pop ebp
ret 4
Function at 0x4040f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4041ac
cmp byte [esi + 0x3d], 0
je 0x4041ac
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40419a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x404161
sub eax, 1
je 0x404165
sub eax, 2
jne 0x40419a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040717c
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404183
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40419a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040717c
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040717c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040717c
mov esp, ebp
pop ebp
ret

Function at 0x407c19
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407c58
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407c58
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407c58
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407c58
cmp dword [ecx + 0x74], 0xe
jbe 0x407c58
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret