joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001a80
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, rdx
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
mov rbx, rdx
mov edi, 0x34
mov rsi, rcx
lea edx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
movzx ecx, word [rbx]
mov rdx, rbx
test cx, cx
je 0x140001b11
nop dword [rax + rax]
add rdx, 2
cmp cx, 0x5c
mov rax, rdx
cmovne rax, rbx
movzx ecx, word [rdx]
mov rbx, rax
test cx, cx
jne 0x140001ad0
movzx ecx, word [rax]
test cx, cx
je 0x140001b11
lea rax, [rsi + 0x68]
cmp cx, 0x2e
je 0x140001b11
add rbx, 2
mov word [rax], cx
inc edi
add rax, 2
movzx ecx, word [rbx]
test cx, cx
jne 0x140001af6
movsxd rax, edi
xor ecx, ecx
mov rdx, rsi
mov word [rsi + rax*2], cx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x140001bd7
lea r8, str.___
mov dword [rsp + 0x30], 1
mov edx, 5
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, r14
lea rcx, [rsp + 0x40]
mov edx, 0x87
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001b70
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x40]
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x140001bd7
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400048b0
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret
Function at 0x140005228
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005272
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005272
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005272
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005272
cmp dword [rcx + 0x84], 0xe
jbe 0x140005272
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005274
xor al, al
add rsp, 0x28
ret
Function at 0x140003130
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
call fcn.140003300
lea rcx, [0x140019090]
mov dword [rsi], 1
mov qword [rsi + 8], rcx
mov eax, 0x5a4d
movsxd rdx, dword [0x1400190cc]
add rdx, rcx
mov qword [rsi + 0x10], rdx
cmp word [0x140019090], ax
jne 0x1400032bd
cmp dword [rdx], 0x4550
jne 0x1400032bd
add rdx, 0x18
mov dword [rsi + 4], 1
mov eax, 0x20b
mov qword [rsi + 0x18], rdx
cmp word [rdx], ax
jne 0x1400032d2
mov eax, dword [rdx + 0x38]
mov dword [rsi + 0x20], eax
mov qword [rsi + 0x28], rcx
mov rcx, qword [rdx + 0x18]
mov qword [rsi + 0x30], rcx
mov eax, dword [rdx + 0x10]
add rax, rcx
mov qword [rsp + 0x50], rbx
mov qword [rsi + 0x38], rax
mov eax, dword [rdx + 0x24]
mov dword [rsi + 0x44], eax
mov ecx, dword [rdx + 0x20]
xor edx, edx
mov eax, edx
mov dword [rsi + 0x48], ecx
cmp ecx, 0x1000
mov qword [rsp + 0x60], rdi
setae al
mov dword [rsi + 0x40], eax
mov rax, qword [rsi + 0x50]
cmp rax, qword [rsi + 0x58]
je 0x1400031e8
mov qword [rsi + 0x58], rax
mov rcx, qword [rsi + 0x10]
movzx eax, word [rcx + 0x14]
lea rbx, [rcx + 0x18]
movzx r8d, word [rcx + 6]
add rbx, rax
cmp dx, r8w
jae 0x140003288
mov qword [rsp + 0x58], rbp
mov ebp, r8d
nop
mov eax, dword [rbx + 0xc]
mov rdx, qword [rsi + 0x58]
mov dword [rsp + 0x20], eax
mov eax, dword [rbx + 0x14]
mov dword [rsp + 0x24], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x2c], eax
mov eax, dword [rbx + 0x24]
mov dword [rsp + 0x30], eax
movzx eax, word [rbx + 0x20]
mov word [rsp + 0x34], ax
mov rax, qword [rbx]
mov qword [rsp + 0x36], rax
mov byte [rsp + 0x3e], 0
cmp rdx, qword [rsi + 0x60]
je 0x14000326b
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
add qword [rsi + 0x58], 0x20
jmp 0x140003279
lea r8, [rsp + 0x20]
lea rcx, [rsi + 0x50]
call fcn.1400050c0
add rbx, 0x28
sub rbp, 1
jne 0x140003210
mov rbp, qword [rsp + 0x58]
mov rcx, rsi
call fcn.140001680
mov rcx, rsi
call fcn.140001af0
mov rcx, rsi
call fcn.140001ef0
mov rcx, rsi
call fcn.1400024d0
mov rdi, qword [rsp + 0x60]
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rsi
ret
xor edx, edx
mov rcx, rsi
mov dword [rsi + 4], edx
call fcn.140003300
xor eax, eax
add rsp, 0x40
pop rsi
ret
lea rdx, str.PE_image_must_be_64_bit_
lea rcx, [rsp + 0x20]
call fcn.140001460
lea rdx, [0x140016758]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140003ba0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140003bd5
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140003a60
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140003d05
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx r11d, byte [rax + 0x10]
movzx edx, byte [rax + 0x11]
xor r11, rbp
mov rcx, qword [rcx]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x140003c77
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140003cf4
mov rdx, qword [r11 + 8]
movzx r9d, word [rax + 0x10]
cmp r9w, word [rdx + 0x10]
jne 0x140003cb6
mov r10, qword [rdx]
cmp r10, rax
je 0x140003cb0
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140003cf4
cmp r8, rdx
je 0x140003cd0
nop dword [rax + rax]
mov rdx, qword [rdx + 8]
cmp r9w, word [rdx + 0x10]
je 0x140003d16
cmp r8, rdx
jne 0x140003cc0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140003c40
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140003cf4
Function at 0x140006190
Capabilities:
Create service
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
xor edx, edx
mov rbx, rcx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
je 0x14000626b
cmp qword [rbx + 0x18], 0xf
mov rax, rbx
jbe 0x1400061ce
mov rax, qword [rbx]
cmp qword [rbx + 0x58], 0xf
lea r8, [rbx + 0x40]
jbe 0x1400061dc
mov r8, qword [r8]
cmp qword [rbx + 0x38], 0xf
lea rdi, [rbx + 0x20]
mov rdx, rdi
jbe 0x1400061ed
mov rdx, qword [rdi]
xor ebp, ebp
mov r9d, 0xf003f
mov qword [rsp + 0x60], rbp
mov rcx, rsi
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov qword [rbx + 0x60], rax
test rax, rax
jne 0x14000628a
cmp qword [rdi + 0x18], 0xf
jbe 0x140006247
mov rdi, qword [rdi]
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rbx + 0x60], rax
test rax, rax
jne 0x140006286
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rdi, [rbx + 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edx, edx
mov dword [rbx + 0x68], ebp
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
je 0x1400062da
cmp qword [rdi + 0x18], 0xf
jbe 0x1400062b6
mov rdi, qword [rdi]
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rbx + 0x60], rax
test rax, rax
jne 0x1400062e1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 2
jmp 0x140006270
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov rcx, rsi
test eax, eax
jne 0x140006310
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 2
jmp 0x140006270
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov dword [rbx + 0x68], 1
jmp 0x140006270
Function at 0x140006330
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
mov rbx, rcx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x140006391
cmp qword [rbx + 0x38], 0xf
lea rdx, [rbx + 0x20]
jbe 0x140006370
mov rdx, qword [rdx]
mov r8d, 0xf01ff
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rbx + 0x60], rax
test rax, rax
jne 0x140006395
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1400063ed
xor ecx, ecx
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x38], ecx
movups xmmword [rsp + 0x20], xmm0
lea edx, [rcx + 1]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rdi
test eax, eax
jne 0x1400063d4
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1400063ed
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov dword [rbx + 0x68], 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000aea0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140008970
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 0x140008998
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 0x1400089be
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400089c0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140008a19
test ecx, ecx
jle 0x1400089f9
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 0x140008a19
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140008a19
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 0x140008a40
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 0x140008a62
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140008a78
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 0x140008a94
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008a96
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140008ad2
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 0x140008b6e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140008b0d
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 0x140008b4e
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 0x140008b6e
cmp rbx, rax
ja 0x140008b20
test rbx, rbx
je 0x140008b6e
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 0x140008fd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140008ffd
xor eax, eax
jmp 0x140009169
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140009037
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140009037
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 0x140009169
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000915c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000907a
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 0x1400090a5
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 0x140009161
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 0x140009114
sub eax, 1
je 0x140009114
cmp eax, 2
jne 0x14000915c
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 0x140009161
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140009142
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 0x14000915c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140009161
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000aea0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140009550
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140009623
cmp byte [rcx + 0x71], 0
je 0x140009623
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000961f
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 0x1400095e4
sub eax, 1
je 0x1400095e8
cmp eax, 2
jne 0x14000961f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000aea0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140009616
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 0x14000961f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400095cc
xor al, al
jmp 0x1400095cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000aea0
add rsp, 0x60
pop rbx
ret

Function at 0x14000a760
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000a79a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000a79f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000a7e8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000d550]
cmp byte [rcx + rax], 0
je 0x14000a7e8
dec r8
sub rdx, 1
jne 0x14000a7ce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14000ab28
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14000a878
mov ebx, eax
test eax, eax
jne 0x14000ab58
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14000abbb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000abb2
test al, 0x10
je 0x14000abb2
bt eax, 0xa
jae 0x14000abab
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14000abcc
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14000aba7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14000aba7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14000abb2
and dword [rsp + 0x3c], 0
jmp 0x14000abb7
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b894
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b8de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b8de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b8de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b8de
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b8de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000b8e0
xor al, al
add rsp, 0x28
ret
Function at 0x1400032c0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1401ac580]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
test rax, rax
jne 0x14000331c
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
jmp 0x140003415
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov rbp, r12
mov qword [rsp + 0x38], r12
mov esi, 1
mov rbx, qword [rsp + 0x30]
cmp dword [rsp + 0x20], esi
jle 0x1400033fc
lea r14, [rax + 8]
nop word [rax + rax]
mov rdx, qword [r14]
lea rcx, [rsp + 0x48]
call fcn.140003450
nop
cmp rbx, rbp
je 0x140003399
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
add rbx, 0x20
mov qword [rsp + 0x30], rbx
jmp 0x1400033b3
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140002e10
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1400033ec
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400033e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000343e
call fcn.1400e7420
inc esi
add r14, 8
cmp esi, dword [rsp + 0x20]
jl 0x140003350
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x28]
mov qword [rdi], rax
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbp
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400e74c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
int3
Function at 0x14003f5b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401ac580]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14003f683
cmp byte [rcx + 0x71], 0
je 0x14003f683
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14003f67f
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 0x14003f644
sub eax, 1
je 0x14003f648
cmp eax, 2
jne 0x14003f67f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400e74c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14003f676
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 0x14003f67f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14003f62c
xor al, al
jmp 0x14003f62c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400e74c0
add rsp, 0x60
pop rbx
ret