joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005dcb0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov r13, r9
mov r12, r8
mov rsi, rdx
mov r15, rcx
mov dword [rsp + 0xc8], 0x80004005
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov eax, dword [rdx]
inc eax
mov r14d, eax
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
mov r8d, r14d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [rsi]
mov r8, qword [rsi + 8]
mov edx, r14d
mov rcx, rdi
call fcn.140019f80
test eax, eax
jne 0x14005de06
mov rax, qword [r13 + 8]
mov qword [rsp + 0x30], rax
mov eax, dword [r12]
mov dword [rsp + 0x28], eax
mov rax, qword [r12 + 8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov rcx, r15
call sym.NetworkCap.exe_private:_void___cdecl_Hp::Bridge::Server::Services::Registration::CryptographyHelper::CreateTripleDESKey_unsigned_long_long_unsigned___int64_____ptr64__unsigned_long_long_unsigned___int64_____ptr64__unsigned_long_long_unsigned___int64_____ptr64__unsigned_char____ptr64__unsigned_long_int__unsigned_char____ptr64____ptr64
mov eax, dword [rsi]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x14005de3b
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rsp + 0x40]
mov dword [rcx], eax
mov qword [rcx + 8], rdi
mov dword [rsp + 0xc8], ebx
jmp 0x14005ddb5
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14005ddc5
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005ddd5
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14005dde7
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
test eax, eax
jle 0x14005de19
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0xc8], eax
lea rcx, [rsp + 0x60]
call fcn.14005ce10
lea rdx, [0x1400bf158]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14005de4d
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0xc8], eax
lea rcx, [rsp + 0x78]
call fcn.14005ce10
lea rdx, [0x1400bf158]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14005e390
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r14
push r15
sub rsp, 0x40
mov rsi, r9
mov r15d, r8d
mov rdi, rdx
xor ebx, ebx
mov qword [r11 - 0x18], rbx
mov r14, qword [rsp + 0x78]
mov qword [r14], rbx
lea rax, [r11 - 0x18]
mov qword [r11 - 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14005e41d
xor r9d, r9d
mov r8d, dword [rsp + 0x70]
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14005e41d
mov qword [rsp + 0x20], r14
mov esi, 1
mov r9d, esi
mov r8, qword [rsp + 0x30]
mov edx, r15d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
cmovne ebx, esi
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14005e42d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x140060c40
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x2a0
mov rax, qword [0x1400c9008]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov dword [rsp + 0x20], 0x12c
xor edx, edx
mov r8d, 0x258
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
xor bl, bl
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140060cc7
xor eax, eax
lea r8, [rsp + 0x30]
lea r9, str.SYSTEM
nop dword [rax]
movzx edx, word [r8 + rax*2]
inc rax
movzx ecx, word [r9 + rax*2 - 2]
sub edx, ecx
jne 0x140060cb8
cmp rax, 7
jne 0x140060ca0
movzx eax, bl
mov ecx, 1
test edx, edx
cmove eax, ecx
jmp 0x140060cca
movzx eax, bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140061b20
add rsp, 0x2a0
pop rbx
ret
Function at 0x14000ed84
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140043db0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
movdqa xmm0, xmmword [0x1400300d0]
lea rdx, [rbp - 0x39]
mov rbx, rcx
xor edi, edi
xor ecx, ecx
mov word [rbp - 0x11], di
movdqu xmmword [rbp - 1], xmm0
mov dword [rbp - 0x39], edi
call qword [sym.imp.USERENV.dll_GetAllUsersProfileDirectoryW]
nop dword [rax + rax]
mov edx, dword [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.14000d1b4
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 0x39]
call qword [sym.imp.USERENV.dll_GetAllUsersProfileDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14000ee45
mov r8d, dword [rbp - 0x39]
lea rcx, [rbp + 0x2f]
mov rdx, qword [rbp - 0x29]
dec r8d
call fcn.14000c45c
mov rdx, rax
lea r8, [0x1400300c0]
lea rcx, [rbp + 0xf]
call fcn.1400086dc
lea r8, str.MicrosoftWindows_Defender_Advanced_Threat_Protection_
mov rdx, rax
mov rcx, rbx
call fcn.1400086dc
lea rcx, [rbp + 0xf]
call fcn.1400082a4
lea rcx, [rbp + 0x2f]
call fcn.1400082a4
jmp 0x14000ee9b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call fcn.140008d5c
cmp dword [rax], 2
jbe 0x14000ee8c
lea rcx, str.GetAllUsersProfileDirectory_failed
mov dword [rbp - 0x35], edi
mov qword [rbp - 0x31], rcx
lea rdx, [0x14003a12c]
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x35]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140002ecc
lea rdx, str.MicrosoftWindows_Defender_Advanced_Threat_Protection_
mov rcx, rbx
call fcn.140007720
lea rcx, [rbp - 0x29]
call fcn.14000df40
lea rcx, [rbp - 0x11]
call fcn.1400082a4
mov rax, rbx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14000f940
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14000f968
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140044440], eax
call fcn.1400100e0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140044440], 0
jne case.default.0x14000f9be
mov ecx, 1
call fcn.1400100e0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
xchg edi, eax
cmpsd dword [rsi], dword [rdi]
jge 0x14006f15e
mov dh, bl
div byte [rdi]
cmp dword [rbp + 0x5bd334ab], ebp
invalid
invalid
Function at 0x1400160d8
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 - 0x18], 0
lea rax, str.Sense
and qword [r11 - 0x10], 0
lea rcx, [r11 - 0x28]
mov qword [r11 - 0x28], rax
lea rax, [0x1400134f0]
mov qword [r11 - 0x20], rax
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_StartServiceCtrlDispatcherW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
lea rdx, str.Failed_to_start_service_control_dispatcher
mov qword [rsp + 0x20], rdx
lea r8, str.amcorewcd_source_service_src_service.cpp
mov edx, 0x8a
mov r9d, eax
call fcn.140006b58
cmp qword [0x140044e08], 0
jne 0x140016150
cmp dword [0x140043ddc], 1
jne 0x1400161da
jmp 0x1400161d4
cmp dword [0x140043ddc], 1
je 0x1400161d4
call fcn.140008d5c
cmp dword [rax], 2
jbe 0x1400161b4
mov ecx, dword [0x140043ddc]
lea rdx, [0x140039c59]
mov dword [rsp + 0x70], ecx
lea rcx, str.Service_stopped_with_unexpected_service_status._Terminating_process
mov qword [rsp + 0x80], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov dword [rsp + 0x78], 0x507
call fcn.1400026b0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
mov edx, 2
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
nop dword [rax + rax]
add rsp, 0x68
ret
mov ecx, 0x8007000e
call fcn.14000f3ec
mov rcx, qword [rsp + 0x68]
lea r8, str.amcorewcd_source_service_src_service.cpp
mov r9d, eax
mov edx, 0x8f
lea rax, str.Service_control_dispatcher_failed_without_saying_so...
mov qword [rsp + 0x20], rax
call fcn.14001701c
int3

Function at 0x140019e90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
sub r9, r8
mov rax, rdx
sub rax, rcx
mov r15, r8
xor rax, r9
mov rbp, rdx
mov r14, rcx
test rax, 0xfffffffffffffffe
jne 0x140019f0c
mov rbx, qword [rsp + 0x60]
sub r15, rcx
cmp r14, rbp
je 0x140019f10
movzx edx, word [r15 + r14]
mov rcx, qword [rbx + 8]
movzx esi, word [r14]
call qword [sym.imp.msvcp_win.dll_public:_wchar_t___cdecl_std::ctype_wchar_t_::tolower_wchar_t_const___ptr64]
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
movzx edx, si
movzx edi, ax
call qword [sym.imp.msvcp_win.dll_public:_wchar_t___cdecl_std::ctype_wchar_t_::tolower_wchar_t_const___ptr64]
nop dword [rax + rax]
cmp ax, di
jne 0x140019f0c
add r14, 2
jmp 0x140019ecd
xor al, al
jmp 0x140019f12
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140003dc0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x47], 0
je 0x140003de3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x39]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x46
jb 0x140003dd0
mov byte [rcx + 0x47], 0
mov rax, rcx
ret

Function at 0x140003df0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
cmp byte [r8 + 6], sil
je 0x140003e24
mov ecx, esi
lea eax, [rcx - 0x39]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 5
jb 0x140003e10
mov byte [r8 + 6], sil
lea rax, [r8 + 5]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], sil
cmp r9, rax
je 0x140003e59
mov r8d, 5
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.140006ba0
nop
cmp byte [rbx + 0xa], 0
je 0x140003e83
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x39]
xor byte [rcx + rbx], al
inc rcx
cmp rcx, 9
jb 0x140003e70
mov byte [rbx + 0xa], 0
lea rax, [rbx + 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
cmp rbx, rax
je 0x140003eb8
mov r8d, 9
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140006ba0
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
movzx edx, byte [rsp + 0x20]
mov rcx, rdi
call fcn.140008e40
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140003f11
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003f0b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003f0b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b961c
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140003f51
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003f4c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003f4c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b961c
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003f60
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
cmp byte [r8 + 7], sil
je 0x140003f94
mov ecx, esi
lea eax, [rcx - 0x39]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 6
jb 0x140003f80
mov byte [r8 + 7], sil
lea rax, [r8 + 6]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], sil
cmp r9, rax
je 0x140003fc9
mov r8d, 6
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.140006ba0
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140003fd7
mov rbx, qword [rbx]
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.140009cf0
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000404c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004047
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004047
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b961c
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140004060
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
cmp byte [r8 + 0xa], sil
je 0x140004094
mov ecx, esi
lea eax, [rcx - 0x39]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 9
jb 0x140004080
mov byte [r8 + 0xa], sil
lea rax, [r8 + 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], sil
cmp r9, rax
je 0x1400040c9
mov r8d, 9
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.140006ba0
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400040d7
mov rbx, qword [rbx]
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.140009cf0
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000414c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004147
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004147
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b961c
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140004160
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x136], 0
je 0x140004188
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x39]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x135
jb 0x140004170
mov byte [rcx + 0x136], 0
mov rax, rcx
ret
Function at 0x1400041c0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
cmp byte [r8 + 0xc], sil
je 0x1400041f4
mov ecx, esi
lea eax, [rcx - 0x39]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 0xb
jb 0x1400041e0
mov byte [r8 + 0xc], sil
lea rax, [r8 + 0xb]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], sil
cmp r9, rax
je 0x140004229
mov r8d, ntohs
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.140006ba0
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140004237
mov rbx, qword [rbx]
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.140009cf0
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400042ac
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400042a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400042a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b961c
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004800
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
cmp byte [r8 + 6], sil
je 0x140004834
mov ecx, esi
lea eax, [rcx - 0x39]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 5
jb 0x140004820
mov byte [r8 + 6], sil
lea rax, [r8 + 5]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], sil
cmp r9, rax
je 0x140004869
mov r8d, 5
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.140006ba0
nop
cmp byte [rbx + 0xd], 0
je 0x140004893
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x39]
xor byte [rcx + rbx], al
inc rcx
cmp rcx, 0xc
jb 0x140004880
mov byte [rbx + 0xd], 0
lea rax, [rbx + 0xc]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
cmp rbx, rax
je 0x1400048c8
mov r8d, ntohs
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140006ba0
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
movzx edx, byte [rsp + 0x20]
mov rcx, rdi
call fcn.140008e40
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140004921
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000491b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000491b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b961c
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140004961
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000495c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000495c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b961c
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004f10
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 0x140004f38
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 0x140004f5e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004f60
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004fb9
test ecx, ecx
jle 0x140004f99
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 0x140004fb9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004fb9
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 0x140004fe0
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 0x140005002
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005018
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 0x140005034
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005036
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005072
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 0x14000510e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400050ad
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 0x1400050ee
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 0x14000510e
cmp rbx, rax
ja 0x1400050c0
test rbx, rbx
je 0x14000510e
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