joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800028b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x38
mov rax, qword [0x18006b3b0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18006c3f0], eax
je 0x1800028e4
mov eax, 0x10dd
jmp 0x1800029f7
mov eax, dword [0x18006c34c]
test eax, eax
jne 0x1800029f7
test rbp, rbp
jne 0x1800028ff
lea eax, [rbp + 0x57]
jmp 0x1800029f7
test rsi, rsi
je 0x18000291b
cmp qword [rsi], 0
jne 0x180002925
mov dword [0x18006c34c], 6
mov qword [0x18006c400], rsi
mov eax, 6
jmp 0x1800029f7
mov qword [rsp + 0x60], rbx
mov ecx, 0x30
mov qword [rsp + 0x30], rdi
call fcn.180053990
mov rcx, qword [rsi]
mov rbx, rax
call fcn.180001d70
mov rcx, rbp
mov rdi, rax
call fcn.180001d70
movzx edx, byte [rdi + 0x3e]
mov rbp, qword [rdi + 0x48]
sub rbp, rdx
test dl, dl
je 0x1800029c3
cmp rdx, 0x1e
ja 0x1800029c3
cmp qword [rdi + 0x50], rax
jne 0x1800029c3
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180002994
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1800029d1
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x28], eax
mov rax, qword [0x18006c418]
mov qword [rbx], rax
xor eax, eax
mov qword [0x18006c418], rbx
jmp 0x1800029ed
cmp dword [0x18006bda0], 0
mov edi, 9
jne 0x1800029d7
mov dword [0x18006c34c], edi
mov edx, 0x30
mov rcx, rbx
call fcn.1800539cc
mov eax, edi
mov qword [0x18006c400], rsi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180053970
add rsp, 0x38
pop rsi
pop rbp
ret
Function at 0x1800098e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18000993d
lea rbx, [0x180059eb0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180009924
cmp r10, 2
jb 0x180009924
cmp byte [r9], r8b
jne 0x180009924
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180009900
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18000997f
lea rbx, [0x180059eb0]
cmp r8b, 0x23
jne 0x180009963
cmp byte [r9], r8b
jne 0x180009963
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180009950
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180009ac0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180009ada
mov qword [r8], 0
lea rdx, [0x1800600f4]
call fcn.180009990
mov rbx, rax
test rax, rax
jne 0x180009afa
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180009be5
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180009be5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180009be5
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180009be5
cmp rdi, 0xffffffffffffffff
je 0x180009be5
mov rax, qword [0x18006bfe8]
test rax, rax
je 0x180009b76
inc dword [rax + 0xec]
mov rdx, qword [0x18006bfe0]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x180009be5
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x180009bd2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x18006bfe8]
test rax, rax
je 0x180009bc1
dec dword [rax + 0xec]
mov rdx, qword [0x18006bfe0]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x180009bee
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180009be0
mov qword [r14], rdi
mov rax, rsi
jmp 0x180009bf0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x18000bb80
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x180059eb0]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x18006bfe8]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3f0c], ebx
jne 0x18000bc16
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.18001dc80
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180018060
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x18006b3b0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x18006bfe8]
mov edi, ecx
cmp byte [rbx + 0x427d], 0
jne 0x1800180c1
cmp byte [rbx + 0x427e], 0
jne 0x1800180c1
movsx r9d, word [rbx + 0x5362]
lea r8, [0x18005fdd8]
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.180009770
test dil, 1
je 0x1800181e8
jmp 0x18001814a
movss xmm1, dword [rbx + 0x38b0]
lea r8, [0x18005fdd8]
movsx r9d, word [rbx + 0x5362]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x180061a58]
mulss xmm1, dword [0x180061a40]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xd94]
addss xmm1, dword [rbx + 0xd98]
mov qword [rbx + 0x3ff8], rax
mov dword [rbx + 0x3fe4], 1
movss dword [rbx + 0x3ff0], xmm0
movss dword [rbx + 0x3ff4], xmm1
movss xmm0, dword [rbx + 0x3918]
mulss xmm0, dword [0x18006194c]
or dword [rbx + 0x3fe0], 0x41
movss dword [rbx + 0x4040], xmm0
call fcn.180009770
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1800181a0
lea r11, [0x180059eb0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x180018183
cmp byte [r8], r9b
jne 0x180018183
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180018170
not ecx
call fcn.180010e40
test rax, rax
je 0x1800181e8
cmp byte [rax + 0x96], 0
je 0x1800181e8
mov byte [rax + 0x9d], 1
lea r8, [0x18005fdd8]
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5362]
mov edx, 0x10
movsx r9d, word [rbx + 0x5362]
call fcn.180009770
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.1800136f0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180053970
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18001c870
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5410], 0
lea rbx, [rcx + 0x5418]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18001c917
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18001c8ca
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180006460
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.18000a080
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5410]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5420]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x18006be05]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18001c91f
mov rcx, rbx
call fcn.18000a080
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18001ceb0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x18006bfe8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18001cf13
mov qword [rsp], rbx
lea rbx, [0x180059eb0]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001cef3
cmp byte [r8], r9b
jne 0x18001cef3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x18001cee0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x53c0]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x18001cf47
mov r10, qword [r10 + 0x53c8]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18001cf4e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x18001cf34
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret

