joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140081600
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400b9060]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140081695
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400816f6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14005f220
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140095530
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400817b1
sub ecx, 1
je 0x140081824
sub ecx, 1
je 0x140081760
cmp ecx, 1
je 0x140081743
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400a8a4c]
call fcn.14005f220
jmp 0x140081824
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140081330
test eax, eax
je 0x140081824
jmp 0x1400816ca
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140081824
sub rax, rsi
cmp rax, rbp
jae 0x140081824
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14005f3a0
jmp 0x140081824
cmp r8d, 4
jle 0x140081824
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140081824
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14005f140
mov esi, eax
test eax, eax
je 0x140081803
mov edx, 5
mov rcx, rbx
call fcn.1400822f0
mov eax, esi
jmp 0x1400816ca
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140069690
mov rcx, r14
call fcn.140069970
test eax, eax
je 0x1400816c8
mov edx, 5
mov rcx, rbx
call fcn.1400822f0
mov eax, Ordinal_45
jmp 0x1400816ca
Function at 0x1400953e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x140095422
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140095469
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400954c2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140095480
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140095503
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400a4932]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400a4933]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400954d0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140003820
Capabilities:
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1400f46e8], 1
je 0x140003890
mov r8, rdx
movabs r9, 0x4924924924924925
xor eax, eax
mov r10, rdx
mov r11d, Ordinal_32
nop word cs:[rax + rax]
nop dword [rax]
mov rsi, rax
shr rax, 2
mul r9
shr rdx, 1
imul rax, rdx, 0xffffffffffffffe4
movzx edx, byte [r8 + r11]
xor dl, byte [r10 + rax]
mov byte [rcx + r11 - 0x1c], dl
mov rax, r11
inc rax
mov r11, rax
inc r10
inc rsi
cmp eax, 0x2c
mov rax, rsi
jne 0x140003850
mov dword [0x1400f46e8], 1
mov eax, 0x4d7da330
pop rsi
ret
Function at 0x14000b270
Capabilities:
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1400f3de4], 1
je 0x14000b2d3
mov r8, rdx
movabs r10, 0x4ec4ec4ec4ec4ec5
xor r9d, r9d
mov eax, reloc.WLDAP32.dll_Ordinal_26
nop
mov r11, rax
mov rsi, rdx
mov rax, r9
mul r10
shr rdx, 3
imul rax, rdx, 0xffffffffffffffe6
movzx edx, byte [r8 + r11]
xor dl, byte [rsi + rax]
mov byte [rcx + r11 - 0x1a], dl
inc r11
mov rax, r11
mov edx, r11d
inc rsi
inc r9
cmp r11d, 0x34
mov rdx, rsi
jne 0x14000b290
mov dword [0x1400f3de4], 1
mov eax, 0x25d3d884
pop rsi
ret

Function at 0x14000b2e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1400f3ef0], 1
je 0x14000b343
mov r8, rdx
movabs r10, 0x97b425ed097b425f
xor r9d, r9d
mov eax, reloc.WLDAP32.dll_Ordinal_27
nop
mov r11, rax
mov rsi, rdx
mov rax, r9
mul r10
shr rdx, 4
imul rax, rdx, 0xffffffffffffffe5
movzx edx, byte [r8 + r11]
xor dl, byte [rsi + rax]
mov byte [rcx + r11 - 0x1b], dl
inc r11
mov rax, r11
mov edx, r11d
inc rsi
inc r9
cmp r11d, 0x23
mov rdx, rsi
jne 0x14000b300
mov dword [0x1400f3ef0], 1
mov eax, 0x2ebb88d0
pop rsi
ret
Function at 0x14000d590
Capabilities:
Set registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x1400c6080]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdi, [0x1400f3dc8]
lea rdx, [0x1400a2ade]
mov rcx, rdi
call fcn.14000b270
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14000d658
lea rsi, [0x1400f3e08]
lea rdx, [0x1400a2bc3]
mov rcx, rsi
call fcn.1400180b0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov rdx, rsi
call fcn.14000b450
mov rsi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rsi
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
mov rcx, rsi
mov edx, eax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::put_char____ptr64]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
jmp 0x14000d6ae
mov ebx, dword [rsi + 0x10]
inc ebx
cmp qword [rsi + 0x18], 0x10
jb 0x14000d667
mov rsi, qword [rsi]
mov r14, rsi
mov rsi, qword [rsp + 0x58]
lea rdi, [0x1400f3de8]
lea rdx, [0x1400a2b23]
mov rcx, rdi
call fcn.14000ef10
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14004fa00
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14000d860
Capabilities:
Set registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x1400c6080]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdi, [0x1400f3dc8]
lea rdx, [0x1400a2ade]
mov rcx, rdi
call fcn.14000b270
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14000d928
lea rsi, [0x1400f3ef4]
lea rdx, [0x1400a2dcc]
mov rcx, rsi
call fcn.140018060
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov rdx, rsi
call fcn.14000b450
mov rsi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rsi
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
mov rcx, rsi
mov edx, eax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::put_char____ptr64]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
jmp 0x14000d97e
mov ebx, dword [rsi + 0x10]
inc ebx
cmp qword [rsi + 0x18], 0x10
jb 0x14000d937
mov rsi, qword [rsi]
mov r14, rsi
mov rsi, qword [rsp + 0x58]
lea rdi, [0x1400f3ee8]
lea rdx, [0x1400a2d92]
mov rcx, rdi
call fcn.14000b2e0
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14004fa00
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14000ebf0
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x178
mov dword [rsp + 0x3c], 0x100
lea rsi, [0x1400f3dc8]
lea rdx, [0x1400a2ade]
mov rcx, rsi
call fcn.14000b270
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
mov rdx, rsi
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, 0
test eax, eax
jne 0x14000edf9
mov rsi, qword [rsp + 0x68]
lea rdi, [0x1400f3de8]
lea rdx, [0x1400a2b23]
mov rcx, rdi
call fcn.14000ef10
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0
test esi, esi
jne 0x14000edf9
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
test rax, rax
js 0x14000ee08
mov rsi, rax
mov rdi, rax
cmp rax, 0xf
ja 0x14000ecfb
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + rsi]
add rax, 0x40
jmp 0x14000ed6f
mov rax, rsi
or rax, 0xf
cmp rax, 0x17
mov r14d, reloc.WLDAP32.dll_Ordinal_22
cmovae r14, rax
cmp rax, 0xfff
jb 0x14000ed3e
lea rcx, [r14 + 0x28]
call fcn.14004f794
test rax, rax
je 0x14000ee0d
mov rcx, rax
mov rbx, rax
add rbx, 0x27
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14000ed4a
lea rcx, [r14 + 1]
call fcn.14004f794
mov rbx, rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r14
lea rdx, [rsp + 0x70]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add rsi, rbx
mov rax, rsi
mov byte [rax], 0
mov rsi, qword [rsp + 0x58]
cmp qword [rsp + 0x50], 7
mov bl, 1
jne 0x14000edbf
cmp rsi, 0x10
jb 0x14000ed8e
mov rax, qword [rsp + 0x40]
jmp 0x14000ed93
lea rax, [rsp + 0x40]
mov rdi, rax
lea rcx, [0x1400f3df4]
lea rdx, [0x1400a2b5b]
call fcn.14000ef90
mov eax, dword [rdi]
xor eax, dword [0x1400f3df4]
mov ecx, dword [rdi + 3]
xor ecx, dword [0x1400f3df7]
or ecx, eax
setne bl
cmp rsi, 0x10
jb 0x14000edf7
mov rcx, qword [rsp + 0x40]
lea rdx, [rsi + 1]
cmp rdx, 0x1000
jb 0x14000edf2
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x14000ee0d
add rsi, 0x28
mov rdx, rsi
mov rcx, rax
call fcn.14004f7d8
mov ecx, ebx
mov eax, ecx
add rsp, 0x178
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140001e60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000ee90
Capabilities:
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1400f3e44], 1
je 0x14000eefa
mov r8, rdx
movabs r10, 0xe38e38e38e38e38f
xor r9d, r9d
mov eax, reloc.WS2_32.dll_select
nop
mov r11, rax
mov rsi, rdx
mov rax, r9
mul r10
shr rdx, 3
and rdx, 0xfffffffffffffffe
lea rax, [rdx + rdx*8]
neg rax
movzx edx, byte [r8 + r11]
xor dl, byte [rsi + rax]
mov byte [rcx + r11 - 0x12], dl
inc r11
mov rax, r11
mov edx, r11d
inc rsi
inc r9
cmp r11d, 0x1e
mov rdx, rsi
jne 0x14000eeb0
mov dword [0x1400f3e44], 1
mov eax, 0x2d44f5e6
pop rsi
ret

Function at 0x14000ef10
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1400f3df0], 1
je 0x14000ef89
mov r8, rdx
movabs r10, 0x8618618618618619
xor r9d, r9d
mov r11, rdx
mov esi, reloc.WS2_32.dll_setsockopt
nop word cs:[rax + rax]
nop dword [rax]
mov rax, r9
mul r10
mov rax, r9
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 4
imul rdx, r9, 0xffffffffffffffeb
movzx r9d, byte [r8 + rsi]
xor r9b, byte [r11 + rdx]
mov byte [rcx + rsi - 0x15], r9b
mov rdx, rsi
inc rdx
mov rsi, rdx
inc r11
inc rax
cmp edx, 0x1b
mov r9, rax
jne 0x14000ef40
mov dword [0x1400f3df0], 1
mov eax, 0x7659eb3b
pop rsi
ret

Function at 0x14000ef90
Capabilities:
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1400f3dfc], 1
je 0x14000effa
mov r8, rdx
movabs r10, 0xcccccccccccccccd
xor r9d, r9d
mov eax, reloc.WS2_32.dll_sendto
nop
mov r11, rax
mov rsi, rdx
mov rax, r9
mul r10
shr rdx, 2
and rdx, 0xfffffffffffffffc
lea rax, [rdx + rdx*4]
neg rax
movzx edx, byte [r8 + r11]
xor dl, byte [rsi + rax]
mov byte [rcx + r11 - 0x14], dl
inc r11
mov rax, r11
mov edx, r11d
inc rsi
inc r9
cmp r11d, 0x1c
mov rdx, rsi
jne 0x14000efb0
mov dword [0x1400f3dfc], 1
mov eax, 0x837879ca
pop rsi
ret

Function at 0x14000f010
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1400f3dac], 1
je 0x14000f089
mov r8, rdx
movabs r10, 0x642c8590b21642c9
xor r9d, r9d
mov r11, rdx
mov esi, reloc.WS2_32.dll_socket
nop word cs:[rax + rax]
nop dword [rax]
mov rax, r9
mul r10
mov rax, r9
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 4
imul rdx, r9, 0xffffffffffffffe9
movzx r9d, byte [r8 + rsi]
xor r9b, byte [r11 + rdx]
mov byte [rcx + rsi - 0x17], r9b
mov rdx, rsi
inc rdx
mov rsi, rdx
inc r11
inc rax
cmp edx, 0x23
mov r9, rax
jne 0x14000f040
mov dword [0x1400f3dac], 1
mov eax, 0xa55fe76d
pop rsi
ret

Function at 0x14000f090
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x1400f3dc4], 1
je 0x14000f0ed
mov r8, rdx
movabs r10, 0xd79435e50d79435f
xor r9d, r9d
nop dword [rax]
mov rax, r9
mul r10
shr rdx, 4
mov eax, edx
imul eax, edx, 0xffffffed
movzx edx, byte [r8 + r9 + 0x13]
mov r11d, r9d
add eax, r9d
cdqe
xor dl, byte [r8 + rax]
mov byte [rcx + r9], dl
mov rax, r9
inc rax
mov r9, rax
cmp eax, 0x14
jne 0x14000f0b0
mov dword [0x1400f3dc4], 1
mov eax, 0x7baec2fd
ret
Function at 0x140010490
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x1400c6080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
je 0x140010540
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x140010540
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x140010538
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [rax + 0x40]
cmp eax, 3
je 0x14001053c
cmp eax, 1
je 0x140010508
test eax, eax
jne 0x140010538
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x14001052f
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140010538
cmp byte [rsi + 0x71], 0
sete al
jmp 0x140010542
xor eax, eax
jmp 0x140010542
mov byte [rsi + 0x71], 0
mov al, 1
mov ebx, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004fa00
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400105d0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
mov rax, qword [0x1400c6080]
xor rax, rsp
mov qword [rsp + 0x88], rax
cmp edx, 0xffffffff
je 0x14001070c
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14001062e
mov rax, qword [rcx + 0x58]
mov r8d, dword [rax]
test r8d, r8d
jle 0x14001062e
mov r9d, edx
dec r8d
mov dword [rax], r8d
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
lea r8, [rcx + 1]
mov qword [rax], r8
mov byte [rcx], dl
mov ecx, edx
jmp 0x140010757
cmp qword [rcx + 0x80], 0
je 0x140010710
mov rax, qword [rcx + 0x18]
lea r8, [rcx + 0x70]
cmp qword [rax], r8
jne 0x14001066e
mov r8d, dword [rcx + 0x90]
mov r9, qword [rcx + 0x88]
mov qword [rax], r9
mov rax, qword [rcx + 0x38]
mov qword [rax], r9
mov eax, r9d
sub r8d, r9d
mov rax, qword [rcx + 0x50]
mov dword [rax], r8d
mov rax, qword [rcx + 0x68]
test rax, rax
je 0x140010717
mov ebp, edx
mov byte [rsp + 0x5f], dl
lea r8, [rsp + 0x80]
lea r9, [rsp + 0x60]
mov r14, rcx
lea rdx, [rcx + 0x74]
mov r10, qword [rax]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r8
lea rdi, [rsp + 0x60]
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea rsi, [rsp + 0x5f]
mov rcx, rax
mov r8, rsi
call qword [r10 + gethostname]
cmp eax, 2
jae 0x140010733
mov rbx, qword [rsp + 0x48]
sub rbx, rdi
je 0x1400106fb
mov r9, qword [r14 + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, 0xffffffff
cmp rbx, rax
jne 0x140010757
mov byte [r14 + 0x71], 1
cmp qword [rsp + 0x50], rsi
mov eax, 0xffffffff
jmp 0x140010752
xor ecx, ecx
jmp 0x140010757
mov ecx, 0xffffffff
jmp 0x140010757
mov rax, qword [rcx + 0x80]
movsx ecx, dl
mov esi, edx
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
mov ecx, esi
jmp 0x140010754
mov ecx, 0xffffffff
cmp eax, 3
jne 0x140010757
mov rdx, qword [r14 + 0x80]
movsx ecx, byte [rsp + 0x5f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
mov ecx, ebp
cmove ecx, eax
mov esi, ecx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14004fa00
mov eax, esi
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140010be0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x140010c15
mov rsi, r8
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x140010c1c
mov rcx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
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]
xor eax, eax
jmp 0x140010d37
mov rax, qword [rdi + 0x38]
mov rax, qword [rax]
test rax, rax
je 0x140010c79
mov rcx, qword [rdi + 0x50]
movsxd rbx, dword [rcx]
test rbx, rbx
je 0x140010c79
cmp rbx, rsi
cmovae rbx, rsi
mov rcx, rdx
mov r14, rdx
mov rdx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, r14
add rax, rbx
mov ecx, ebx
mov rdx, qword [rdi + 0x50]
sub dword [rdx], ebx
mov rdx, qword [rdi + 0x38]
movsxd rcx, ebx
add qword [rdx], rcx
mov rcx, rsi
sub rcx, rbx
cmp qword [rdi + 0x80], 0
jne 0x140010c8d
jmp 0x140010d31
mov rcx, rsi
mov rax, rdx
cmp qword [rdi + 0x80], 0
je 0x140010d31
mov rdx, qword [rdi + 0x18]
lea r8, [rdi + 0x70]
cmp qword [rdx], r8
jne 0x140010cbf
mov r8d, dword [rdi + 0x90]
mov r9, qword [rdi + 0x88]
mov qword [rdx], r9
mov rdx, qword [rdi + 0x38]
mov qword [rdx], r9
mov edx, r9d
sub r8d, r9d
mov rdx, qword [rdi + 0x50]
mov dword [rdx], r8d
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r14, rax
nop dword [rax]
mov rbx, rcx
cmp rcx, 0x1000
jb 0x140010d0a
mov r9, qword [rdi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call r15
add r14, rax
sub rbx, rax
mov rcx, rbx
cmp rax, 0xfff
je 0x140010cd0
sub rsi, rbx
jmp 0x140010d34
test rbx, rbx
je 0x140010d2f
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rcx, rbx
jmp 0x140010d31
xor ecx, ecx
sub rsi, rcx
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140010d50
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx + 0x68], 0
je 0x140010d70
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
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 rax, qword [rax]
test rax, rax
je 0x140010dd7
test r8, r8
jle 0x140010dd7
mov r9, qword [rcx + 0x58]
mov r9d, dword [r9]
test r9d, r9d
jle 0x140010dd7
mov esi, r9d
cmp rsi, r8
cmovae rsi, r8
mov rbx, rcx
mov rcx, rax
mov rdi, rdx
mov r14, r8
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
mov r8, r14
add rdi, rsi
mov edx, esi
mov r9, qword [rbx + 0x58]
sub dword [r9], esi
mov rdx, qword [rbx + 0x40]
add qword [rdx], rsi
mov rdx, r14
sub rdx, rsi
mov rax, rdi
mov rsi, rdx
test rsi, rsi
jg 0x140010de2
jmp 0x140010e08
mov rax, rdx
mov rsi, r8
test rsi, rsi
jle 0x140010e08
mov r9, qword [rcx + 0x80]
test r9, r9
je 0x140010e08
mov edx, 1
mov rcx, rax
mov rdi, r8
mov r8, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r8, rdi
sub rsi, rax
mov rax, r8
sub rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400113f0
Capabilities:
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1400f4780], 1
je 0x140011460
mov r8, rdx
movabs r9, 0x4924924924924925
xor eax, eax
mov r10, rdx
mov r11d, Ordinal_32
nop word cs:[rax + rax]
nop dword [rax]
mov rsi, rax
shr rax, 2
mul r9
shr rdx, 1
imul rax, rdx, 0xffffffffffffffe4
movzx edx, byte [r8 + r11]
xor dl, byte [r10 + rax]
mov byte [rcx + r11 - 0x1c], dl
mov rax, r11
inc rax
mov r11, rax
inc r10
inc rsi
cmp eax, 0x25
mov rax, rsi
jne 0x140011420
mov dword [0x1400f4780], 1
mov eax, 0xca8a0147
pop rsi
ret

Function at 0x140011550
Capabilities:
Encode data using xor

Disassembly:
push rsi
cmp dword [0x1400f471c], 1
je 0x1400115cf
mov r8, rdx
movabs r10, 0x842108421084211
xor r9d, r9d
mov r11, rdx
mov esi, Ordinal_32
nop word cs:[rax + rax]
nop dword [rax]
mov rax, r9
mul r10
mov rax, r9
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 4
mov rdx, r9
shl r9, 5
sub rdx, r9
movzx r9d, byte [r8 + rsi]
xor r9b, byte [r11 + rdx]
mov byte [rcx + rsi - 0x1f], r9b
mov rdx, rsi
inc rdx
mov rsi, rdx
inc r11
inc rax
cmp edx, 0x31
mov r9, rax
jne 0x140011580
mov dword [0x1400f471c], 1
mov eax, 0x8d540cbc
pop rsi
ret

Function at 0x140011830
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
cmp dword [0x1400f4704], 1
je 0x140011890
mov r8, rdx
movabs r10, 0xe38e38e38e38e38f
xor r9d, r9d
nop dword [rax]
mov rax, r9
mul r10
shr rdx, 4
mov eax, edx
add eax, edx
lea eax, [rax + rax*8]
movzx edx, byte [r8 + r9 + 0x12]
mov r11d, r9d
sub r11d, eax
movsxd rax, r11d
xor dl, byte [r8 + rax]
mov byte [rcx + r9], dl
mov rax, r9
inc rax
mov r9, rax
cmp eax, 0x15
jne 0x140011850
mov dword [0x1400f4704], 1
mov eax, 0xb7003675
ret