joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005210
Capabilities:
Create directory
Query environment variable

Disassembly:
push rdi
mov eax, 0x4030
call fcn.140009a10
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400068b0
mov rdi, rax
test rax, rax
jne 0x140005259
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140001c70
xor eax, eax
jmp 0x140005342
mov r8d, 0x1000
mov qword [rsp + 0x4048], rbx
lea rdx, [rsp + 0x2020]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
mov ebx, eax
call fcn.14000c984
test ebx, ebx
jne 0x140005299
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.140001c70
xor eax, eax
jmp 0x14000533a
mov r8d, 0x1000
lea rdx, [rsp + 0x2020]
xor ecx, ecx
call fcn.140010ea8
mov rbx, rax
test rax, rax
jne 0x1400052c6
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140001c70
xor eax, eax
jmp 0x14000533a
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2000
call fcn.14000b060
mov edx, 0x5c
mov rcx, rbx
call fcn.14000afb4
mov rdi, rax
test rax, rax
je 0x14000532c
nop dword [rax]
mov r8, rdi
lea rcx, [rsp + 0x20]
sub r8, rbx
mov rdx, rbx
sar r8, 1
inc r8
call fcn.140011974
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000afb4
mov rdi, rax
test rax, rax
jne 0x1400052f0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, rbx
mov rbx, qword [rsp + 0x4048]
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140009a80
add rsp, 0x4030
pop rdi
ret

Function at 0x140005360
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1030
call fcn.140009a10
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [0x140025420]
call fcn.140002d90
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.1400057a0
xor edi, edi
mov rbx, rax
test rsi, rsi
je 0x140005453
mov rcx, rsi
test rax, rax
je 0x14000545b
call fcn.14000bc38
test eax, eax
jne 0x14000543f
nop word [rax + rax]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000bef0
test rax, rax
jne 0x1400053fe
mov rcx, rsi
call fcn.14000bc64
test eax, eax
je 0x140005424
mov rcx, rsi
jmp 0x140005435
mov r9, rbx
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000c8f8
test rax, rax
je 0x140005432
mov rcx, rbx
call fcn.14000bc64
test eax, eax
jne 0x140005432
mov rcx, rsi
call fcn.14000bc38
test eax, eax
je 0x1400053d0
jmp 0x14000543f
mov rcx, rbx
call fcn.1400132b4
mov edi, 0xffffffff
mov rcx, rsi
call fcn.14000bbd4
mov rcx, rbx
call fcn.14000bbd4
mov eax, edi
jmp 0x140005465
test rbx, rbx
je 0x140005460
mov rcx, rbx
call fcn.14000bbd4
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140009a80
add rsp, 0x1030
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400054e0
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov eax, 0x2060
call fcn.140009a10
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rbp, rdx
mov r14, rcx
test rdx, rdx
je 0x14000556b
lea rcx, [0x1400278c4]
call fcn.1400056f0
mov rcx, rbp
mov rsi, rax
call fcn.140005210
mov rdi, rax
test rax, rax
je 0x14000563f
mov rdx, rax
lea rcx, [0x1400278c8]
call fcn.140012068
mov rcx, rdi
mov ebx, eax
call fcn.14000c984
test ebx, ebx
je 0x140005570
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.140001c70
xor eax, eax
jmp 0x1400056c8
mov rsi, qword [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._MEI_d
mov edx, 0x10
lea rcx, [rsp + 0x28]
call fcn.140006080
xor ebx, ebx
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.140013298
mov rcx, rax
mov rdi, rax
call fcn.140006560
test eax, eax
je 0x140005646
mov rcx, rdi
call fcn.14000c984
inc ebx
cmp ebx, 5
jl 0x1400055a0
test rbp, rbp
je 0x14000563f
xor r8d, r8d
lea rdx, [0x1400278c4]
xor ecx, ecx
call fcn.1400068b0
test rsi, rsi
je 0x140005629
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.1400068b0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140012068
mov rcx, rdi
call fcn.14000c984
mov rcx, rbx
call fcn.14000c984
mov rcx, rsi
call fcn.14000c984
xor eax, eax
jmp 0x1400056c8
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.14000c984
xor eax, eax
jmp 0x1400056c8
mov r8d, 0x1000
mov rdx, rdi
mov rcx, r14
call fcn.1400069c0
mov rcx, rdi
call fcn.14000c984
test rbp, rbp
je 0x1400056c3
xor r8d, r8d
lea rdx, [0x1400278c4]
xor ecx, ecx
call fcn.1400068b0
test rsi, rsi
je 0x1400056ad
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.1400068b0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140012068
mov rcx, rdi
call fcn.14000c984
mov rcx, rbx
call fcn.14000c984
mov rcx, rsi
jmp 0x1400056be
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.14000c984
mov eax, 1
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.140009a80
lea r11, [rsp + 0x2060]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400056f0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.140009a10
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400068b0
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140005786
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.1400069c0
test rax, rax
je 0x140005786
cmp byte [rax], 0
je 0x140005786
mov rcx, rax
call fcn.140014974
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140009a80
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140009a80
add rsp, 0x4038
ret

Function at 0x140005c90
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.1400068b0
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.14000c984
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140005cd0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.140009a10
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov rdx, rcx
xor edi, edi
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x50], edi
mov r8d, 0x1000
call fcn.1400068b0
mov ebx, 1
lea ecx, [rdi + 0x16]
mov edx, ebx
call fcn.140012cf8
mov edx, ebx
lea ecx, [rdi + 2]
call fcn.140012cf8
mov edx, ebx
lea ecx, [rdi + 0xf]
call fcn.140012cf8
mov edx, ebx
lea ecx, [rdi + 0x15]
call fcn.140012cf8
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], bx
call fcn.14000cb50
mov rcx, rax
call fcn.1400149ec
mov ecx, eax
call fcn.1400128ac
mov ecx, ebx
mov qword [rsp + 0xe0], rax
call fcn.14000cb50
mov rcx, rax
call fcn.1400149ec
mov ecx, eax
call fcn.1400128ac
lea ecx, [rdi + 2]
mov qword [rsp + 0xe8], rax
call fcn.14000cb50
mov rcx, rax
call fcn.1400149ec
mov ecx, eax
call fcn.1400128ac
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140005e51
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
jmp 0x140005e69
lea rdx, str.Error_creating_child_process__n
lea rcx, [0x1400279c8]
call fcn.140001cd0
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.140009a80
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret
Function at 0x140006560
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2070
call fcn.140009a10
sub rsp, rax
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x2060], rax
xor ebx, ebx
mov qword [rsp + 0x38], 0xffffffffffffffff
mov qword [rsp + 0x40], rbx
mov rdi, rcx
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x38]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140006631
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400065e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140006631
mov edx, dword [rsp + 0x30]
mov ecx, 1
call fcn.14000c97c
mov rbx, rax
test rax, rax
je 0x140006631
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8, rbx
mov edx, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140006631
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov rcx, rbx
call fcn.14000c984
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x14000664a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
lea r9, str.S_1_3_4
test rbx, rbx
lea r8, str.D:_A__FA____s_
mov edx, 0x1000
lea rcx, [rsp + 0x60]
cmovne r9, rbx
call fcn.140006360
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
mov dword [rsp + 0x48], 0x18
lea r8, [rsp + 0x50]
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x60]
lea edx, [r9 + 1]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x1400066bc
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400066bc
xor eax, eax
jmp 0x1400066c1
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2060]
xor rcx, rsp
call fcn.140009a80
mov rbx, qword [rsp + 0x2088]
add rsp, 0x2070
pop rdi
ret
Function at 0x1400120a0
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400120c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400157e0
or eax, 0xffffffff
jmp 0x1400120c2
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400123f0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
mov rbx, rdx
test rdx, rdx
jne 0x14001212f
call fcn.140015850
mov dword [rax], 0x16
call fcn.140015730
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140009a80
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x1400120f6
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001219d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140012170
cmp eax, 3
jbe 0x14001218d
cmp eax, 8
je 0x14001217d
cmp eax, 0x12
je 0x14001218d
call fcn.140015850
mov dword [rax], 0x16
jmp 0x140012106
call fcn.140015850
mov dword [rax], 0xc
jmp 0x140012106
call fcn.140015850
mov dword [rax], 2
jmp 0x140012106
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, esi
mov dword [rbx], eax
call fcn.140012338
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140012338
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140012338
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001aebc
test eax, eax
jne 0x1400121fb
mov rax, rdi
jmp 0x14001210a
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140015750
int3
jmp 0x1400120c8
Function at 0x1400123f8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140037018]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rbx, rdx
test rcx, rcx
jne 0x14001226d
call fcn.140015850
mov dword [rax], 0x16
call fcn.140015730
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140009a80
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp rcx, 0xffffffffffffffff
je 0x140012239
test rbx, rbx
je 0x140012239
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400122c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x1400122a1
cmp eax, 3
jbe 0x1400122bb
cmp eax, 8
je 0x1400122ae
cmp eax, 0x12
je 0x1400122bb
call fcn.140015850
mov dword [rax], 0x16
jmp 0x140012249
call fcn.140015850
mov dword [rax], 0xc
jmp 0x140012249
call fcn.140015850
mov dword [rax], 2
jmp 0x140012249
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, edi
mov dword [rbx], eax
call fcn.140012338
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140012338
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140012338
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001aebc
test eax, eax
je 0x14001224c
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140015750
int3
jmp 0x140012210

Function at 0x140012ed4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140012ef4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400157e0
or eax, 0xffffffff
jmp 0x140012ef6
xor eax, eax
add rsp, 0x28
ret

Function at 0x140014278
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400140a4
Function at 0x180002b40
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r15, qword [0x180254170]
xor esi, esi
mov ebp, r8d
mov r14, rdx
mov ebx, esi
mov edi, r8d
mov eax, esi
test r8d, r8d
jle 0x180002ba2
nop dword [rax]
nop word [rax + rax]
movsxd rdx, ebx
xor r9d, r9d
add rdx, r14
mov r8d, edi
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x180002ba5
add ebx, eax
sub edi, eax
cmp ebx, ebp
jl 0x180002b80
cmp eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
setne sil
mov rbp, qword [rsp + 0x48]
lea eax, [rsi - 1]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x180002bd0
Capabilities:
Send data
Send data on socket

Disassembly:
push r14
sub rsp, 0x60
mov rax, qword [0x180243280]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, rcx
mov dword [rsp + 0x20], edx
lea rcx, [0x180254250]
mov qword [rsp + 0x28], r8
call fcn.180156e98
test eax, eax
jne 0x180002d0f
cmp dword [0x18025429c], 0x7fffffff
je 0x180002cfa
mov qword [rsp + 0x58], rbx
xor ebx, ebx
mov qword [rsp + 0x50], rbp
mov rbp, qword [0x180254170]
mov qword [rsp + 0x48], rsi
lea esi, [rax + 4]
mov qword [rsp + 0x40], rdi
mov edi, ebx
nop word [rax + rax]
movsxd rax, edi
lea rdx, [rsp + 0x20]
add rdx, rax
xor r9d, r9d
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x180002c68
add edi, eax
sub esi, eax
cmp edi, 4
jl 0x180002c40
mov rbp, qword [0x180254170]
cmp eax, 0xffffffff
mov esi, ebx
mov edi, 8
setne sil
dec esi
nop
movsxd rax, ebx
lea rdx, [rsp + 0x28]
add rdx, rax
xor r9d, r9d
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x180002ca8
add ebx, eax
sub edi, eax
cmp ebx, 8
jl 0x180002c80
mov r8d, dword [rsp + 0x20]
mov ebx, 0xffffffff
cmp eax, ebx
mov rdx, r14
cmove esi, ebx
call fcn.180002b40
cmp eax, ebx
lea rcx, [0x180254250]
cmove esi, ebx
call fcn.180156ea0
mov rdi, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18017ae80
add rsp, 0x60
pop r14
ret
mov ecx, 6
mov dword [0x18025429c], 0x7ffffffe
call fcn.18015721c
int3
mov ecx, 5
call fcn.18015721c
int3
Function at 0x180006d80
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x180006e36
mov rbx, qword [rcx]
cmp qword [rdi], 0
je 0x180006e02
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180006e21
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180006e21
mov qword [rsp + 0x28], 0
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call rax
nop
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x180006e21
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x180254710], 0
jne 0x180006e81
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180006e71
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180254718], rax
mov byte [0x180254710], 1
jmp 0x180006e88
mov rax, qword [0x180254718]
mov byte [0x180254710], 1
jmp 0x180006e88
mov rax, qword [0x180254718]
mov rdx, rsi
mov rcx, qword [rbx]
test rax, rax
je 0x180006e0b
xor r9d, r9d
mov r8d, dword [rbx + 8]
call rax
nop
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180006fc0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x180243280]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov qword [rsp + 0x40], rbp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x50], rbp
lea rcx, [rsp + 0x40]
call fcn.180006ec0
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jne 0x1800070dc
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1800070b1
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.180006fc0
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jne 0x1800070dc
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x180007060
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800070c6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov dword [rsp + 0x48], ebp
mov rcx, rdi
call fcn.180006d80
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test rcx, rcx
je 0x1800070e7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.18017ae80
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret
Function at 0x180012270
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x180243280]
xor rax, rsp
mov qword [rbp - 0x18], rax
xor r12d, r12d
mov r15, r9
mov r14, rdx
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
je 0x18001245d
mov qword [rsp + 0xc0], rbx
test r8b, r8b
je 0x1800122ee
movzx eax, byte [rdx]
test al, 8
je 0x1800122ee
or al, 8
mov dword [rbp - 0x20], r12d
mov byte [rdx], al
lea r9, [rbp - 0x20]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea rcx, [rbp - 0x38]
setne dl
call fcn.180012100
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, r15
mov ebx, eax
setne dl
call fcn.180012100
test ebx, ebx
je 0x180012459
mov qword [rsp + 0x78], rsi
movabs rcx, 0x4d54ee85da812030
mov rsi, qword [0x180244098]
add rcx, rsi
mov qword [rsp + 0x70], r13
mov dword [rbp - 0x4c], r12d
lea r13, [0x180244090]
cmp rcx, 1
jbe 0x180012358
mov rax, qword [0x180244090]
mov edx, 0x2733
mov rcx, r13
call qword [rax + 0x30]
mov rsi, qword [0x180244098]
jmp 0x18001235a
mov al, 1
movzx eax, al
lea rdx, [rbp - 0x38]
add rax, 2
mov dword [rbp - 0x50], 0x2733
mov qword [rbp - 0x40], rax
mov rcx, r15
movsd xmm1, qword [rbp - 0x40]
mov qword [rbp - 0x48], r13
movups xmm0, xmmword [rbp - 0x50]
movsd qword [rbp - 0x28], xmm1
movups xmmword [rbp - 0x38], xmm0
call fcn.180011540
test al, al
jne 0x1800123f7
movabs rax, 0x4d54ee85da812030
mov dword [rbp - 0x4c], r12d
add rax, rsi
cmp rax, 1
jbe 0x1800123bd
mov rax, qword [0x180244090]
mov edx, 0x4d5
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1800123bf
mov al, 1
movzx eax, al
lea rdx, [rbp - 0x38]
add rax, 2
mov dword [rbp - 0x50], 0x4d5
mov qword [rbp - 0x40], rax
mov rcx, r15
movsd xmm1, qword [rbp - 0x40]
mov qword [rbp - 0x48], r13
movups xmm0, xmmword [rbp - 0x50]
movsd qword [rbp - 0x28], xmm1
movups xmmword [rbp - 0x38], xmm0
call fcn.180011540
test al, al
je 0x180012429
lea r8, [rbp - 0x20]
mov dword [rbp - 0x20], r12d
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, r15
mov ebx, eax
setne dl
call fcn.180012100
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov r13, qword [rsp + 0x70]
mov rbx, qword [rsp + 0xc0]
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.18017ae80
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov eax, ebx
jmp 0x180012435
mov eax, r12d
jmp 0x18001243d
Function at 0x180012470
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r9
cmp rcx, 0xffffffffffffffff
jne 0x1800124fb
movabs rcx, 0x4d54ee85da812030
mov dword [rsp + 0x24], 0
add rcx, qword [0x180244098]
lea rbx, [0x180244090]
cmp rcx, 1
jbe 0x1800124bd
mov rax, qword [0x180244090]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1800124bf
mov al, 1
movzx eax, al
add rax, 2
mov dword [rsp + 0x20], 0x2719
mov qword [rsp + 0x30], rax
mov eax, 0xffffffff
movsd xmm1, qword [rsp + 0x30]
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.180012100
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret