joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400aa120]
mov dword [rax], 1
mov rax, qword [0x1400aa130]
mov dword [rax], 1
mov rax, qword [0x1400aa140]
mov dword [rax], 1
mov rax, qword [0x1400aa0a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140002d80
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10078
push r12
call fcn.14008ae30
sub rsp, rax
xor eax, eax
mov r8d, 0x28
mov rdx, rcx
lea r12, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea r13, [rsp + 0x70]
mov rcx, r12
call fcn.140026f70
mov rdx, r13
mov r8d, 0x10000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140002de1
mov rcx, r13
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop r12
pop r13
ret

Function at 0x140002df0
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea r13, [rsp + 0x20]
mov r12, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, r13
call fcn.140026f70
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop r12
pop r13
ret
Function at 0x140002ec0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x70
mov rbx, rdx
mov r14, r8
mov r15, rcx
call fcn.140021250
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python39.dll_PyObject_GetAttrString]
mov rcx, rbx
mov r12, rax
call qword [sym.imp.python39.dll_PyUnicode_FromString]
mov r13, rax
test r14, r14
je 0x140002f7a
mov rdx, r14
mov rcx, rbx
call fcn.140002df0
mov rcx, r14
mov rdx, 0xffffffffffffffff
call sub.python39.dll_PyUnicode_FromWideChar
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python39.dll_PyObject_SetItem]
test eax, eax
jne 0x140002fbc
sub qword [r14], 1
jne 0x140002f41
mov rcx, r14
call fcn.140002e30
sub qword [r13], 1
jne 0x140002f50
mov rcx, r13
call fcn.140002e30
sub qword [r12], 1
jne 0x140002f6c
mov rcx, r12
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.140002e30
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x20]
mov r8d, 0x28
mov rdx, rbx
mov word [rsp + 0x20], 0
mov rcx, r14
call fcn.140026f70
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python39.dll_PyObject_DelItem]
test eax, eax
je 0x140002f41
mov rcx, r15
call fcn.140002e40
jmp 0x140002f41
mov ecx, 1
call qword [sym.imp.python39.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python39.dll_Py_Exit]
nop
nop word cs:[rax + rax]
nop
Function at 0x14007fdd0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400bafc9], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x14007fe58
lea rdx, [0x1400a85e2]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14007ff70
mov rsi, qword [0x1400bae88]
jmp 0x14007fe15
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x14007fe10
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, r12
mov rdx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.14006d9a0
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400bae88], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1400bae88], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1400bae88], rcx
test eax, eax
je 0x14007ff58
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop word [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x14007fec0
not eax
cmp r9d, eax
jne 0x14007fff7
mov byte [0x1400bafc9], 1
jmp 0x14007fded
cmp byte [0x1400bafc8], 0
jne 0x14007fe04
mov rbx, qword [sym.imp.python39.dll_PyDict_New]
call rbx
mov qword [0x1400bb908], rax
call rbx
mov qword [0x1400bb900], rax
call rbx
mov qword [0x1400bb8f8], rax
call rbx
mov qword [0x1400bb8f0], rax
call rbx
mov qword [0x1400bb8e8], rax
call rbx
mov qword [0x1400bb8e0], rax
call rbx
mov qword [0x1400bb8d8], rax
call rbx
mov byte [0x1400bafc8], 1
mov qword [0x1400bb8d0], rax
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xdc0
mov qword [0x1400bae80], rax
jmp 0x14007fe04
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140089b30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14009ae90
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14009ae90
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14008a7e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400bbd68]
test eax, eax
je 0x14008a87a
lea rax, [0x1400bbd40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400bbd70]
mov qword [rbp - 8], rax
jmp 0x14008a85e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14008a852
cmp qword [rbp - 0x10], 0
je 0x14008a852
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14008a818
lea rax, [0x1400bbd40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14008a87b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14008a980
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14008a9a8
mov eax, 0
jmp 0x14008a9f6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14008a9d1
mov eax, 0
jmp 0x14008a9f6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14008a9f1
mov eax, 0
jmp 0x14008a9f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14008a9fc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14008aa7a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14008aa71
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14008aa71
mov rax, qword [rbp - 8]
jmp 0x14008aa8f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14008aa44
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140009230
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1400d59c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov rcx, qword [0x1400d6f28]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x140009278
nop dword [rax]
cmp dword [rax + 0x20], 4
jge 0x14000926c
mov rax, qword [rax + 0x10]
jmp 0x140009272
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140009260
cmp byte [rcx + 0x19], 0
jne 0x140009354
cmp dword [rcx + 0x20], 4
jg 0x140009354
lea r8, [rcx + 0x28]
mov r10, qword [r8 + 0x10]
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x1400092a1
mov rdx, qword [r8]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x1400092d3
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r10
jb 0x1400092c0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140008c00
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14000930e
cmp rcx, qword [rbx + 8]
je 0x14000930e
cmp qword [rbx + 0x10], 1
jne 0x140009312
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140075840
add rsp, 0x80
pop rbx
ret
xor al, al
jmp 0x1400092f8
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140009380
nop
mov r8, rax
lea rdx, str.AcceptEncoding_does_not_accept_any_other_values_if_disabled_is_present._You_set_the_following_encodings:
lea rcx, [rsp + 0x58]
call fcn.140005200
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400091d0
lea rdx, [0x1400d3538]
lea rcx, [rsp + 0x20]
call fcn.1400777c4
nop
lea rcx, str.invalid_map_K__T__key
call fcn.140073538
int3
Function at 0x140018f40
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x14001900c
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.14001b720
mov edx, eax
cmp eax, 4
jne 0x140018fc0
cmp byte [0x1400d7164], r14b
jne 0x140018fca
mov r9d, 2
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
test edx, edx
jne 0x14001900c
mov eax, dword [rsp + 0x50]
jmp 0x140018fe9
imul eax, dword [0x1400d7160], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1400d7160], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x140019003
sub rsi, rdi
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x140018ff1
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x140018f70
mov rbx, qword [rsp + 0x40]
mov eax, edx
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140019030
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x1400190f8
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14001b720
cmp eax, 4
jne 0x1400190a1
cmp byte [0x1400d7164], bpl
jne 0x1400190ab
mov r9d, 2
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x1400190fd
mov ecx, dword [rsp + 0x50]
jmp 0x1400190c8
imul ecx, dword [0x1400d7160], 0x41c64e6d
add ecx, 0x3039
mov dword [0x1400d7160], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
cmp ecx, 0xfffffffc
jae 0x140019060
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x140019060
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14001b3c0
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1400d59c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rdx]
mov r14d, r8d
mov rbx, rcx
mov r9d, dword [rax + 8]
mov rax, qword [rdx + 0x18]
and r9d, 0xa
cmp r9b, 0xa
jne 0x14001b40b
mov rdi, qword [rax + 0xd8]
mov rsi, qword [rax + 0xe0]
mov ebp, dword [rax + 0xe8]
jmp 0x14001b419
mov rdi, qword [rax + 0x50]
mov rsi, qword [rax + 0x58]
mov ebp, dword [rax + 0x764]
mov qword [rsp + 0x80], r15
test rdi, rdi
je 0x14001b5eb
mov r9, qword [rcx]
test r9, r9
je 0x14001b45b
mov r8, r9
mov rax, rdi
sub r8, rdi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14001b453
inc rax
test ecx, ecx
jne 0x14001b440
test edx, edx
je 0x14001b5eb
mov rcx, qword [rbx + 8]
cmp rcx, r9
je 0x14001b46a
call qword [str.8__b_]
mov rcx, qword [rbx + 0x10]
call qword [str.8__b_]
mov rcx, qword [rbx]
call qword [str.8__b_]
xor r15d, r15d
mov rcx, rdi
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx], r15
mov dword [rbx + 0x18], r15d
call qword [str.01_t_]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
jne 0x14001b4de
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001b4b2
call qword [str.8__b_]
mov rcx, qword [rbx + 0x10]
call qword [str.8__b_]
mov rcx, qword [rbx]
call qword [str.8__b_]
mov eax, 0x1b
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx], r15
mov dword [rbx + 0x18], r15d
jmp 0x14001b5f4
test rsi, rsi
je 0x14001b522
mov r8, rsi
sub r8, rdi
nop dword [rax]
movzx edx, byte [rdi]
movzx eax, byte [rdi + r8]
sub edx, eax
jne 0x14001b503
inc rdi
test eax, eax
jne 0x14001b4f0
test edx, edx
je 0x14001b522
mov rcx, rsi
call qword [str.01_t_]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14001b526
cmp qword [rbx], r15
je 0x14001b4b2
xor ecx, ecx
jmp 0x14001b4ac
mov qword [rbx + 8], rcx
mov rdi, qword [rbx]
test rdi, rdi
je 0x14001b576
cmp byte [rdi], r15b
je 0x14001b576
lea r8, [rsp + 0x20]
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14001b556
mov dword [rbx + 0x18], 1
jmp 0x14001b5eb
lea r8, [rsp + 0x20]
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14001b576
mov dword [rbx + 0x18], 2
jmp 0x14001b5eb
mov rax, qword [rbx]
mov dword [rbx + 0x18], r15d
cmp byte [rax], r15b
je 0x14001b5eb
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rax + rdi], r15b
jne 0x14001b590
test rdi, rdi
je 0x14001b5a8
cmp byte [rax + rdi - 1], 0x2e
jne 0x14001b5a8
dec rdi
cmp rdi, 0xffff
jae 0x14001b5eb
lea rdx, [rdi + 1]
mov ecx, 1
call qword [case.0x14002acb5.3]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14001b5d5
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx]
jmp 0x14001b4aa
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, rax
call fcn.140016c50
mov rax, qword [rbx + 0x10]
mov byte [rdi + rax], r15b
mov dword [rbx + 0x1c], ebp
xor eax, eax
mov dword [rbx + 0x20], r14d
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140075840
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001dff0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14001e0d2
call fcn.14003f2c0
test al, al
jne 0x14001e0d2
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14001e022
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.1400407e0
test rax, rax
je 0x14001e067
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.1400407e0
mov rsi, rax
test rax, rax
je 0x14001e067
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x14001e09b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.140016c00
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14001e080
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140030400
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14003042a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x1400ac3b8]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400ac3c8]
mov rcx, rbx
mov r14, rax
call fcn.14008be78
test rax, rax
je 0x14003048b
mov rcx, rbx
test r14, r14
je 0x140030478
xor edx, edx
mov r8d, 8
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test r14, r14
je 0x1400304c2
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400304c2
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x14003058c
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x1400304f0
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [fcn.140083ac8]
mov rsi, rax
test rax, rax
je 0x14003057e
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14003057e
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140030523
mov dword [rsi + rax*2], 0x5c
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x140030535
add rdi, rdi
sub rdi, rbx
add rdi, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rbx + rdi], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140030550
mov rcx, rsi
test r14, r14
je 0x140030575
xor edx, edx
mov r8d, 8
call r14
jmp 0x14003057b
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [str.8__b_]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x140039330
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1400d7278]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140039398
mov r9d, 2
mov dword [rsp + 0x20], 3
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1400639e0
test al, al
je 0x14003938c
mov dword [0x1400d7278], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1400d7278], 1
jmp 0x14003939d
cmp eax, 2
je 0x1400393ef
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400393ce
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400393ef
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x140039f80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x150
mov rax, qword [0x1400d59c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, qword [rcx]
mov rsi, r9
mov rdi, rcx
mov rbp, r8
mov r14, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [r14 + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x14003a023
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140039fe7
mov dword [rsi], 0x51
jmp 0x14003a01c
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, ebx
call fcn.14003e290
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.140018910
mov rax, qword [rdi + 8]
mov dword [rax + 0xc8c], ebx
mov dword [rsi], gethostname
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu__fd_qd______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x30], edx
mov rdx, qword [r14 + 0x98]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov rdx, qword [rdi]
call fcn.140018a50
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140075840
add rsp, 0x150
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14003a070
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1400d59c0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, qword [rcx + 0x10]
mov rsi, rdx
mov r9, qword [rbx + 0x98]
cmp r9, 0xffffffffffffffff
je 0x14003a1be
mov rax, qword [rdx + 0x20]
mov rcx, qword [rax + 0x360]
test dword [rcx + 0x8c], 0x800
jne 0x14003a1be
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
mov rcx, r9
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14003a14e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14003e290
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140018910
mov eax, 2
jmp 0x14003a1c0
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x140]
lea r8, [rbx + 0x10e]
lea rcx, [rsp + 0x30]
call fcn.14002ed30
test al, al
jne 0x14003a1be
mov qword [rsp + 0x1e0], rdi
call fcn.140082220
mov ebx, dword [rax]
call fcn.140082220
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.14003e290
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140018910
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x14003a1c0
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140075840
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret