joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400edcdc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400c19d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400edd66
cmp byte [rbp - 0x21], r15b
je 0x1400edd61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400edd9c
call fcn.1400e1a58
test eax, eax
jne 0x1400edd88
cmp byte [rbp - 0x21], r15b
je 0x1400edd80
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400edd9c
cmp byte [rbp - 0x21], r15b
je 0x1400edd99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400c8718
test eax, eax
jne 0x1400ede3c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400c19d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400edddb
cmp byte [rbp - 0x21], r15b
je 0x1400ede10
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ede10
call fcn.1400e1a58
test eax, eax
jne 0x1400eddfc
cmp byte [rbp - 0x21], r15b
je 0x1400eddf5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ede10
cmp byte [rbp - 0x21], r15b
je 0x1400ede0d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400c8718
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ede3c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ede3f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ede4d
mov rcx, rdi
call fcn.1400df114
cmp byte [rbp + 0x3f], r15b
je 0x1400ede5c
mov rcx, qword [rbp + 0x27]
call fcn.1400df114
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400efad0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx + 0x60]
movzx r8d, byte [rcx + 0x5c]
test eax, eax
jle 0x1400efb0c
mov edx, dword [rcx + 0x288]
lea r11, [0x140140050]
mov r9d, eax
nop dword [rax]
mov eax, edx
shr rax, 0x18
xor rax, r8
shl edx, 8
xor edx, dword [r11 + rax*4]
mov dword [rcx + 0x288], edx
sub r9, 1
jne 0x1400efaf0
mov eax, dword [rcx + 0x5c]
mov byte [rax + rcx + 0x80], 1
movsxd r9, dword [rcx + 0x60]
mov edx, r9d
sub edx, 1
je 0x1400efbee
sub edx, 1
je 0x1400efbe0
cmp edx, 1
je 0x1400efba0
mov byte [r9 + rcx + 0x7c], 1
mov rax, qword [rcx + 0x40]
movsxd rdx, dword [rcx + 0x6c]
mov byte [rdx + rax], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
movzx r8d, byte [rcx + 0x60]
mov rax, qword [rcx + 0x40]
sub r8b, 4
mov byte [rdx + rax + 1], r8b
inc dword [rcx + 0x6c]
ret
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
inc dword [rcx + 0x6c]
ret
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r8b
jmp 0x1400efbbf
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r8b
inc dword [rcx + 0x6c]
ret
Function at 0x1400fa8f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400fa918
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400fa918
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002a4c
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400b9eb0]
mov dword [rax], 1
mov rax, qword [0x1400b9ec0]
mov dword [rax], 1
mov rax, qword [0x1400b9ed0]
mov dword [rax], 1
mov rax, qword [0x1400b9e30]
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 0x14001fcb0
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10078
push r12
call fcn.1400a4b00
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.140046450
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 0x14001fd11
mov rcx, r13
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop r12
pop r13
ret

Function at 0x14001fd20
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.140046450
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop r12
pop r13
ret
Function at 0x14001fdf0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
sub rsp, 0x78
mov r15, rcx
mov r14, rdx
call fcn.140041600
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python38.dll_PyObject_GetAttrString]
mov rcx, r15
mov r12, rax
call qword [sym.imp.python38.dll_PyUnicode_FromString]
mov r13, rax
test r14, r14
je 0x14001fea4
mov rdx, r14
mov rcx, r15
call fcn.14001fd20
mov rcx, r14
mov rdx, 0xffffffffffffffff
call sub.python38.dll_PyUnicode_FromWideChar
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python38.dll_PyObject_SetItem]
test eax, eax
jne 0x14001fee3
sub qword [r14], 1
jne 0x14001fe6d
mov rcx, r14
call fcn.14001fd60
sub qword [r13], 1
jne 0x14001fe7c
mov rcx, r13
call fcn.14001fd60
sub qword [r12], 1
jne 0x14001fe97
mov rcx, r12
add rsp, 0x78
pop r12
pop r13
pop r14
pop r15
jmp fcn.14001fd60
add rsp, 0x78
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x20]
mov r8d, 0x28
mov rdx, r15
mov word [rsp + 0x20], 0
mov rcx, r14
call fcn.140046450
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python38.dll_PyObject_DelItem]
test eax, eax
je 0x14001fe6d
call fcn.14001fd70
jmp 0x14001fe6d
mov ecx, 1
call qword [sym.imp.python38.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python38.dll_Py_Exit]
nop
nop word [rax + rax]
Function at 0x14009b920
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400cb3a9], 0
mov r12, rcx
mov rdi, rdx
je 0x14009b9a8
lea rdx, [0x1400b893a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14009bac0
mov rsi, qword [0x1400cb278]
jmp 0x14009b965
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 0x14009b960
movzx r8d, word [rdx + 4]
lea r9, [rdx + 6]
mov rcx, r12
mov rdx, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1400895c0
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 [0x1400cb278], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1400cb278], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1400cb278], rcx
test eax, eax
je 0x14009baa8
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 0x14009ba10
not eax
cmp r9d, eax
jne 0x14009bb59
mov byte [0x1400cb3a9], 1
jmp 0x14009b939
cmp byte [0x1400cb3a8], 0
jne 0x14009b950
mov rbx, qword [sym.imp.python38.dll_PyDict_New]
lea rsi, [0x1400caa68]
call rbx
mov qword [0x1400cbba8], rax
call rbx
mov qword [0x1400cbba0], rax
call rbx
mov qword [0x1400cbb98], rax
call rbx
mov qword [0x1400cbb90], rax
call rbx
mov qword [0x1400cbb88], rax
call rbx
mov qword [0x1400cbb80], rax
call rbx
mov qword [0x1400cbb78], rax
call rbx
mov rbp, qword [sym.imp.python38.dll_PyLong_FromLong]
mov rbx, 0xfffffffffffffffb
mov qword [0x1400cbb70], rax
nop dword [rax]
mov ecx, ebx
call rbp
mov qword [rsi + rbx*8], rax
add rbx, 1
cmp rbx, 0x101
jne 0x14009bb38
mov byte [0x1400cb3a8], 1
jmp 0x14009b950
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
Function at 0x1400a3800
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.1400ab410
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.1400ab410
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400a44b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400cc008]
test eax, eax
je 0x1400a454a
lea rax, [0x1400cbfe0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400cc010]
mov qword [rbp - 8], rax
jmp 0x1400a452e
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 0x1400a4522
cmp qword [rbp - 0x10], 0
je 0x1400a4522
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 0x1400a44e8
lea rax, [0x1400cbfe0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400a454b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400a4650
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 0x1400a4678
mov eax, 0
jmp 0x1400a46c6
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 0x1400a46a1
mov eax, 0
jmp 0x1400a46c6
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 0x1400a46c1
mov eax, 0
jmp 0x1400a46c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400a46cc
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 0x1400a474a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400a4741
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 0x1400a4741
mov rax, qword [rbp - 8]
jmp 0x1400a475f
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 0x1400a4714
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180009a40
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x1800ba740]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x8c], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0xd8]
call fcn.18000bdd0
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x8c]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop
cmp dword [rsp + 0x88], 0
jne 0x180009b10
lea rdx, [0x1800af748]
mov rcx, qword [rsp + 0xd0]
call fcn.180001b70
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xd0]
jmp 0x180009cae
mov eax, dword [rsp + 0x88]
mov ecx, eax
call fcn.180075b44
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x8c]
mov qword [rsp + 0x68], rax
mov eax, 2
mov rcx, qword [rsp + 0x68]
mul rcx
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.180003160
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0xd8]
call fcn.18000bdd0
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x8c]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x88]
mov r8, qword [rsp + 0x50]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x180009c1c
mov rcx, qword [rsp + 0x50]
call fcn.180075714
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.180003180
cmp qword [rsp + 0x58], 0
jne 0x180009bdd
mov qword [rsp + 0x78], 0
jmp 0x180009bf0
mov qword [rsp + 0x48], 0x8123
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
lea rdx, [0x1800af74c]
mov rcx, qword [rsp + 0xd0]
call fcn.180001b70
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xd0]
jmp 0x180009cae
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x98]
call fcn.180008b40
mov rcx, qword [rsp + 0x50]
call fcn.180075714
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.180003180
cmp qword [rsp + 0x60], 0
jne 0x180009c63
mov qword [rsp + 0x80], 0
jmp 0x180009c79
mov qword [rsp + 0x48], 0x8123
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0xd0]
call fcn.18000c0d0
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x98]
call fcn.18000c020
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.18006e460
add rsp, 0xc8
ret
Function at 0x18001be60
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x18001bf42
call fcn.180030120
test al, al
jne 0x18001bf42
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x18001be92
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.18003c4a0
test rax, rax
je 0x18001bed7
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.18003c4a0
mov rsi, rax
test rax, rax
je 0x18001bed7
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 0x18001bf0b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.18002d2c0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x18001bef0
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 0x18002aee0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x1800995d0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x18002af0a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800995f0]
mov rcx, rbx
mov r14, rax
call fcn.180077e90
test rax, rax
je 0x18002af6b
mov rcx, rbx
test r14, r14
je 0x18002af58
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_LoadLibraryA]
test r14, r14
je 0x18002afa2
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18002afa2
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_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x18002b06a
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x18002afd0
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.180075b44]
mov rsi, rax
test rax, rax
je 0x18002b05c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x18002b05c
mov rax, rdi
cmp byte [rsi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x18002b000
mov word [rax + rsi], 0x5c
inc rdi
cmp byte [rsi + rdi], bpl
jne 0x18002b011
mov rax, rsi
sub rax, rbx
add rdi, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rdi + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x18002b030
mov rcx, rsi
test r14, r14
je 0x18002b053
xor edx, edx
mov r8d, 8
call r14
jmp 0x18002b059
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rsi
call qword [fcn.180075714]
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 0x18002b0d0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1800ba740]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x18002b136
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x18002b119
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x18002b113
shr ax, 8
cmp al, 2
je 0x18002b136
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.18006e460
add rsp, 0x1e8
ret
call fcn.18005fc80
test eax, eax
jne 0x18002b349
mov qword [rsp + 0x200], rsi
lea rcx, [0x1800995d0]
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x18002b176
mov qword [0x1800bb658], rsi
jmp 0x18002b304
mov qword [rsp + 0x1f0], rbx
lea rdx, str.LoadLibraryExA
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x1800995f0]
call fcn.180077e90
test rax, rax
je 0x18002b1dc
mov rcx, rbx
test rbp, rbp
je 0x18002b1ce
xor edx, edx
mov r8d, 8
call rbp
mov rsi, rax
jmp 0x18002b2cc
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
jmp 0x18002b2cc
test rbp, rbp
je 0x18002b20b
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18002b20b
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x18002b2cc
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x18002b2c4
lea ecx, [rax + 1]
add rcx, 0xc
call qword [fcn.180075b44]
mov rdi, rax
test rax, rax
je 0x18002b2bb
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x18002b2bb
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop word [rax + rax]
cmp byte [rdi + rax + 1], sil
lea rax, [rax + 1]
jne 0x18002b260
mov word [rax + rdi], 0x5c
inc rcx
cmp byte [rdi + rcx], sil
jne 0x18002b271
mov rax, rdi
sub rax, rbx
add rcx, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x18002b290
mov rcx, rdi
test rbp, rbp
je 0x18002b2b2
xor edx, edx
mov r8d, 8
call rbp
jmp 0x18002b2b8
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, rdi
call qword [fcn.180075714]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1800bb658], rsi
test rsi, rsi
je 0x18002b304
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18002b304
mov qword [0x1800bb650], rax
mov r9d, 2
mov dword [rsp + 0x20], 3
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.18005f830
test al, al
lea rcx, [0x1800bd3a8]
setne byte [0x1800bd3a0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.18006e460
add rsp, 0x1e8
ret