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

Disassembly:
and byte [rbx - 0x4603bd0], dl
xchg edx, eax
xor byte [rdx - 0x7f], bl
fld qword [rax - 0x5d89f095]
test eax, 0x49101096
push 0x125d7c4f
imul ebp, dword [rdi], 0xa5233a1c
push r9
push r9
push r9
pushfq
movabs r9, 0xad03db96911e0538
xor r9w, 0xe10c
mov qword [rsp + 0x18], 0x3c4fb98a
mov r9, qword [rsp + 8]
push qword [rsp]
popfq
lea rsp, [rsp + 0x18]
call fcn.180e1af3c
cmpsd dword [rsi], dword [rdi]
jrcxz 0x180d133e1
mov al, 0x19
cld
xchg edi, eax
jrcxz 0x180d13451
invalid
ret

Function at 0x180dd7f67
Capabilities:
Execute anti-debugging instructions

Disassembly:
push r12
setg bl
push r8
movsx r11w, sil
movzx r11d, ax
push rdx
cdqe
rdtsc
push r13
mov r11b, dil
cdq
push r15
push r9
movabs rax, 0
xchg bp, r11w
cmovne r10w, r8w
push rax
cwd
mov r10d, dword [rsp + 0x90]
dec si
cqo
mov bp, 0xaea7
not r10d
mov r11b, r13b
dec rdi
not bp
inc r10d
xor bx, dx
xor r10d, 0x10a6e617
movsxd rbx, r9d
movsx ebx, bp
rol r10d, 3
movsxd rdi, r13d
rcl edi, cl
add r10, rax
rdtsc
shr rbp, 0x91
movabs rbx, 0x100000000
sbb sil, 0xbc
cwde
movsxd rbp, r14d
lea r10, [r10 + rbx]
mov rbp, rsp
jmp 0x180e3430b
jmp r11
dec eax
ror eax, 1
cmp r8w, r12w
neg eax
jmp 0x180dd2a80
inc eax
cmc
cmp r9b, 0xa5
push rdi
test r9b, spl
mov edi, 0x1b966fb7
xor dword [rsp], eax
xchg rdi, rdi
pop rdi
movsxd rax, eax
add r11, rax
jmp 0x180d4f0e0
push rbx
push rcx
not ebx
movsxd rbx, eax
push r10
movzx r10d, r15w
pushfq
movsx bx, dil
push rax
movsx ebx, ax
cdqe
push rdi
cwde
movzx edi, r14w
push r14
cbw
movsx rdi, dx
push rsi
push rbp
mov bl, r9b
cwde
push r11
movsxd rdi, r15d
jmp 0x180d2e7a7
lea rsi, [rbp - 0x200]
shrd ax, r13w, 0x16
sub rdx, 0x291b7b3d
rcr rdi, 0x13
and rsi, 0xfffffffffffffff0
bts r11w, r14w
mov rsp, rsi
mov rdi, r10
cwd
bt ax, 0x86
movabs rdx, 0
and r11b, 0xb1
sub rdi, rdx
shld ax, bp, 0x99
cwde
lea r11, [0x180e34353]
btc ax, 0x96
bsr ax, r14w
add ax, r8w
mov eax, dword [r10]
stc
add r10, 4
cmp edi, 0x58254598
cmc
xor eax, edi
jmp 0x180d8a086
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
xor r9, r9
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001940
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 case.default.0x140001961
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 0x14000198e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001990
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400019e9
test ecx, ecx
jle 0x1400019c9
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 0x1400019e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400019e9
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
mov eax, dword [rax + 7]
jmp 0x14000a42f
cmp al, 0x3c
mov eax, dword [rax + 0x2f]
jmp 0x14000a461
invalid
Function at 0x140001a10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140001a41
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140001a58
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140001a7b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001a7d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001ab9
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140001b4e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001af4
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 0x140001b2e
nop dword [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 0x140001b4e
cmp rbx, rax
ja 0x140001b00
test rbx, rbx
je 0x140001b4e
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
sub bl, byte [rdi - 0x74c3c3c2]
invalid
Function at 0x140001f70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140001f94
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140001fcb
mov rax, qword [rcx + 0x58]
movsxd rcx, dword [rax]
add rcx, rdx
cmp rdx, rcx
jae 0x140001fcb
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x1400020fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000200e
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 0x140002039
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 0x140002101
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x1400020ae
sub eax, 1
je 0x1400020ae
cmp eax, 2
jne 0x1400020fc
movsx ecx, byte [rsp + 0x40]
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 0x140002101
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x1400020df
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400020fc
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002101
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140002520
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400025e9
cmp byte [rcx + 0x71], 0
je 0x1400025e9
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400025dc
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x140002598
sub eax, 1
je 0x14000259c
cmp eax, 2
jne 0x1400025dc
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x1400025ca
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400025dc
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret

Function at 0x1400033b4
Capabilities:
Parse pe header

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

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

Disassembly:
cmp byte [rcx + 0xb], 0
je 0x140068083
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x13]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xa
jb 0x140068070
mov byte [rcx + 0xb], 0
mov rax, rcx
ret
Function at 0x140069a10
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 8], 0
je 0x140069a33
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x13]
xor byte [rax + rcx], dl
inc rax
cmp rax, 7
jb 0x140069a20
mov byte [rcx + 8], 0
mov rax, rcx
ret
Function at 0x14006b4d0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14038a2e4], eax
jle 0x14006b69b
lea rcx, [0x14038a2e4]
call fcn.140261dc4
cmp dword [0x14038a2e4], 0xffffffff
jne 0x14006b69b
lea rdx, [rsp + 0x20]
call fcn.14006b6e0
mov r9, rax
cmp byte [rax + 0xd], 0
je 0x14006b67d
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14006b646
movdqa xmm2, xmmword [0x14034eac0]
mov eax, 4
movdqa xmm4, xmmword [0x14034fa50]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x14034ead0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
mov ecx, 8
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm5, eax
mov eax, Ordinal_32
movaps xmmword [rsp + 0x30], xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movd xmm6, eax
movdqa xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14034eb00]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [r9]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x14034eb80]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14034ebb0]
pxor xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [r9], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movdqa xmm0, xmm1
psrld xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14034eb00]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [r9 + 4]
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x14034eb80]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14034ebb0]
pxor xmm2, xmm0
movd dword [r9 + 4], xmm2
mov r8d, ecx
add r8, r9
nop dword [rax]
mov eax, 0x4bda12f7
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x36
movzx eax, cl
inc ecx
sub al, dl
add al, 0x34
xor byte [r8 - 1], al
cmp ecx, 0xe
jl 0x14006b650
xor edx, edx
mov rcx, r9
call qword [sym.imp.USER32.dll_FindWindowA]
lea rcx, [0x14038a2e4]
mov qword [0x14038a298], rax
call fcn.140261d64
xor ecx, ecx
call fcn.1400c7080
mov rcx, qword [0x140389870]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rdx, qword [0x140389870]
mov cl, 1
call fcn.1400c7060
mov rdx, qword [0x14038a298]
mov cl, 1
call fcn.1400c7060
xor ecx, ecx
call fcn.1402709a0
int3
Function at 0x14006e940
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 + 0x40], rcx
xor esi, esi
cmp byte [r8 + 9], sil
je 0x14006e974
mov eax, esi
lea ecx, [rax - 0x13]
xor byte [r8 + rax], cl
inc rax
cmp rax, 8
jb 0x14006e960
mov byte [r8 + 9], sil
lea rax, [r8 + 8]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x20], sil
cmp r9, rax
je 0x14006e9a4
mov r8d, 8
mov rdx, r9
lea rcx, [rsp + 0x20]
call fcn.14007c9b0
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14006e9b2
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14007fcc0
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 + 0x38]
cmp rdx, 0x10
jb 0x14006ea1f
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006ea1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006ea2a
call fcn.140261c34
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
call fcn.140276034
int3
Function at 0x14006fc70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x50
movss xmm1, dword [0x14034ea0c]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm6
mov rsi, rcx
call fcn.140097e30
mov rbx, qword [0x140389ba0]
lea rdx, [rsp + 0x28]
movaps xmm6, xmmword [0x14034edc0]
xor edi, edi
mov dword [rsp + 0x28], edi
movups xmm0, xmmword [rbx + 0x1624]
lea rcx, [rbx + 0x1bc0]
movups xmmword [rsp + 0x2c], xmm0
call fcn.14009e240
cmp byte [0x14034c10b], dil
mov eax, dword [str.o_nk7]
mov dword [rsp + 0x20], eax
movups xmmword [rbx + 0x1624], xmm6
je 0x14006fdbf
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14006fd8a
movdqa xmm3, xmmword [0x14034eac0]
mov ecx, 4
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x14034fa50]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x14034fa50]
shufps xmm2, xmm0, 0xdd
movd xmm0, ecx
mov ecx, Ordinal_32
psrad xmm2, xmm0
movdqa xmm1, xmm2
movd xmm0, ecx
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x14034eb00]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x14034eb80]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14034ebb0]
movd xmm0, eax
pxor xmm2, xmm0
movd dword [rsp + 0x20], xmm2
jmp 0x14006fdbf
lea r8, [rsp + 0x20]
nop
mov eax, 0x2f684bdb
lea r8, [r8 + 1]
mul edi
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x36
movzx eax, dil
inc edi
sub al, cl
add al, 0x34
xor byte [r8 - 1], al
cmp edi, 4
jl 0x14006fd90
lea rcx, [rsp + 0x20]
call fcn.1400afe30
mov r8, qword [0x140389ba0]
mov rcx, qword [r8 + 0x1bc8]
movsxd rax, dword [r8 + 0x1bc0]
lea rdx, [rax + rax*4]
movsxd rax, dword [rcx + rdx*4 - 0x14]
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
add rax, rax
movups xmmword [r8 + rax*8 + 0x1624], xmm0
dec dword [r8 + 0x1bc0]
cmp byte [r8 + 0x1c67], 0
mov rcx, qword [r8 + 0x1a90]
je 0x14006fe34
cmp byte [r8 + 0x1c66], 0
jne 0x14006fe34
mov eax, dword [r8 + 0x1c18]
test eax, eax
je 0x14006fecd
cmp eax, dword [rcx + 0x11c]
jmp 0x14006fec3
test byte [rcx + 0x120], 1
je 0x14006fecd
mov rdx, qword [rcx + 0x3c0]
cmp qword [r8 + 0x1aa0], rdx
jne 0x14006fecd
mov eax, dword [r8 + 0x1ae0]
test eax, eax
je 0x14006fe73
cmp eax, dword [rcx + 0x11c]
je 0x14006fe73
cmp byte [r8 + 0x1aed], 0
jne 0x14006fe73
cmp eax, dword [rcx + 0x4c]
jne 0x14006fecd
mov rax, qword [r8 + 0x1c10]
test rax, rax
je 0x14006fea8
mov rax, qword [rax + 0x3c0]
test rax, rax
je 0x14006fea8
cmp byte [rax + 0x87], 0
je 0x14006fea8
cmp rax, rdx
je 0x14006fea8
mov edx, dword [rax + 0xc]
bt edx, 0x1b
jb 0x14006fecd
bt edx, 0x1a
jb 0x14006fecd
test byte [rcx + 0x1c0], 4
jne 0x14006fecd
mov eax, dword [rcx + 0x4c]
cmp dword [rcx + 0x11c], eax
jne 0x14006fec5
cmp byte [rcx + 0x88], 0
jne 0x14006fecd
mov rcx, rsi
call fcn.140098af0
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140078650
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x12], 0
je 0x140078673
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x13]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x11
jb 0x140078660
mov byte [rcx + 0x12], 0
mov rax, rcx
ret

Function at 0x140078dd0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140078df2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140078e6c
mov rdi, r14
mov rcx, rbx
call fcn.14007c990
test rax, rax
jle 0x140078e44
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1402645e0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140078e5c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140078e64
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140078e06
sub r14, rdi
jmp 0x140078f59
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140078e83
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140078e85
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140078eba
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1402645e0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140078f56
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140078ef5
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140078f31
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14027a81c
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140078f6f
cmp rbp, rax
ja 0x140078f01
mov r8, rdi
test rdi, rdi
je 0x140078f56
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14027a81c
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140078f59
Function at 0x1400793a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14037f670]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400793cd
xor eax, eax
jmp 0x140079513
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140079407
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140079407
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 0x140079513
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140079506
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14007944a
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 0x140079459
movsx ecx, dil
jmp 0x1400794ad
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + gethostname]
test eax, eax
js 0x140079506
cmp eax, 1
jle 0x1400794c7
cmp eax, 3
jne 0x140079506
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.1402709c4
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14007950b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400794f4
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.1402767f8
cmp rsi, rax
jne 0x140079506
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14007950b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140261c10
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret