joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140060650
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
movzx eax, byte [rcx]
lea r13, [0x14009b13b]
sub r13, rcx
mov qword [rsp + 0x50], 5
mov qword [rsp + 0x48], r13
lea r8, str._____executable_:__WindowsClientSolarlandBinariesWin64SolarlandClient_Win64_Shipping.exe___n
lea r13, [0x14009b13c]
sub r8, rcx
sub r13, rcx
lea r9, [0x14009b131]
mov qword [rsp + 0x58], r13
lea r10, [0x14009b132]
lea r11, [0x14009b133]
sub r9, rcx
lea rbx, [0x14009b134]
sub r10, rcx
lea rdi, [0x14009b135]
sub r11, rcx
lea rsi, [0x14009b136]
sub rbx, rcx
lea rbp, [0x14009b137]
sub rdi, rcx
lea r14, [0x14009b138]
sub rsi, rcx
lea r15, [0x14009b139]
sub rbp, rcx
lea r12, [0x14009b13a]
sub r14, rcx
lea r13, [0x14009b13d]
sub r15, rcx
sub r12, rcx
lea rdx, [rcx + 5]
sub r13, rcx
mov qword [rsp + 0x60], r13
mov r13, qword [rsp + 0x48]
xor al, byte [r8 + rdx - 5]
lea rdx, [rdx + 0x13]
xor al, byte [rcx + 2]
mov byte [rdx - 0x14], al
xor al, byte [r9 + rdx - 0x18]
mov byte [rdx - 0x13], al
xor al, byte [r10 + rdx - 0x18]
mov byte [rdx - 0x12], al
xor al, byte [r11 + rdx - 0x18]
mov byte [rdx - 0x11], al
xor al, byte [rbx + rdx - 0x18]
mov byte [rdx - 0x10], al
xor al, byte [r8 + rdx - 0x13]
mov byte [rdx - 0xf], al
xor al, byte [r9 + rdx - 0x13]
mov byte [rdx - 0xe], al
xor al, byte [r10 + rdx - 0x13]
mov byte [rdx - 0xd], al
xor al, byte [r11 + rdx - 0x13]
mov byte [rdx - 0xc], al
xor al, byte [rbx + rdx - 0x13]
mov byte [rdx - 0xb], al
xor al, byte [rdi + rdx - 0x13]
mov byte [rdx - 0xa], al
xor al, byte [rsi + rdx - 0x13]
mov byte [rdx - 9], al
xor al, byte [rdx + rbp - 0x13]
mov byte [rdx - 8], al
xor al, byte [r14 + rdx - 0x13]
mov byte [rdx - 7], al
xor al, byte [r15 + rdx - 0x13]
mov byte [rdx - 6], al
xor al, byte [r12 + rdx - 0x13]
mov byte [rdx - 5], al
xor al, byte [rdx + r13 - 0x13]
mov r13, qword [rsp + 0x58]
mov byte [rdx - 4], al
xor al, byte [rdx + r13 - 0x13]
mov r13, qword [rsp + 0x60]
mov byte [rdx - 3], al
xor al, byte [rdx + r13 - 0x13]
mov r13, qword [rsp + 0x48]
mov byte [rdx - 2], al
xor al, byte [rcx + 2]
sub qword [rsp + 0x50], 1
jne 0x140060711
mov byte [rcx + 0x63], 0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140061d20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400aa010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140061df3
cmp byte [rcx + 0x71], 0
je 0x140061df3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140061def
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 0x140061db4
sub eax, 1
je 0x140061db8
cmp eax, 2
jne 0x140061def
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140070f60
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140061de6
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 0x140061def
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140061d9c
xor al, al
jmp 0x140061d9c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140070f60
add rsp, 0x60
pop rbx
ret

Function at 0x140070e30
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 0x140070eb4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140075a70]
cmp byte [rcx + rax], 0
je 0x140070eb4
dec r8
sub rdx, 1
jne 0x140070e9a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140071ca4
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00405ed0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00405ee0]
mov dword [rax], 1
mov rax, qword [0x00405ef0]
mov dword [rax], 1
mov rax, qword [0x00405ec0]
mov dword [rax], 1
mov rax, qword [0x00405db0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00405eb0]
mov dword [0x0040900c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00405e70]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00405d60]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067
Function at 0x402af0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x402b60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00409614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x402d08
mov rax, qword [0x00409618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x402bac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x402c37
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x402b90
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x402d42
mov rax, qword [0x00409618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00409618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402d51
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x402c30
sub eax, 4
and eax, 0xfffffffb
jne 0x402cc0
add dword [0x00409614], 1
cmp ebx, 8
jae 0x402c68
test bl, 4
jne 0x402d10
test ebx, ebx
je 0x402c59
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x402d30
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x402c59
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x402c9a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00409618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402c30
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x402bb7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x402c59
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x402c59
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00409618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x403530
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00409900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004098e0]
test rbx, rbx
je 0x403584
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40357b
test r12, r12
je 0x40357b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403560
lea rcx, [0x00409900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x4037b0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x4037c0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x4037d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x403815
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40380c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x403817
add rax, 0x28
cmp rax, r9
jne 0x4037f8
xor eax, eax
ret

Function at 0x4038c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00405db0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x403939
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403939
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x403936
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x40392d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x403939
add r8, 0x28
cmp r8, r9
jne 0x403918
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x403a20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00405db0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x403a8f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403a8f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x403a8d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x403a84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403a98
add rax, 0x28
cmp rax, r9
jne 0x403a70
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x403ab0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00405db0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x403b28
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403b28
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x403b28
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x403b28
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x403b1c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x403b30
add rdx, 0x28
cmp rdx, r10
jne 0x403b08
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x403b40
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x403b4e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x403b25
test r8d, r8d
jg 0x403b38
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140038316
Capabilities:
Terminate process

Disassembly:
jmp 0x1400a25f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400383e3
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400a3940
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400a3960
xor al, al
jmp 0x1400a39e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400a3973
xor al, al
jmp 0x1400a39e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400a399d
xor al, al
jmp 0x1400a39e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400a39b1
xor al, al
jmp 0x1400a39e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400a39c3
xor al, al
jmp 0x1400a39e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400a39df
xor al, al
jmp 0x1400a39e1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400068dc
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140055690], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x14000693c
movdqa xmm0, xmmword [0x14003ab00]
movdqa xmm1, xmmword [0x14003aaf0]
movdqa xmmword [0x14004c430], xmm0
movdqa xmm0, xmmword [0x14003aad0]
movdqa xmmword [0x14004c440], xmm1
movdqa xmm1, xmmword [0x14003aae0]
movdqa xmmword [0x14004c450], xmm0
movdqa xmmword [0x14004c460], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.140026330
xor edx, edx
mov qword [rbx + 0x110], rdx
mov byte [rbx + 0x118], dl
mov rcx, qword [rbx + 0xf8]
lea rax, [0x14003aab0]
mov eax, dword [rdx + rax]
mov dword [rdx + rcx], eax
add rdx, 4
cmp rdx, 0x20
jl 0x140006958
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
shl edi, 0x10
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor dword [rax + 0xc], edi
add rsp, 0x20
pop rdi
ret

Function at 0x1400071f0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140007216
movzx r9d, byte [rdx]
inc rdx
movzx eax, cl
xor r9, rax
shr ecx, 8
lea rax, [0x14004c470]
xor ecx, dword [rax + r9*4]
sub r8, 1
jne 0x1400071f5
mov eax, ecx
ret

Function at 0x140007478
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x70
cmp dword [rcx], 2
lea rbx, [rcx + 4]
mov rsi, rdx
mov rdi, rcx
mov r14d, 0x20
jne 0x140007504
and qword [r11 - 0x38], 0
lea r9d, [r14 - 0x1c]
and qword [r11 - 0x40], 0
lea r8, [r11 + 8]
mov eax, dword [rbx]
mov edx, r14d
and qword [r11 - 0x48], 0
mov rcx, rsi
and qword [r11 - 0x50], 0
mov dword [r11 + 8], eax
lea rax, [r11 - 0x28]
mov qword [r11 - 0x58], rax
call fcn.140007de0
xor r9d, r9d
lea r10, [rsp + 0x50]
xor r8d, r8d
movzx edx, byte [r10]
mov ecx, r9d
and ecx, 3
inc r9d
shl ecx, 3
inc r10
shl edx, cl
xor edx, r8d
mov r8d, edx
cmp r9d, r14d
jb 0x1400074e2
mov dword [rbx], edx
cmp dword [rdi], 3
jne 0x14000754c
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
and qword [rsp + 0x38], 0
mov r9, r14
and qword [rsp + 0x30], 0
mov r8, rbx
and qword [rsp + 0x28], 0
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140007de0
mov r8, r14
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400271c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140007a40
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], r9
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x7c8]
sub rsp, 0x8a0
mov r14d, dword [rbp + 0x800]
mov rdi, r8
mov r13b, dl
mov r15, rcx
cmp r14d, 0x18
ja 0x140007c7b
xor esi, esi
lea rbx, [rcx + 0x148]
mov rdx, rdi
mov rcx, rbx
call fcn.140012a1c
test al, al
je 0x140007abb
lea rcx, [rbx + 0x20]
cmp dword [rcx + 0x30], r14d
jne 0x140007abb
mov rdx, qword [rbp + 0x7f0]
mov r8d, 0x10
call fcn.1400270c0
test eax, eax
je 0x140007c97
inc esi
add rbx, 0x98
cmp esi, 4
jb 0x140007a88
mov rcx, qword [rbp + 0x7e8]
lea rdx, [rbp - 0x60]
mov esi, 0x800
mov r8d, esi
call fcn.140015bf0
mov ecx, r14d
mov ebx, 1
shl ebx, cl
lea rcx, [rbp - 0x60]
call fcn.14002cd60
mov r8, qword [rbp + 0x7f0]
lea rcx, [rbp - 0x60]
mov rdx, rax
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x60]
mov ebx, 0x10
mov qword [rsp + 0x30], rax
mov r9d, ebx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.1400080c4
mov edx, esi
lea rcx, [rbp - 0x60]
call fcn.140012d2c
mov ecx, dword [r15 + 0x3a8]
mov eax, ecx
and eax, 3
imul rsi, rax, 0x98
lea eax, [rcx + 1]
add rsi, 0x148
mov dword [r15 + 0x3a8], eax
add rsi, r15
mov dword [rsi + 0x50], r14d
cmp rsi, rdi
je 0x140007b81
mov r9b, byte [rbp + 0x800]
mov rcx, rsi
mov r8, qword [rdi + 8]
mov rdx, qword [rdi]
call fcn.140007264
mov al, byte [rdi + 0x18]
lea rcx, [rsi + 0x20]
mov rdx, qword [rbp + 0x7f0]
mov r8, rbx
mov byte [rsi + 0x18], al
call fcn.1400271c0
mov edi, 0x20
lea rdx, [rsp + 0x40]
mov r8d, edi
lea rcx, [rsi + 0x30]
call fcn.1400271c0
lea rcx, [rsi + 0x54]
mov r8d, edi
lea rdx, [rsp + 0x60]
call fcn.1400271c0
lea rcx, [rsi + 0x74]
mov r8d, edi
lea rdx, [rbp - 0x80]
call fcn.1400271c0
xor r9d, r9d
lea rcx, [rsi + 0x30]
mov r8b, 1
mov edx, edi
call fcn.140012b5c
mov rcx, qword [rbp + 0x808]
test rcx, rcx
je 0x140007bfa
mov r8, rdi
lea rdx, [rbp - 0x80]
call fcn.1400271c0
mov rbx, qword [rbp + 0x810]
test rbx, rbx
je 0x140007c43
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call fcn.140026330
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov r9, rdi
mov al, byte [rdx]
mov rcx, r8
and ecx, 7
inc r8
inc rdx
xor byte [rcx + rbx], al
sub r9, 1
jne 0x140007c1f
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140012d2c
mov rax, qword [rbp + 0x7f8]
test rax, rax
je 0x140007c6e
lea rcx, [r15 + 0x3b0]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rsp + 0x40]
mov dl, r13b
call fcn.140011f44
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140012d2c
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov edi, 0x20
lea rdx, [rbx + 0x30]
mov r8d, edi
lea rcx, [rsp + 0x40]
call fcn.1400271c0
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov edx, edi
call fcn.140012b5c
lea rdx, [rbx + 0x54]
mov r8d, edi
lea rcx, [rsp + 0x60]
call fcn.1400271c0
lea rdx, [rbx + 0x74]
mov r8d, edi
lea rcx, [rbp - 0x80]
call fcn.1400271c0
jmp 0x140007be2
Function at 0x1400080c4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
mov rax, r8
mov r15, rdx
mov r8d, 0x40
mov r12, rcx
cmp r9, r8
lea rcx, [rbp - 0x40]
mov rdx, rax
mov rbx, r9
cmovb r8, r9
call fcn.1400271c0
xor edi, edi
mov dword [rbp + rbx - 0x40], 0x1000000
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rdi
lea r9, [rbx + 4]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x40]
mov qword [rsp + 0x28], rdi
mov rdx, r15
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.140007de0
lea r13d, [rdi + 0x20]
mov r8d, r13d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.1400271c0
mov eax, dword [rbp + 0x178]
lea rsi, [rbp - 0x80]
dec eax
mov byte [rbp + 0x178], dil
mov dword [rsp + 0x50], eax
lea r14d, [r13 - 0x1d]
mov rax, qword [rbp + 0x160]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp + 0x168]
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x170]
mov byte [rbp + 0x160], dil
lea rdi, [rsp + 0x50]
mov qword [rbp - 0x70], rax
mov dword [rsp + 0x54], 0x10
mov dword [rsp + 0x58], 0x10
cmp dword [rdi], 0
jbe 0x14000824b
mov ebx, dword [rdi]
lea rax, [rbp + 0x178]
mov r9, r13
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x60]
lea rax, [rbp + 0x30]
mov rdx, r15
mov qword [rsp + 0x38], rax
mov rcx, r12
lea rax, [rbp + 0x160]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
call fcn.140007de0
mov r8, r13
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x60]
call fcn.1400271c0
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm0, xmmword [rbp + rax - 0x68]
movdqu xmm1, xmmword [rsp + rax + 0x60]
lea rax, [rax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x78], xmm1
sub rcx, 1
jne 0x140008221
sub rbx, 1
jne 0x1400081c2
mov rcx, qword [rsi]
lea rdx, [rbp - 0x68]
mov r8, r13
call fcn.1400271c0
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x1400081b7
lea edx, [r14 + 0x44]
lea rcx, [rbp - 0x40]
call fcn.140012d2c
mov rdx, r13
lea rcx, [rbp - 0x68]
call fcn.140012d2c
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.140012d2c
mov rdx, r13
lea rcx, [rbp + 0x10]
call fcn.140012d2c
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret