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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbp, rdx
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp byte [rcx + 0x15], 0
jne 0x14007f092
xor eax, eax
jmp 0x14007f205
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
mov dword [rsp + 0x98], 0
call fcn.140052730
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov ecx, 0x20
call fcn.140084afc
mov rdi, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0x19
mov qword [rsp + 0x50], 0x1f
movups xmm0, xmmword [str.NtQueryInformationProcess]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14009e2d8]
movsd qword [rax + 0x10], xmm0
movzx ecx, byte [0x14009e2e0]
mov byte [rax + 0x18], cl
mov byte [rax + 0x19], 0
mov dword [rsp + 0x30], 1
call fcn.14006cb10
lea r14, [rsi + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
movabs rdx, 0x100000001b3
movabs r9, 0xcbf29ce484222325
nop dword [rax + rax]
movzx eax, byte [rdi + rcx]
xor r9, rax
imul r9, rdx
inc rcx
cmp rcx, 0x19
jb 0x14007f140
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.140053020
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14007f1bb
cmp rdx, qword [rsi + 8]
je 0x14007f1bb
mov rsi, qword [rdx + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rsi, rsi
je 0x14007f1c4
add rbx, 8
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, qword [rbx]
call rsi
mov rcx, rbx
test eax, eax
js 0x14007f1c8
test rbp, rbp
je 0x14007f1c8
mov sil, 1
jmp 0x14007f1ce
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbx + 8]
xor sil, sil
mov rbx, rcx
mov edx, 0x20
mov rcx, rdi
call fcn.140084d80
test sil, sil
je 0x14007f200
mov qword [rsp + 0x20], 0
mov r9d, 0x250
mov r8, rbp
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140085040
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14007f500
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rsi, r8
mov r15, rdx
mov rbp, rcx
mov dword [rsp + 0x30], 0
xor eax, eax
cmp byte [rcx + 0x15], al
je 0x14007f696
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [r11 - 0x50], rax
mov dword [r11 - 0x48], eax
mov dword [r11 - 0x40], eax
call fcn.140052730
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov ecx, 0x20
call fcn.140084afc
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0x18
mov qword [rsp + 0x50], 0x1f
movups xmm0, xmmword [str.NtQueryInformationThread]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14009e318]
movsd qword [rax + 0x10], xmm0
mov byte [rax + 0x18], 0
mov dword [rsp + 0x30], 1
call fcn.14006cb10
lea r14, [rdi + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
movabs rdx, 0x100000001b3
movabs r9, 0xcbf29ce484222325
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
xor r9, rax
imul r9, rdx
inc rcx
cmp rcx, 0x18
jb 0x14007f5e0
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.140053020
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14007f654
cmp rcx, qword [rdi + 8]
je 0x14007f654
mov rdi, qword [rcx + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rdi, rdi
je 0x14007f65d
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0x1c
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, r15
call rdi
test eax, eax
js 0x14007f65d
test rsi, rsi
je 0x14007f65d
mov dil, 1
jmp 0x14007f660
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor dil, dil
mov edx, 0x20
mov rcx, rbx
call fcn.140084d80
test dil, dil
je 0x14007f692
mov edx, dword [rsp + 0x6c]
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, rsi
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140085040
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007f960
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, r8
mov r15, rdx
mov r14, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
call fcn.140052730
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov ecx, 0x20
call fcn.140084afc
mov rsi, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0x14
mov qword [rsp + 0x48], 0x1f
movups xmm0, xmmword [str.NtQueryVirtualMemory]
movups xmmword [rax], xmm0
mov ecx, dword [0x14009e350]
mov dword [rax + 0x10], ecx
mov byte [rax + 0x14], 0
call fcn.14006cb10
lea rbp, [rdi + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
movabs rdx, 0x100000001b3
movabs r9, 0xcbf29ce484222325
nop word [rax + rax]
movzx eax, byte [rcx + rsi]
xor r9, rax
imul r9, rdx
inc rcx
cmp rcx, 0x14
jb 0x14007fa20
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140053020
mov r8, qword [rax + 8]
test r8, r8
je 0x14007fa8e
cmp r8, qword [rdi + 8]
je 0x14007fa8e
mov rdi, qword [r8 + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rdi, rdi
je 0x14007fa97
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r14 + 8]
call rdi
mov edi, eax
jmp 0x14007fa9c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, 0xc0000138
mov edx, 0x20
mov rcx, rsi
call fcn.140084d80
test edi, edi
je 0x14007fab1
mov eax, edi
jmp 0x14007faf2
mov rax, qword [rsp + 0x68]
mov qword [rbx + 8], rax
mov eax, dword [rsp + 0x70]
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x60]
mov qword [rbx], rax
mov eax, dword [rsp + 0x84]
mov dword [rbx + 0x24], eax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x18], rax
mov eax, dword [rsp + 0x80]
mov dword [rbx + 0x20], eax
mov eax, dword [rsp + 0x88]
mov dword [rbx + 0x28], eax
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140085040
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007fb30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbp, rdx
mov r14, rcx
mov dword [rsp + 0x30], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [r11 - 0x40], xmm0
mov dword [r11 - 0x30], 0
call fcn.140052730
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov ecx, 0x20
call fcn.140084afc
mov rdi, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0x19
mov qword [rsp + 0x50], 0x1f
movups xmm0, xmmword [str.NtQueryInformationProcess]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14009e2d8]
movsd qword [rax + 0x10], xmm0
movzx ecx, byte [0x14009e2e0]
mov byte [rax + 0x18], cl
mov byte [rax + 0x19], 0
mov dword [rsp + 0x30], 1
call fcn.14006cb10
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
movabs rdx, 0x100000001b3
movabs r9, 0xcbf29ce484222325
nop dword [rax]
movzx eax, byte [rdi + rcx]
xor r9, rax
imul r9, rdx
inc rcx
cmp rcx, 0x19
jb 0x14007fc10
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.140053020
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14007fc8b
cmp rdx, qword [rsi + 8]
je 0x14007fc8b
mov rsi, qword [rdx + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rsi, rsi
je 0x14007fc94
lea rbx, [r14 + 8]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, qword [rbx]
call rsi
mov rcx, rbx
test eax, eax
js 0x14007fc98
test rbp, rbp
je 0x14007fc98
mov sil, 1
jmp 0x14007fc9e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [r14 + 8]
xor sil, sil
mov rbx, rcx
mov edx, 0x20
mov rcx, rdi
call fcn.140084d80
test sil, sil
je 0x14007fcd0
mov qword [rsp + 0x20], 0
mov r9d, 0x250
mov r8, rbp
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140085040
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14007fd20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbp, r8
mov r15, rdx
mov r14, rcx
mov dword [rsp + 0x30], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov qword [r11 - 0x50], rax
mov dword [r11 - 0x48], eax
mov dword [r11 - 0x40], eax
call fcn.140052730
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov ecx, 0x20
call fcn.140084afc
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0x18
mov qword [rsp + 0x50], 0x1f
movups xmm0, xmmword [str.NtQueryInformationThread]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14009e318]
movsd qword [rax + 0x10], xmm0
mov byte [rax + 0x18], 0
mov dword [rsp + 0x30], 1
call fcn.14006cb10
lea rsi, [rdi + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
movabs rdx, 0x100000001b3
movabs r9, 0xcbf29ce484222325
nop dword [rax]
movzx eax, byte [rbx + rcx]
xor r9, rax
imul r9, rdx
inc rcx
cmp rcx, 0x18
jb 0x14007fdf0
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.140053020
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14007fe64
cmp rcx, qword [rdi + 8]
je 0x14007fe64
mov rdi, qword [rcx + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rdi, rdi
je 0x14007fe6d
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0x1c
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, r15
call rdi
test eax, eax
js 0x14007fe6d
test rbp, rbp
je 0x14007fe6d
mov dil, 1
jmp 0x14007fe70
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor dil, dil
mov edx, 0x20
mov rcx, rbx
call fcn.140084d80
test dil, dil
je 0x14007fea2
mov edx, dword [rsp + 0x6c]
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, rbp
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140085040
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x14007fed0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140085040
add rsp, 0x68
ret
Function at 0x1400838c0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x1400838f5
lea rcx, [0x14009d950]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1400515c0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140083a64
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1400839dc
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140083a53
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x140083a19
mov r10, qword [rdx]
cmp r10, rax
je 0x140083a13
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140083a53
cmp r9, rdx
je 0x140083a2f
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x140083a75
cmp r9, rdx
jne 0x140083a20
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140083960
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140083a53
Function at 0x140085978
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1e0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x100011150]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rbp, r8
mov r12, rdx
xor r13d, r13d
cmp r8, r13
jne 0x100003abc
mov eax, 0x80004003
jmp 0x100003b98
mov qword [r8], r13
mov esi, 0x8007000e
mov ecx, 0x50
call fcn.10000b844
mov rdi, rax
mov qword [rsp + 0x20], rax
lea r14, [0x100001b30]
lea r15, [0x100001b58]
cmp rax, r13
je 0x100003b2e
mov dword [rax + 0x10], r13d
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [rax + 0x18]
call sub.msvcrt.dll_memset
mov byte [rdi + 0x40], r13b
mov byte [0x100011cc5], r13b
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.100009550
nop
mov qword [rdi], r14
mov qword [rdi + 8], r15
lock add dword [0x100011bb8], 1
jmp 0x100003b31
mov rdi, r13
cmp rdi, r13
je 0x100003b96
lea rcx, [rdi + 0x18]
call fcn.100004418
mov esi, eax
cmp eax, r13d
jl 0x100003b4a
mov byte [rdi + 0x40], 1
cmp eax, r13d
cmovge esi, r13d
cmp esi, r13d
jne 0x100003b6b
mov rax, qword [rdi]
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call qword [rax]
mov esi, eax
cmp eax, r13d
je 0x100003b96
mov qword [rsp + 0x20], rdi
mov qword [rdi], r14
mov qword [rdi + 8], r15
mov dword [rdi + 0x10], 1
lock add dword [0x100011bb8], 0xffffffff
mov rcx, rdi
call fcn.100008de0
mov rcx, rdi
call sub.msvcrt.dll_free
mov eax, esi
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.10000be20
mov rbx, qword [rsp + 0x220]
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100006c50
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x100011150]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rcx
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1000018d0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100006d5b
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x50], rbx
xor edi, edi
mov dword [rsp + 0x40], 0x100
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc edi
cmp eax, 0x103
je 0x100006d49
test eax, eax
jne 0x100006d49
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.100006a9c
test al, al
jne 0x100006d30
mov rbx, qword [rsp + 0x50]
jmp 0x100006cd4
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1000066d8
mov rbx, qword [rsp + 0x50]
jmp 0x100006cd4
test rbx, rbx
je 0x100006d57
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100006d5b
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.10000be20
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x100007324
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
mov rcx, qword [rcx]
mov rax, r8
mov qword [r11 - 0x20], r9
mov rdi, r9
mov rbx, rdx
mov qword [r11 - 0x28], rdx
lea r9, [r11 - 0x18]
xor esi, esi
xor r8d, r8d
mov rdx, rax
mov dword [rsp + 0x30], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x30]
mov r11d, eax
cmp ecx, esi
jbe 0x10000739a
cmp ecx, 2
jbe 0x1000073af
cmp ecx, 7
jne 0x10000739a
test byte [rdi], 1
jne 0x10000739a
mov eax, dword [rdi]
and eax, 0xfffffffe
cmp eax, 4
jb 0x10000739a
cmp rbx, rsi
je 0x1000073c5
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x10000739a
cmp word [rbx + rax*2 - 4], si
je 0x1000073c5
mov eax, 0xd
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
test byte [rdi], 1
jne 0x10000739a
cmp rbx, rsi
je 0x1000073c5
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x10000739a
mov eax, r11d
jmp 0x10000739f
Function at 0x100008b48
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x100011150]
xor rax, rsp
mov qword [rsp + 0x38], rax
or r13, 0xffffffffffffffff
mov r14, rdx
xor r15d, r15d
lea ecx, [r13 + 3]
lea r8d, [r13 + 7]
mov rdi, r13
mov word [rsp + 0x28], cx
lea edx, [rcx - 1]
mov dword [r11 - 0x3c], r15d
mov word [r11 - 0x3e], r15w
call qword [sym.imp.WS2_32.dll_socket]
lea ebp, [r13 + 0x11]
mov rsi, rax
cmp rax, r13
je 0x100008bd1
lea rdx, [rsp + 0x28]
mov r8d, ebp
mov rcx, rax
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
cmp eax, r13d
je 0x100008bc8
mov rdi, rsi
jmp 0x100008bd9
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, r15d
jne 0x100008c28
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rdi
mov dword [rsp + 0x20], ebp
call qword [sym.imp.WS2_32.dll_getsockname]
movzx r12d, r15w
cmp eax, r13d
mov ebx, eax
cmovne r12w, word [rsp + 0x2a]
cmp eax, r15d
jne 0x100008c1f
mov rcx, rbp
call fcn.10000b844
mov rsi, rax
cmp rax, r15
jne 0x100008c61
mov ebx, 0xe
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
movzx eax, bx
or eax, 0x80070000
cmp ebx, r15d
cmovle eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.10000be20
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rax], rdi
mov word [rax + 8], r12w
movsxd rdi, dword [0x100011d38]
mov ecx, dword [0x100011d3c]
lea ebp, [rdi + 1]
cmp ebp, r15d
jle 0x100008cee
cmp edi, ecx
jne 0x100008cd5
cmp edi, 0x3fffffff
jg 0x100008cee
movabs rdx, 0xfffffffffffffff
cmp rdi, rdx
ja 0x100008cee
cmp ecx, r15d
mov rcx, qword [0x100011d30]
mov eax, 1
lea r13d, [rdi + rdi]
cmove r13d, eax
movsxd rdx, r13d
shl rdx, 3
call qword [sym.imp.msvcrt.dll_realloc]
mov r11, rax
cmp rax, r15
je 0x100008cee
mov dword [0x100011d3c], r13d
mov qword [0x100011d30], rax
jmp 0x100008cdc
mov r11, qword [0x100011d30]
lea rcx, [r11 + rdi*8]
mov dword [0x100011d38], ebp
cmp rcx, r15
je 0x100008cee
mov qword [rcx], rsi
mov word [r14], r12w
jmp 0x100008c28

Function at 0x1000095bc
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rsp + 0x38], 0
mov rsi, rcx
mov edi, 0xff
xor ebx, ebx
mov eax, 0x3ff
shr eax, 1
lea ebx, [rbx + rbx + 2]
jne 0x1000095df
shr ebx, 1
and dword [rcx], 0
lea rcx, [rsp + 0x38]
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
cmp al, 1
jne 0x100009619
mov eax, dword [rsp + 0x38]
and eax, ebx
mov dword [rsp + 0x38], eax
cmp eax, 0x3ff
jbe 0x100009617
add edi, 0xffffffff
je 0x100009619
jmp 0x1000095ec
mov dword [rsi], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x100009b78
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push r14
sub rsp, 0x30
xor esi, esi
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov rbx, rcx
lea r14d, [rsi + 1]
je 0x100009be3
mov rcx, qword [rcx + 0x10]
lea r9, [rax + 8]
lea r8d, [r14 + 0x7f]
mov edx, 0xffff
mov word [rax + 0xa], si
mov word [rax + 8], r14w
mov dword [rax - 0x18], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, esi
je 0x100009bca
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, esi
je 0x100009bde
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
or qword [rbx + 0x10], 0xffffffffffffffff
cmp qword [rbx], 0xffffffffffffffff
je 0x100009c36
mov rcx, qword [rbx]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x80
mov word [rsp + 0x42], si
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, esi
je 0x100009c1f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, esi
je 0x100009c32
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
or qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret