joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180029180
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov dword [rsp + 0x40], r8d
mov r13d, r9d
mov r12d, edx
mov rdi, rcx
xor esi, esi
lea r15d, [rbx + 0x29]
test byte [0x1800b78f0], 8
mov r14d, dword [rsp + 0xb0]
jne 0x1800496a0
mov ebp, edi
cmp r12d, 2
jne 0x1800291e0
mov eax, r14d
neg eax
sbb ecx, ecx
and r15d, ecx
neg r13d
lea r9, [rsp + 0x40]
mov r13d, 4
mov edx, r15d
sbb r12d, r12d
mov dword [rsp + 0x20], r13d
and r12d, 6
mov rcx, rdi
add r12d, r13d
mov r8d, r12d
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1800496cc
test r14d, r14d
jne 0x180049704
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18002d5c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rsp + 0x30], r14d
lea rdx, [0x18009f218]
mov dword [rsp + 0x28], r13d
mov ecx, 0x1c
mov dword [rsp + 0x20], r8d
mov r9d, r12d
mov r8d, edi
call fcn.18008bf24
nop
jmp 0x1800291ce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov ebx, eax
test byte [0x1800b78f3], 0x40
je 0x18002921b
mov ecx, 0x1d
lea rdx, [0x18009f218]
mov r9d, eax
mov r8d, ebp
call fcn.180087020
nop
jmp 0x18002921b
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], r13d
mov r8d, r12d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x180049755
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov esi, eax
test byte [0x1800b78f3], 0x40
je 0x180049755
mov ecx, 0x1e
lea rdx, [0x18009f218]
mov r9d, eax
mov r8d, ebp
call fcn.180087020
test ebx, ebx
cmovne ebx, esi
jmp 0x180029224
Function at 0x180029edc
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebx, ebx
xor ebp, ebp
mov edi, r9d
mov r14d, r8d
mov esi, edx
mov r15, rcx
test r9d, r9d
je 0x180029fb0
test byte [0x1800b78f1], 4
jne 0x18004a018
cmp esi, 2
je 0x18004a032
cmp esi, 0x17
jne 0x18004a0b8
mov esi, 0x29
mov eax, edi
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov r8d, 0x1f
mov dword [rsp + 0x20], 4
mov edx, esi
mov rcx, r15
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x18004a048
test r14d, r14d
je 0x180029fb0
mov ecx, edi
call qword [sym.imp.WS2_32.dll_htonl]
nop dword [rax + rax]
xor edx, edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov rcx, r15
lea r8d, [rdx + 0x1f]
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x18004a080
test ebx, ebx
jne 0x180029fd1
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18002d5c0
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test ebp, ebp
jne 0x180029fb0
xor ebx, ebx
jmp 0x180029fb0
mov ecx, 0xa
lea rdx, [0x18009f218]
mov r8d, edi
call fcn.1800876bc
nop
jmp 0x180029f20
xor esi, esi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_htonl]
nop dword [rax + rax]
nop
jmp 0x180029f39
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov ebx, eax
test byte [0x1800b78f1], 4
je 0x180029f6a
mov ecx, 0xb
lea rdx, [0x18009f218]
mov r9d, eax
mov r8d, edi
call fcn.180087020
nop
jmp 0x180029f6a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov ebp, eax
test byte [0x1800b78f1], 4
je 0x180029fac
mov ecx, 0xc
lea rdx, [0x18009f218]
mov r9d, ebx
mov r8d, edi
call fcn.180087020
nop
jmp 0x180029fac
mov ebx, 0x57
jmp 0x180029fb0
Function at 0x18002b0b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rsp + 0x58], rax
and dword [rsp + 0x50], 0
mov rdi, rcx
and dword [rsp + 0x48], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x4c], 4
test byte [0x1800b78f3], 0x20
jne 0x180044586
call fcn.18002b664
mov ebx, eax
test eax, eax
js 0x1800445a0
lea rcx, [rdi + 0x10]
call fcn.18002b4c4
mov ebx, eax
test eax, eax
js 0x1800445ad
lea rsi, [rdi + 0x18]
test rsi, rsi
je 0x180044616
and qword [rsi], 0
mov ecx, 0x18
call fcn.18002d898
mov rbx, rax
test rax, rax
je 0x1800445d4
and qword [rax + 8], 0
and qword [rax + 0x10], 0
mov dword [rax], 1
test byte [0x1800b78f3], 0x20
jne 0x1800445ba
test rbx, rbx
je 0x1800445db
mov qword [rsi], rbx
mov rcx, rdi
call fcn.18002b22c
mov ebx, eax
test eax, eax
js 0x1800445e2
mov rcx, rdi
call fcn.18002add0
mov ebx, eax
test eax, eax
js 0x1800445ef
lea rax, [rsp + 0x4c]
mov r9d, 0x10
mov qword [rsp + 0x30], rax
lea r8, str.CallLegacyWCMPolicies
lea rax, [rsp + 0x48]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea rdx, str.SOFTWAREPoliciesMicrosoftWindowsCurrentVersionInternet_Settings
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x18002b1f6
cmp dword [rsp + 0x48], eax
jne 0x18002b1f6
test byte [0x1800b78f3], 0x20
jne 0x1800445fc
and dword [rdi + 0x20], 0
test byte [0x1800b78f3], 0x20
jne 0x180044628
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18002d5c0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0xe
lea rdx, [0x18009f2c0]
mov r8, rdi
call fcn.1800879b4
nop
jmp 0x18002b100
mov dword [rsp + 0x44], 0x77
jmp 0x18002b1f6
mov dword [rsp + 0x44], 0x79
jmp 0x18002b1f6
mov ecx, 0x48
lea rdx, [0x18009f2f0]
mov r8, rax
call fcn.1800879b4
nop
jmp 0x18002b166
xor ebx, ebx
jmp 0x18002b166
mov ebx, 0x8007000e
jmp 0x18004461b
mov dword [rsp + 0x44], 0x7d
jmp 0x18002b1f6
mov dword [rsp + 0x44], 0x7f
jmp 0x18002b1f6
mov ecx, 0xf
lea rdx, [0x18009f2c0]
xor r8d, r8d
call fcn.1800876bc
nop
jmp 0x18002b1f2
mov ebx, 0x80070057
mov dword [rsp + 0x44], 0x7b
jmp 0x18002b1f6
mov ecx, 0x10
lea rdx, [0x18009f2c0]
mov r8d, ebx
call fcn.1800876bc
nop
jmp 0x18002b203
Function at 0x18002b664
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1d8]
sub rsp, 0x2d0
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
movups xmm0, xmmword [0x1800a1da0]
xor esi, esi
xor edx, edx
movups xmm1, xmmword [0x1800a1db0]
mov r8d, 0x208
lea rcx, [rbp - 0x50]
movups xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x64], esi
movups xmm0, xmmword [0x1800a1dc0]
movups xmmword [rbp - 0x78], xmm1
movsd xmm1, qword [0x1800a1dd0]
movups xmmword [rbp - 0x68], xmm0
movsd qword [rbp - 0x58], xmm1
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
lea rdi, [0x18009dff0]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rdi
test byte [0x1800b78f3], 0x10
jne 0x180044874
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
dec eax
cmp eax, 0x102
ja 0x18004488b
cmp word [rbp - 0x50], si
je 0x1800448d8
lea rcx, [rsp + 0x68]
call fcn.180026e74
lea rdx, [rbp - 0x50]
lea r8, [rsp + 0x78]
lea rcx, [rsp + 0x68]
call fcn.18002b7c4
mov rdi, qword [rsp + 0x68]
mov ebx, eax
test ebx, ebx
js 0x1800448e2
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
nop dword [rax + rax]
test rax, rax
je 0x18002b77a
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop dword [rax + rax]
test byte [0x1800b78f3], 0x10
jne 0x1800448ef
lea rcx, [rsp + 0x68]
call fcn.180021be4
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.18002d5c0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 0x1c
lea rdx, [0x1800a8560]
call fcn.180087008
nop
jmp 0x18002b6f7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1800448a6
movzx ebx, ax
or ebx, 0x80070000
test byte [0x1800b78f3], 0x10
je 0x1800448c3
mov ecx, 0x1d
lea rdx, [0x1800a8560]
mov r8d, ebx
call fcn.1800876bc
test ebx, ebx
jns 0x18002b719
mov dword [rsp + 0x64], 0x251
jmp 0x18002b77a
mov ebx, 0x80070057
jmp 0x18002b747
mov dword [rsp + 0x64], 0x255
jmp 0x18002b77a
mov ecx, 0x1e
lea rdx, [0x1800a8560]
mov r8d, ebx
call fcn.1800876bc
nop
jmp 0x18002b787
Function at 0x18002c654
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14d, dword [rcx + 0x38]
xor r8d, r8d
mov rbx, qword [rcx + 0x908]
mov rdi, rcx
mov rsi, qword [rcx + 0x910]
mov r13d, r8d
mov ecx, 0x2401
cmp rbx, rsi
jae 0x18002c6cc
movsx eax, byte [rbx]
cmp r14d, 2
je 0x18004adfa
cmp r14d, 3
je 0x18004ae0e
cmp al, 0xd
ja 0x18002c6cc
bt ecx, eax
jae 0x18002c6cc
mov byte [rbx], r8b
inc rbx
jmp 0x18002c69f
mov qword [rdi + 0x918], rbx
mov qword [rdi + 0x920], rbx
cmp rbx, rsi
jae 0x18002c768
movsx eax, byte [rbx]
cmp r14d, 2
je 0x18004ae34
cmp r14d, 3
je 0x18004ae4c
cmp al, 0xd
ja 0x18002c703
bt ecx, eax
jb 0x18002c708
inc rbx
jmp 0x18002c6da
cmp r14d, 2
je 0x18004ae97
cmp r14d, 3
je 0x18004ae97
mov byte [rbx], r8b
inc rbx
mov qword [rdi + 0x920], rbx
mov eax, 1
mov qword [rdi + 0x908], rbx
mov qword [rdi + 0x910], rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18002d5c0
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp dword [rdi + 0x928], r8d
jne 0x18002c846
mov rdx, qword [rdi + 0x920]
cmp qword [rdi + 0x918], rdx
jne 0x18002c836
mov ebp, esi
mov dword [rsp + 0x30], r8d
sub ebp, edx
je 0x18002c7ae
cmp ebp, dword [rdi + 0x900]
jae 0x18002c7ae
mov r8d, ebp
lea rcx, [rdi + 0x128]
call sub.api_ms_win_core_crt_l1_1_0.dll_memcpy
xor r8d, r8d
mov r15d, dword [rdi + 0x900]
lea r12, [rdi + 0x128]
mov rcx, qword [rdi]
lea rdx, [r12 + rbp]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
sub r15d, ebp
mov r8d, r15d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
xor r8d, r8d
test eax, eax
je 0x18002c846
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x18004ae76
lea rax, [rcx + rbp]
mov rbx, r12
lea rsi, [rdi + 0x128]
add rsi, rax
cmp ecx, r15d
jae 0x18002c85c
mov dword [rdi + 0x928], 1
cmp r14d, 2
je 0x18004ae84
cmp r14d, 3
je 0x18002c84d
mov byte [rsi], r8b
mov ecx, 0x2401
je 0x18002c853
lea rsi, [rdi + 0x129]
add rsi, rax
inc r13d
cmp r13d, 0x3e8
jb 0x18002c69f
xor eax, eax
jmp 0x18002c73c
mov word [rsi], r8w
jmp 0x18002c825
lea rsi, [rdi + 0x12a]
jmp 0x18002c833
mov ecx, 0x2401
jmp 0x18002c836
cmp al, 0xd
jne 0x18004ae04
cmp byte [rbx + 1], r8b
je 0x18004ae27
cmp al, 0xa
jne 0x18004ae1d
cmp byte [rbx + 1], r8b
jmp 0x18004ae1b
test al, al
jne 0x18004ae1d
mov al, byte [rbx + 1]
cmp al, 0xd
je 0x18004ae27
cmp al, 0xa
je 0x18004ae27
cmp word [rbx], r8w
jne 0x18002c6cc
mov word [rbx], r8w
add rbx, 2
jmp 0x18002c69f
cmp al, 0xd
jne 0x18004ae42
cmp byte [rbx + 1], r8b
je 0x18002c708
cmp al, 0xa
jne 0x18004ae63
cmp byte [rbx + 1], r8b
jmp 0x18004ae5d
test al, al
jne 0x18004ae63
mov al, byte [rbx + 1]
cmp al, 0xd
je 0x18002c708
cmp al, 0xa
je 0x18002c708
cmp word [rbx], r8w
je 0x18002c708
add rbx, 2
jmp 0x18002c6da
test r15d, r15d
je 0x18002c722
jmp 0x18002c7f2
mov word [rsi], r8w
lea rsi, [rdi + 0x12a]
add rsi, rax
jmp 0x18002c85c
mov word [rbx], r8w
add rbx, 2
jmp 0x18002c722
Function at 0x18002cd50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x11d
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
mov rdi, qword [rbx + 8]
xor esi, esi
test byte [0x1800b78f2], 2
jne 0x18004b11c
mov dword [rbx + 0x900], 0x3e8
lea rax, [rbx + 0x128]
movq xmm0, rax
movlhps xmm0, xmm0
movups xmmword [rbx + 0x908], xmm0
movups xmmword [rbx + 0x918], xmm0
and dword [rbx + 0x928], esi
mov rcx, qword [rbx]
test rcx, rcx
jne 0x18004b133
test rdi, rdi
je 0x18002ce07
mov rdx, rdi
lea rcx, str.hosts
call sub.api_ms_win_core_crt_l1_1_0.dll_strcmp
test eax, eax
je 0x18002ce07
mov rdx, rdi
lea rcx, str.hosts.ics
call sub.api_ms_win_core_crt_l1_1_0.dll_strcmp
test eax, eax
jne 0x18004b14d
lea esi, [rax + 1]
call sym.DNSAPI.dll_Util_IsRunningOnXboxOne
lea rcx, [rsp + 0x40]
test eax, eax
jne 0x18004b174
mov edx, 0x104
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryA]
nop dword [rax + rax]
mov edi, 0x11c
lea r8, str.wawncekbizo.dat
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.18002cee4
test esi, esi
je 0x18002ce59
lea r8, str..ics
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.18002cee4
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
and dword [rsp + 0x28], 0
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileA]
nop dword [rax + rax]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x18002ce96
and qword [rbx], 0
cmp qword [rbx], 0
je 0x18002cecf
mov rcx, rbx
call fcn.18002d004
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.18002d5c0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
test esi, esi
je 0x18002ced7
xor eax, eax
jmp 0x18002cea9
call fcn.180058fa4
jmp 0x18002ced3
mov ecx, 0xa
lea rdx, [0x1800a29a0]
call fcn.180087008
nop
jmp 0x18002cd9c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
nop dword [rax + rax]
nop
jmp 0x18002ce96
test byte [0x1800b78f1], 4
je 0x18002ce96
mov ecx, 0xb
lea rdx, [0x1800a29a0]
mov r8, rdi
call fcn.180087e84
nop
jmp 0x18002ce96
lea r8, str.s:windows_system32
mov edx, 0x104
call fcn.1800510a8
nop
jmp 0x18002ce2a
Function at 0x18002d004
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r15
sub rsp, 0x40
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov esi, dword [rcx + 0x38]
mov rbx, rcx
mov rdi, qword [rcx + 0x918]
mov r15d, 1
test esi, esi
jne 0x18002d0ac
xor ebp, ebp
lea rdx, [rcx + 0x128]
mov rcx, qword [rcx]
lea r9, [r11 - 0x28]
and dword [rsp + 0x30], ebp
lea r8d, [rsi + 2]
and qword [r11 - 0x38], rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x18002d0d0
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x18002d0d0
mov al, byte [rdi]
cmp al, 0xff
je 0x18004b18c
cmp al, 0xfe
je 0x18004b1a0
cmp al, 0xef
je 0x18004b1bb
mov esi, r15d
mov dword [rbx + 0x38], esi
test ebp, ebp
jne 0x18004b21f
mov eax, ecx
lea rcx, [rbx + 0x128]
add rcx, rax
mov qword [rbx + 0x910], rcx
mov eax, r15d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18002d5c0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x18002d0af
cmp byte [rdi + 1], 0xfe
jne 0x18002d08b
mov esi, 2
add rdi, rsi
jmp 0x18004b1b3
cmp byte [rdi + 1], 0xff
jne 0x18002d08b
mov esi, 3
add rdi, 2
mov ebp, r15d
jmp 0x18002d08e
cmp byte [rdi + 1], 0xbb
jne 0x18002d08b
mov rcx, qword [rbx]
lea rdx, [rbx + 0x12a]
and dword [rsp + 0x30], ebp
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], rbp
mov r8d, r15d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x18002d0d0
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x18002d0d0
mov al, byte [rdi + 2]
add ecx, 2
cmp al, 0xbf
mov edx, 4
cmove esi, edx
add rdi, 3
cmp al, 0xbf
sete bpl
jmp 0x18002d08e
mov dword [rbx + 0x900], 0x7d0
mov qword [rbx + 0x908], rdi
mov qword [rbx + 0x910], rdi
mov qword [rbx + 0x918], rdi
mov qword [rbx + 0x920], rdi
jmp 0x18002d0ac

Function at 0x18002d0e0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test byte [0x1800b78f1], 4
jne 0x18004b24a
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
nop dword [rax + rax]
and dword [0x1800b7d4c], 0
mov ebx, eax
call fcn.18002d164
call qword [sym.imp.ntdll.dll_RtlGetCurrentServiceSessionId]
nop dword [rax + rax]
test eax, eax
jne 0x18004b261
mov eax, ebx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18002d5c0
add rsp, 0x1d0
pop rbx
ret
mov ecx, 0xc
lea rdx, [0x1800a2558]
call fcn.180087008
nop
jmp 0x18002d108
mov dword [0x1800b84e8], 1
test byte [0x1800b78f1], 4
je 0x18002d140
mov ecx, 0xd
lea rdx, [0x1800a2558]
call fcn.180087008
nop
jmp 0x18002d140
Function at 0x18004e9f0
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rcx]
xor edi, edi
lea r8, [r11 - 0x28]
xor edx, edx
mov qword [r11 - 0x28], rdi
lea rcx, [r11 - 0x20]
movdqu xmmword [rsp + 0x28], xmm0
call fcn.180026f48
mov ebx, eax
cmp eax, 2
jne 0x18004ea34
xor eax, eax
jmp 0x18004ea70
test eax, eax
jne 0x18004ea58
mov rcx, qword [rsp + 0x20]
lea rdx, str.DNSQueryTimeoutsMB
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
cmp eax, 2
mov ebx, eax
cmove ebx, edi
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18004ea6e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18002d5c0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x18004ee10
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rcx]
xor esi, esi
mov ebp, edx
and qword [r11 - 0x48], rsi
mov r14, r8
movdqu xmmword [rsp + 0x38], xmm0
test edx, edx
je 0x18004ef1f
test r8, r8
je 0x18004ef1f
lea r8, [r11 - 0x48]
lea edx, [rsi + 1]
lea rcx, [r11 - 0x40]
call fcn.180026f48
mov ebx, eax
test eax, eax
jne 0x18004ef24
imul rdi, rbp, 0xb
inc rdi
lea ecx, [rdi + rdi]
call fcn.180017d38
mov rsi, rax
test rax, rax
jne 0x18004ee8f
lea ebx, [rax + 0xe]
jmp 0x18004ef24
xor r15d, r15d
mov rbx, rsi
test ebp, ebp
je 0x18004eed2
mov r9d, dword [r14]
lea r8, [0x1800a2568]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_crt_l1_1_0.dll_swprintf_s]
nop dword [rax + rax]
cmp eax, 1
jl 0x18004eede
inc eax
inc r15d
movsxd rcx, eax
add r14, 4
sub rdi, rcx
lea rbx, [rbx + rcx*2]
cmp r15d, ebp
jb 0x18004ee99
test rdi, rdi
jne 0x18004eee5
mov ebx, 0x50c
jmp 0x18004ef24
mov ebx, 0xd
jmp 0x18004ef24
mov rcx, qword [rsp + 0x30]
lea rdx, str.DNSQueryTimeoutsMB
sub rbx, rsi
mov r9d, 7
add rbx, 2
xor r8d, r8d
sar rbx, 1
add ebx, ebx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
jmp 0x18004ef24
mov ebx, 0x57
mov rcx, rsi
call sym.DNSAPI.dll_DnsApiFree
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18004ef42
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18002d5c0
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180051c20
Capabilities:
Resolve dns

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rsp + 0x58], rax
or ebx, 0xffffffff
mov rdi, rcx
test edx, edx
cmovne ebx, edx
test bl, 3
je 0x180051cca
and qword [r11 - 0x48], 0
lea r9, [r11 - 0x48]
xorps xmm0, xmm0
lea r8, [r11 - 0x40]
movups xmmword [rsp + 0x28], xmm0
xor edx, edx
mov dword [rsp + 0x28], 4
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x180051cca
mov rcx, qword [rsp + 0x20]
mov edi, dword [rcx + 4]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
nop dword [rax + rax]
cmp edi, 0x17
jne 0x180051cbf
lea eax, [rdi - 0x16]
test al, bl
jne 0x180051ca6
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18002d5c0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov eax, 2
cmp edi, eax
jne 0x180051ca4
jmp 0x180051ca0
bt ebx, 9
jae 0x180051cef
mov edx, 3
mov rcx, rdi
call sym.DNSAPI.dll_DnsValidateName_W
test eax, eax
je 0x180051ce8
cmp eax, 0x2554
jne 0x180051cef
mov eax, 0x200
jmp 0x180051ca6
bt ebx, 8
jae 0x180051ca4
mov edx, 3
mov rcx, rdi
call sym.DNSAPI.dll_DnsValidateName_W
test eax, eax
je 0x180051d0d
cmp eax, 0x2554
jne 0x180051ca4
mov eax, pe_nt_image_headers64
jmp 0x180051ca6

Function at 0x180055610
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test byte [0x1800b78f1], 4
je 0x18005564c
mov rax, qword [rbx + 0x40]
lea rdx, [0x18009f0b0]
movzx r9d, word [rcx + 0x10]
mov ecx, 0x46
mov r8, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov eax, dword [rbx + 0x14]
mov dword [rsp + 0x20], eax
call fcn.180087af0
test rbx, rbx
je 0x18005566d
mov edx, 1
cmp dword [rbx + 4], edx
jne 0x18005566d
cmp dword [rbx], 0x70
jb 0x18005566d
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp 0x1800551a4
mov eax, 0x57
add rsp, 0x30
pop rbx
ret
Function at 0x1800556e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r15, qword [rsp + 0xe8]
xor eax, eax
mov r12, qword [rsp + 0xf0]
mov rbx, rcx
mov r13, qword [rsp + 0xf8]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x50], eax
mov ebp, r9d
mov qword [rsp + 0x60], rax
mov esi, r8d
mov qword [rsp + 0x58], rax
movzx edi, dx
call qword [sym.imp.api_ms_win_core_profile_l1_1_0.dll_QueryPerformanceCounter]
nop dword [rax + rax]
test byte [0x1800b78f1], 0x40
mov r14d, dword [rsp + 0xe0]
je 0x180055773
mov dword [rsp + 0x30], r14d
mov r9d, edi
mov dword [rsp + 0x28], ebp
mov ecx, 0x3a
mov r8, rbx
mov dword [rsp + 0x20], esi
call fcn.18008a4a4
lea rax, [rsp + 0x50]
mov r9d, ebp
mov qword [rsp + 0x40], rax
mov r8d, esi
mov qword [rsp + 0x38], r13
movzx edx, di
mov qword [rsp + 0x30], r12
mov rcx, rbx
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r14d
call fcn.180008340
mov ebx, eax
mov al, byte [0x1800b78f1]
test al, 0x40
je 0x1800557cd
mov r9d, dword [rsp + 0x50]
lea rdx, [0x18009f0b0]
mov ecx, 0x3b
mov r8d, ebx
call fcn.180087020
mov al, byte [0x1800b78f1]
test ebx, ebx
cmove ebx, dword [rsp + 0x50]
test al, 0x40
je 0x1800557ec
mov ecx, 0x3c
lea rdx, [0x18009f0b0]
mov r8d, ebx
call fcn.1800876bc
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_profile_l1_1_0.dll_QueryPerformanceCounter]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
mov r8d, ebx
sub rcx, qword [rsp + 0x60]
mov edx, 2
call fcn.180007ee0
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18002d5c0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret