joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ce50
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call fcn.1400ea160
test eax, eax
je 0x14000ce77
jmp 0x14000d0a3
mov ecx, 5
call fcn.140006d40
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.140006da0
cmp dword [rsp + 0x60], 0
jle 0x14000ce9f
cmp qword [rsp + 0x68], 0
jne 0x14000cec5
mov eax, 4
imul rax, rax, 0
lea rcx, [0x140145050]
mov dword [rcx + rax], 0
mov rcx, qword [rsp + 0x28]
call fcn.140006e00
jmp 0x14000d0a3
mov eax, 4
imul rax, rax, 0
lea rcx, [0x140145050]
cmp dword [rcx + rax], 0
jne 0x14000cfa8
xor ecx, ecx
call fcn.1400067d0
mov qword [rsp + 0x30], rax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x140145050]
lea rdx, str.expand_32_byte_k
lea rdi, [rcx + rax]
mov rsi, rdx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
cmp qword [rsp + 0x30], 0
jne 0x14000cf3c
mov eax, 4
imul rax, rax, 4
lea rcx, [0x140145050]
add rcx, rax
mov rax, rcx
mov rdi, rax
xor eax, eax
mov ecx, 0x2c
rep stosb byte [rdi], al
jmp 0x14000cf64
mov eax, 4
imul rax, rax, 4
lea rcx, [0x140145050]
add rcx, rax
mov rax, rcx
mov r8, rax
mov edx, 0x2c
mov rcx, qword [rsp + 0x30]
call fcn.140006510
mov eax, 4
imul rax, rax, 0xc
lea rcx, [0x140145050]
mov edx, 4
imul rdx, rdx, 0xf
lea rdi, [0x140145050]
mov eax, dword [rcx + rax]
mov dword [rdi + rdx], eax
mov eax, 4
imul rax, rax, 0xc
lea rcx, [0x140145050]
mov dword [rcx + rax], 0
mov byte [0x1401450d0], 0
xor eax, eax
cmp eax, 1
je 0x14000d099
movzx eax, byte [0x1401450d0]
cmp dword [rsp + 0x60], eax
jg 0x14000d003
movsxd rax, dword [rsp + 0x60]
movzx ecx, byte [0x1401450d0]
sub ecx, dword [rsp + 0x60]
movsxd rcx, ecx
lea rdx, [0x140145090]
add rdx, rcx
mov rcx, rdx
mov rdi, qword [rsp + 0x20]
mov rsi, rcx
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movzx eax, byte [0x1401450d0]
sub eax, dword [rsp + 0x60]
mov byte [0x1401450d0], al
jmp 0x14000d099
movzx eax, byte [0x1401450d0]
test eax, eax
jle 0x14000d052
movzx eax, byte [0x1401450d0]
lea rcx, [0x140145090]
mov rdi, qword [rsp + 0x20]
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
movzx eax, byte [0x1401450d0]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], eax
movzx eax, byte [0x1401450d0]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov eax, 4
imul rax, rax, 0xc
lea rcx, [0x140145050]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x140145050]
mov dword [rdx + rcx], eax
lea rdx, [0x140145050]
lea rcx, [0x140145090]
call fcn.14000bdc0
mov byte [0x1401450d0], 0x40
jmp 0x14000cfa8
mov rcx, qword [rsp + 0x28]
call fcn.140006e00
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x14000d150
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
mov qword [rax], 0
mov ecx, 0x28
call fcn.140007560
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14000d191
mov eax, 7
jmp 0x14000d25e
movzx eax, byte [0x14013a894]
test eax, eax
je 0x14000d1aa
mov ecx, 0xc8
call fcn.14000e370
test eax, eax
je 0x14000d1ba
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
jmp 0x14000d223
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x30]
lea r8, [0x14000d110]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
jne 0x14000d223
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x10], 0
jne 0x14000d24f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 8], eax
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x14002a1c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140138010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x58]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14002a21f
mov rax, qword [rsp + 0x80]
movsx eax, word [rax + 0x3c]
test eax, eax
jne 0x14002a234
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax + 0x46]
test eax, eax
jne 0x14002a234
mov rax, qword [rsp + 0x90]
mov dword [rax], 0
xor eax, eax
jmp 0x14002a38d
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x78]
call fcn.140027140
mov dword [rsp + 0x40], eax
mov ecx, dword [rsp + 0x24]
call fcn.140027140
mov dword [rsp + 0x20], eax
jmp 0x14002a261
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x20], eax
jl 0x14002a37d
lea r8, [rsp + 0x48]
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.140027080
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x14002a299
mov eax, dword [rsp + 0x3c]
jmp 0x14002a38d
mov dword [rsp + 0x30], 0x2000
mov ecx, dword [rsp + 0x88]
call fcn.140027050
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x80]
call fcn.140026240
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax*2]
movzx eax, ax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14002a36f
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x2c], eax
ja 0x14002a32a
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
cmp dword [rsp + 0x2c], eax
jb 0x14002a32a
mov eax, dword [rsp + 0x28]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4]
cmp eax, dword [rsp + 0x88]
jne 0x14002a32a
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x44], 0
jne 0x14002a35d
mov rax, qword [rsp + 0x90]
mov dword [rax], 0
mov ecx, 0x10e55
call fcn.1400ef4a0
jmp 0x14002a38d
mov ecx, dword [rsp + 0x34]
call fcn.140027070
mov dword [rsp + 0x34], eax
jmp 0x14002a2be
cmp dword [rsp + 0x38], 0
je 0x14002a378
jmp 0x14002a37d
jmp 0x14002a257
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140124a90
add rsp, 0x78
ret
Function at 0x1400758f0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x1c], 1
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x58]
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rcx, qword [rsp + 0x50]
call fcn.14007e930
cmp dword [rsp + 0x60], 0
jne 0x140075970
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x58]
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, qword [rsp + 0x50]
call fcn.14007e930
add rsp, 0x48
ret
Function at 0x140100110
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x18
xor eax, eax
test eax, eax
je 0x14010012f
movsx eax, byte [rsp + 0x28]
or eax, 0x20
mov dword [rsp], eax
jmp 0x140100137
movsx eax, byte [rsp + 0x28]
mov dword [rsp], eax
mov eax, dword [rsp]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
add rsp, 0x18
ret

Function at 0x140101450
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov rax, qword [0x140138010]
xor rax, rsp
mov qword [rsp + 0x138], rax
call fcn.140101260
mov rcx, qword [rsp + 0x150]
call fcn.140103c40
lea rdx, [rsp + 0xb0]
mov rcx, rax
call fcn.1400eed50
test eax, eax
je 0x1401014ca
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140101750
mov rcx, rax
call fcn.140101d10
mov rcx, rax
call fcn.1400fdac0
lea rcx, [0x14012f9c8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x1401016ba
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x31]
call fcn.1401017f0
mov rcx, rax
call fcn.140101cd0
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.140103e30
nop
lea rcx, [rsp + 0xd8]
call fcn.140103c40
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
mov r8d, 0xffffffff
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.1400a5d00
test eax, eax
je 0x140101587
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x32]
call fcn.140101820
mov rcx, rax
call fcn.140101d10
mov rcx, rax
call fcn.1400fdac0
lea rcx, [0x14012fa14]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [rsp + 0xb0]
call fcn.1400eba30
nop
lea rcx, [rsp + 0xd8]
call fcn.140103d80
jmp 0x1401016ba
mov rcx, qword [rsp + 0xa8]
call fcn.14004d6e0
cmp eax, 0x64
jne 0x140101685
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call fcn.14004e1e0
mov rdx, rax
lea rcx, [rsp + 0x118]
call fcn.140103e30
nop
mov edx, 1
mov rcx, qword [rsp + 0xa8]
call fcn.14004e1e0
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.140103e30
nop
mov edx, 2
mov rcx, qword [rsp + 0xa8]
call fcn.14004e0a0
cdqe
mov qword [rsp + 0x48], rax
mov edx, 2
mov rcx, qword [rsp + 0xa8]
call fcn.14004e060
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xf8]
call fcn.140103e90
lea rcx, [rsp + 0xb8]
call fcn.140103b60
movzx eax, al
test eax, eax
jne 0x140101657
lea rcx, [rsp + 0xb8]
call fcn.140103c40
mov rdx, rax
lea rcx, [0x14012f634]
call fcn.1400fdac0
lea rcx, [rsp + 0xf8]
call fcn.140103d80
nop
lea rcx, [rsp + 0xb8]
call fcn.140103d80
nop
lea rcx, [rsp + 0x118]
call fcn.140103d80
jmp 0x140101587
mov rcx, qword [rsp + 0xa8]
call fcn.14004c4b0
mov rcx, qword [rsp + 0xb0]
call fcn.1400eba30
lea rcx, [0x14012fa1c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
lea rcx, [rsp + 0xd8]
call fcn.140103d80
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140124a90
add rsp, 0x148
ret
Function at 0x1401021c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x1401021f9
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call 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]
jmp 0x1401022e7
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x14010228f
cmp qword [rsp + 0x20], 0
jle 0x14010228f
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x140102239
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140106200
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x1401022d7
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x1401022d7
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x1401022f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140138010]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x140102324
xor eax, eax
jmp 0x140102520
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x140102356
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call 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]
jmp 0x140102520
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140102407
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140102540
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.140106200
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x140102510
mov rcx, qword [rsp + 0x80]
call fcn.140104c40
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x1401024bd
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x1401024b8
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x140102520
jmp 0x140102433
cmp qword [rsp + 0x50], 0
jbe 0x140102510
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140124a90
add rsp, 0x78
ret
Function at 0x140104d00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140138010]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x140104d3d
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140104d44
mov al, 1
jmp 0x140104e9e
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.140104050
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.140104050
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.140106180
movzx eax, al
test eax, eax
je 0x140104d9b
xor al, al
jmp 0x140104e9e
mov qword [rsp + 0x60], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140104e0b
cmp dword [rsp + 0x30], 1
je 0x140104e17
cmp dword [rsp + 0x30], 3
je 0x140104e8c
jmp 0x140104e9c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x140104e63
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x140104e63
xor al, al
jmp 0x140104e9e
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140104e7d
mov dword [rsp + 0x34], 1
jmp 0x140104e85
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x140104e9e
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140104e9e
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140124a90
add rsp, 0xa8
ret
Function at 0x140125608
Capabilities:
Parse pe header

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

Function at 0x140125850
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1401258d4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140128810]
cmp byte [rcx + rax], 0
je 0x1401258d4
dec r8
sub rdx, 1
jne 0x1401258ba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140004ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140004f60
cmp r11, r10
ja 0x140004fd7
cmp r10, rdx
ja 0x140004fe9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140004f62
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140004f40
jmp 0x140004fc4
ja 0x140004f6a
mov r11, r10
cmp rax, r8
jne 0x140004f0e
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140004fa0
mov rdi, r8
sub ecx, edx
jns 0x140004fbb
jmp 0x140004fc6
cmp r8, rsi
je 0x140004ff8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140004fc6
xor al, 1
cmp rdi, rsi
jne 0x140004f80
jmp 0x140004fc6
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400040c0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140002df0
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140004130
int3

Function at 0x14000b220
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000b245
cmp rax, rcx
je 0x14000b24b
cmp rdx, 4
jae 0x14000b24f
xor eax, eax
xor r8d, r8d
jmp 0x14000b2e0
pop rbp
jmp fcn.140002980
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400363c0]
movdqa xmm3, xmmword [0x1400363d0]
pxor xmm1, xmm1
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000b270
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000b2f7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000b2e0
pop rbp
ret