joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400046a0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14001f040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0xb0]
lea r9, [rsp + 0x50]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x50], r14d
call qword [sym.imp.WS2_32.dll_WSASend]
mov rcx, qword gs:[0x58]
mov esi, eax
mov edi, 4
add rdi, qword [rcx]
mov ecx, dword [rdi]
cmp dword [0x1400204f8], ecx
jle 0x14000472e
lea rcx, [0x1400204f8]
call fcn.1400139fc
cmp dword [0x1400204f8], 0xffffffff
jne 0x14000472e
lea rcx, [0x140015630]
call fcn.140013cd8
lea rcx, [0x1400204f8]
call fcn.140013990
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
lea rbp, [0x14001f0c8]
mov qword [rsp + 0x48], rbp
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
mov eax, dword [rbx]
cmp eax, 0x40
jne 0x140004794
mov eax, dword [rdi]
cmp dword [0x1400204f8], eax
jle 0x14000478a
lea rcx, [0x1400204f8]
call fcn.1400139fc
cmp dword [0x1400204f8], 0xffffffff
jne 0x14000478a
lea rcx, [0x140015630]
call fcn.140013cd8
lea rcx, [0x1400204f8]
call fcn.140013990
mov dword [rsp + 0x40], 0x2746
jmp 0x1400047da
cmp eax, 0x4d2
jne 0x1400047e7
mov eax, dword [rdi]
cmp dword [0x1400204f8], eax
jle 0x1400047d2
lea rcx, [0x1400204f8]
call fcn.1400139fc
cmp dword [0x1400204f8], 0xffffffff
jne 0x1400047d2
lea rcx, [0x140015630]
call fcn.140013cd8
lea rcx, [0x1400204f8]
call fcn.140013990
mov dword [rsp + 0x40], 0x274d
mov qword [rsp + 0x48], rbp
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
test esi, esi
je 0x1400047f2
mov eax, 0xffffffff
jmp 0x1400047f9
mov eax, dword [rsp + 0x50]
mov dword [rbx], r14d
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140013970
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004820
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x268
mov rax, qword [0x14001f040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, qword [rsp + 0x2d0]
mov r13, r9
mov r12, r8
movzx edi, dl
mov r15, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400048c9
mov rax, qword gs:[0x58]
mov esi, 4
mov rcx, qword [rax]
mov eax, dword [rsi + rcx]
cmp dword [0x1400204f8], eax
jle 0x1400048a6
lea rcx, [0x1400204f8]
call fcn.1400139fc
cmp dword [0x1400204f8], r15d
jne 0x1400048a6
lea rcx, [0x140015630]
call fcn.140013cd8
lea rcx, [0x1400204f8]
call fcn.140013990
lea rax, [0x14001f0c8]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x140004a3b
cmp byte [rsp + 0x2c8], 0
mov qword [rsp + 0x260], r14
je 0x1400048ee
test dil, 0x10
je 0x1400048ee
xor r14d, r14d
mov dword [rbx], r14d
xor eax, eax
jmp 0x140004a33
mov r8, r13
mov qword [rsp + 0x2a8], rbp
mov rdx, r12
mov qword [rsp + 0x20], rbx
call fcn.1400046a0
test eax, eax
jns 0x140004a29
test dil, 1
jne 0x140004abe
mov esi, 4
xor r14d, r14d
mov rax, qword gs:[0x58]
mov edx, dword [0x1400204f8]
mov edi, esi
mov rbp, qword [rax]
add rbp, rdi
cmp edx, dword [rbp]
jle 0x140004973
lea rcx, [0x1400204f8]
call fcn.1400139fc
mov edx, dword [0x1400204f8]
cmp edx, 0xffffffff
jne 0x140004973
lea rcx, [0x140015630]
call fcn.140013cd8
lea rcx, [0x1400204f8]
call fcn.140013990
mov edx, dword [0x1400204f8]
mov edi, esi
mov rcx, qword [rbx + 8]
mov rax, qword [0x14001f0d0]
cmp qword [rcx + 8], rax
jne 0x14000498c
cmp dword [rbx], 0x2733
je 0x1400049e1
cmp edx, dword [rbp]
jle 0x1400049be
lea rcx, [0x1400204f8]
call fcn.1400139fc
cmp dword [0x1400204f8], 0xffffffff
jne 0x1400049be
lea rcx, [0x140015630]
call fcn.140013cd8
lea rcx, [0x1400204f8]
call fcn.140013990
mov rcx, qword [rbx + 8]
mov rax, qword [0x14001f0d0]
cmp qword [rcx + 8], rax
jne 0x140004abe
cmp dword [rbx], 0x4d5
jne 0x140004abe
mov edi, esi
lea ecx, [r15 + 1]
mov qword [rsp + 0x48], r15
xor r9d, r9d
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x140004a5c
mov r8, r13
mov dword [rbx], r14d
mov rdx, r12
mov qword [rsp + 0x20], rbx
mov rcx, r15
call fcn.1400046a0
test eax, eax
js 0x140004920
mov eax, eax
mov rbp, qword [rsp + 0x2a8]
mov r14, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140013970
add rsp, 0x268
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdi + rcx]
cmp dword [0x1400204f8], eax
jle 0x140004aa0
lea rcx, [0x1400204f8]
call fcn.1400139fc
cmp dword [0x1400204f8], 0xffffffff
jne 0x140004aa0
lea rcx, [0x140015630]
call fcn.140013cd8
lea rcx, [0x1400204f8]
call fcn.140013990
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x14001f0c8]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
xor eax, eax
jmp 0x140004a2b
Function at 0x1400078a0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x14001f040]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx ebx, dl
mov rdi, rcx
mov eax, 1
lock xadd dword [0x140020510], eax
inc eax
cmp eax, 1
jne 0x1400078ed
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x140020514], eax
test bl, bl
je 0x1400078ff
xor ebx, ebx
lock xadd dword [0x140020514], ebx
test ebx, ebx
jne 0x140007923
mov rax, rdi
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140013970
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov rax, qword gs:[0x58]
mov edx, 4
mov dword [rsp + 0x24], 0
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400204f8], eax
jle 0x140007974
lea rcx, [0x1400204f8]
call fcn.1400139fc
cmp dword [0x1400204f8], 0xffffffff
jne 0x140007974
lea rcx, [0x140015630]
call fcn.140013cd8
lea rcx, [0x1400204f8]
call fcn.140013990
lea rax, [0x14001f0c8]
mov dword [rsp + 0x20], ebx
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.1400020f0
int3
Function at 0x140009f00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x14001f040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
mov qword [rbp - 0x59], rdi
lea rax, [0x14001f0d8]
mov qword [rbp - 0x51], rax
mov rbx, qword [rcx + 0x18]
mov eax, edi
lock xadd dword [rbx + 0x30], eax
test eax, eax
jne 0x140009f52
mov rcx, rbx
call fcn.140003200
jmp 0x14000a031
mov dword [rbp + 0x27], edi
mov qword [rbp + 0x2f], rdi
mov qword [rbp + 0x37], rdi
lea rcx, [rbp + 0x2f]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
xor eax, eax
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rax
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, rdi
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x29]
mov qword [rbp - 0x41], rax
mov ecx, dword [0x140020524]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 0x49]
mov ecx, dword [0x140020524]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x29]
mov rcx, rbx
call fcn.140003430
test rax, rax
je 0x140009ff5
nop word [rax + rax]
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x29]
mov rcx, rbx
call fcn.140003430
test rax, rax
jne 0x140009fe0
mov rdx, qword [rbp - 0x39]
mov ecx, dword [0x140020524]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rbx, [rbp - 0x29]
mov edi, 0xa
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000a01d
call fcn.140013cf0
add rbx, 8
sub rdi, 1
jne 0x14000a010
lea rcx, [rbp + 0x2f]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140013970
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14000bd50
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14000bd7f
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x14000bd77
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14000bdc8
mov ecx, dword [0x140020524]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000bdb8
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14000bdb8
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x14000bdd3
inc ecx
inc rax
cmp rax, 2
jl 0x14000bda6
mov rcx, rbx
call fcn.140013cf0
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000c1e0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14001f040]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
lea rdx, str.SoftwareitsshuxProcessSpoofer_Pro
mov qword [rsp + 0x38], rax
mov rbx, r9
mov qword [rsp + 0x30], rcx
mov rdi, r8
mov dword [rsp + 0x28], 0x20006
xor r9d, r9d
mov dword [rsp + 0x20], ecx
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000c256
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Error_creating_opening_registry_key._n
call fcn.1400094a0
xor al, al
jmp 0x14000c2bd
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14000c260
mov rcx, qword [rsp + 0x50]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14000c2bb
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Error_writing_to_registry._n
call fcn.1400094a0
xor al, al
jmp 0x14000c2bd
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140013970
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14000c2e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x858
mov rax, qword [0x14001f040]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rdi, r9
lea rax, [rsp + 0x30]
mov rbx, r8
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000c340
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Error_opening_registry_key._n
call fcn.1400094a0
xor al, al
jmp 0x14000c402
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x38], 0x800
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14000c398
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Error_reading_from_registry._n
call fcn.1400094a0
xor al, al
jmp 0x14000c402
lea rax, [rsp + 0x40]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x14000c3a4
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x14000c3f3
mov qword [rsp + 0x850], rsi
mov rsi, rdi
cmp rax, 7
jbe 0x14000c3cb
mov rsi, qword [rdi]
lea rbx, [rdx + rdx]
mov qword [rdi + 0x10], rdx
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
xor eax, eax
mov word [rbx + rsi], ax
mov rsi, qword [rsp + 0x850]
jmp 0x14000c400
lea r9, [rsp + 0x40]
mov rcx, rdi
call fcn.14000c420
mov al, 1
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140013970
add rsp, 0x858
pop rdi
pop rbx
ret
Function at 0x140010ea0
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 0x140010ec8
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 0x140010eee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140010ef0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140010f49
test ecx, ecx
jle 0x140010f29
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 0x140010f49
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140010f49
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 0x140010f70
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 0x140010f92
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140010fa8
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 0x140010fc4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140010fc6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140011002
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 0x14001109e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001103d
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 0x14001107e
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 0x14001109e
cmp rbx, rax
ja 0x140011050
test rbx, rbx
je 0x14001109e
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 0x140011500
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14001f040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001152d
xor eax, eax
jmp 0x140011699
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140011567
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140011567
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 0x140011699
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001168c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400115aa
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 0x1400115d5
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 0x140011691
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 0x140011644
sub eax, 1
je 0x140011644
cmp eax, 2
jne 0x14001168c
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 0x140011691
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140011672
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 0x14001168c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140011691
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140013970
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140011b00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14001f040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140011bd3
cmp byte [rcx + 0x71], 0
je 0x140011bd3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140011bcf
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 0x140011b94
sub eax, 1
je 0x140011b98
cmp eax, 2
jne 0x140011bcf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140013970
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140011bc6
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 0x140011bcf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140011b7c
xor al, al
jmp 0x140011b7c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140013970
add rsp, 0x60
pop rbx
ret

Function at 0x140012fe8
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 0x140013022
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140013027
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 0x140013070
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400168a0]
cmp byte [rcx + rax], 0
je 0x140013070
dec r8
sub rdx, 1
jne 0x140013056
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400144f0
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x1400ffdbd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400ffdcd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400ffdb5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1400ffde5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400ffdd2
sub eax, 3
jb 0x1400ffdff
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400ffe36
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400ffe26
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400ffe24
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400ffe13
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400ffd72
jmp 0x1400ffdbd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x29000
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400ffe82
cmp rsi, rcx
jae 0x1400ffe8a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400ffe69
cmp al, 0x8f
ja 0x1400ffe69
cmp byte [rsi - 2], 0xf
je 0x1400ffe6f
sub al, 0xe8
cmp al, 1
ja 0x1400ffe53
cmp rsi, rcx
jae 0x1400ffe8a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400ffe59
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400ffe8a
lodsb al, byte [rsi]
jmp 0x1400ffe69
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xfc000]
mov eax, dword [rdi]
or eax, eax
je 0x1400ffee7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x100ab0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400ffe97
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400ffee1
mov qword [rbx], rax
add rbx, 8
jmp 0x1400ffeb7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400fff21
cmp al, 0xef
ja 0x1400fff13
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400ffef3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400fff02
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x24f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400fff75
sub rsp, 0xffffffffffffff80
jmp 0x1400157e0