Function at 0x18001d1d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x18006bfe8]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x53ac], ecx
test rbx, rbx
je 0x18001d23f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.18001d250
lea rdx, [0x18005ec54]
mov rcx, rbx
mov rdi, rax
call fcn.180009990
mov rbx, rax
test rax, rax
je 0x18001d23a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x180042120
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18006b3b0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [0x18006c146], 0
je 0x180042201
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rdi
call fcn.18004d8f0
mov rcx, qword [0x18006bdd8]
mov rdi, rax
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x30]
lea rdx, str.com_craftrise_client_S
call r8
mov rcx, qword [0x18006bdd8]
lea r9, str.__Lcom_craftrise_client_fa_
lea r8, [0x1800605ec]
mov qword [0x18006c2a8], rax
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
mov rdx, rax
call r10
mov rbx, rax
call fcn.18004d8f0
mov rcx, qword [0x18006bdd8]
mov r8, rbx
mov rdx, rax
call fcn.18003f890
mov rbx, qword [rsp + 0x40]
test rdi, rdi
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
je 0x180042201
cmp byte [0x18006c13d], 0
je 0x1800421ec
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8001
test cx, ax
je 0x1800421ec
movss xmm1, dword [0x18006b440]
jmp 0x1800421f4
movss xmm1, dword [0x18006b430]
cvtps2pd xmm1, xmm1
lea rcx, [rsp + 0x20]
call fcn.18004d380
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180053970
add rsp, 0x38
ret
Function at 0x180042fe0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
cmp byte [0x18006c139], 0
je 0x18004310d
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rdi
call fcn.18004d8f0
mov rcx, qword [0x18006bdd8]
mov rdi, rax
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x30]
lea rdx, str.com_craftrise_client_S
call r8
mov rcx, qword [0x18006bdd8]
lea r9, str.__Lcom_craftrise_client_fa_
lea r8, [0x1800605ec]
mov qword [0x18006c2a8], rax
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
mov rdx, rax
call r10
mov rbx, rax
call fcn.18004d8f0
mov rcx, qword [0x18006bdd8]
mov r8, rbx
mov rdx, rax
call fcn.18003f890
test rdi, rdi
mov rdi, qword [rsp + 0x30]
je 0x180043108
mov ecx, 0x57
movaps xmmword [rsp + 0x20], xmm6
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
movsd xmm6, qword [0x1800619b0]
jae 0x180043096
movaps xmm0, xmm6
call fcn.180042df0
mov ecx, 0x41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1800430b0
movaps xmm0, xmm6
call fcn.180042df0
mov ecx, 0x53
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1800430ca
movaps xmm0, xmm6
call fcn.180042df0
mov ecx, 0x44
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1800430e4
movaps xmm0, xmm6
call fcn.180042df0
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
movaps xmm6, xmmword [rsp + 0x20]
jae 0x180043108
movsd xmm0, qword [0x1800619b8]
call fcn.180042df0
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x180046740
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x18006b3b0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
cmp byte [0x18006d220], sil
jne 0x18004678d
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x180016050]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [0x18006d220], 1
mov rbx, qword [0x18006bfe8]
mov rax, qword [rbx + 0x3ed8]
mov byte [rax + 0x98], 1
mov rax, qword [rbx + 0x3ed8]
movss xmm0, dword [rax + 0x1c]
subss xmm0, dword [rax + 0x68]
addss xmm0, dword [0x180061a98]
movss xmm2, dword [rax + 0x18]
subss xmm2, dword [rax + 0x64]
addss xmm2, dword [0x180061ae4]
movss dword [rax + 0xe0], xmm2
movss dword [rax + 0xe4], xmm0
movss xmm1, dword [rax + 0xfc]
maxss xmm1, xmm0
movss xmm0, dword [rax + 0xf8]
maxss xmm0, xmm2
movss dword [rax + 0xf8], xmm0
movss dword [rax + 0xfc], xmm1
movss xmm0, dword [0x180061b20]
movss dword [rsp + 0x40], xmm0
movss xmm1, dword [0x180061b08]
movss dword [rsp + 0x44], xmm1
mov rax, qword [rbx + 0x3ed8]
mov byte [rax + 0x98], 1
mov rax, qword [rbx + 0x3ed8]
movsxd rcx, dword [rax + 0xd0]
mov rax, qword [rax + 0xd8]
mov r8d, dword [rax + rcx*4 - 4]
xor edx, edx
lea rcx, [0x18005fb7e]
call fcn.1800098e0
mov edi, eax
cmp dword [rbx + 0x3f0c], eax
jne 0x180046874
lea r8, [0x18005fb7e]
mov edx, 0xb
mov ecx, eax
call fcn.18001dc80
lea r8, [rsp + 0x40]
mov edx, edi
lea rcx, [0x18005fb7e]
call fcn.18003dc50
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea rbx, [0x18006c000]
mov r8, rbx
xor edx, edx
lea rcx, str.Takim_arkadasi_ismi_:
call fcn.1800393e0
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x40]
lea rcx, str.Guncelle
call fcn.1800331c0
test al, al
je 0x18004697b
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x180046900
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.180004b30
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
lea rcx, [0x18006b448]
call fcn.180004b30
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18004697b
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180046976
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180046976
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800539cc
call fcn.180010b70
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180053970
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x18004c310
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x18004c347
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x18004c368
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18004c36a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18004c3c3
test ecx, ecx
jle 0x18004c3a3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x18004c3c3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18004c3c3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18004c3f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x18004c412
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18004c428
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18004c444
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18004c446
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x18004c480
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18004c527
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x18004c4bb
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x18004c501
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x18004c540
cmp rbx, rax
ja 0x18004c4d0
mov r8, rdi
test rdi, rdi
je 0x18004c527
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x18004c52a
Function at 0x18004c940
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18006b3b0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18004c96d
xor eax, eax
jmp 0x18004cac2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x18004c998
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x18004c998
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x18004cac2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18004cab5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x18004c9db
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x18004ca06
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18004caba
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18004ca75
sub eax, 1
je 0x18004ca75
cmp eax, 2
jne 0x18004cab5
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18004caba
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18004caa3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18004cab5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x18004caba
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180053970
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18004cef0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18006b3b0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18004cfc3
cmp byte [rcx + 0x71], 0
je 0x18004cfc3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18004cfbf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18004cf84
sub eax, 1
je 0x18004cf88
cmp eax, 2
jne 0x18004cfbf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180053970
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18004cfb6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18004cfbf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18004cf6c
xor al, al
jmp 0x18004cf6c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180053970
add rsp, 0x60
pop rbx
ret

Function at 0x18004f440
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memset
jmp 0x18004f488
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x18004f4a8
jmp 0x18004f545
cmp dword [rsp + 0x68], 0x1000
jne 0x18004f4cd
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x18004f4cd
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x18004f4cf
jmp 0x18004f473
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18004f505
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x18004f505
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x18004f50a
jmp 0x18004f473
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x18004f473
mov rax, qword [rsp + 0x20]
jmp 0x18004f547
xor eax, eax
add rsp, 0x88
ret