joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14032d9a0
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1404f4fb8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, r8
mov r15d, edx
mov rbp, rcx
call fcn.140333630
test eax, eax
jne 0x14032dba6
mov byte [rsp + 0x40], al
call fcn.140334f10
cmp eax, 3
jne 0x14032da71
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14032da8a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.DatabasePath
lea rax, [rsp + 0x150]
mov dword [rsp + 0x30], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14032da8a
cmp eax, 2
jne 0x14032dba6
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rcx, [rsp + 0x40]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14032da92
mov eax, dword [str.hosts]
lea rdx, [0x1404302f0]
mov dword [rcx], eax
movzx eax, word [0x1404697c4]
mov word [rcx + 4], ax
movzx eax, byte [0x1404697c6]
mov byte [rcx + 6], al
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r14, rax
test rax, rax
jne 0x14032daf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 1
jbe 0x14032dba6
mov qword [rsi], r14
lea eax, [r14 + 0xe]
jmp 0x14032dbab
mov r8, rsi
mov edx, r15d
mov rcx, r14
call fcn.140335050
mov edi, eax
test eax, eax
jne 0x14032db79
mov qword [rsp + 0x2b8], rbx
nop dword [rax]
mov rcx, qword [rsi]
mov rdx, rbp
mov rcx, qword [rcx]
call sub.api_ms_win_crt_string_l1_1_0.dll__stricmp
test eax, eax
je 0x14032db71
mov rbx, qword [rsi]
mov rbx, qword [rbx + 8]
mov rax, qword [rbx]
test rax, rax
je 0x14032db55
mov rdx, rbp
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll__stricmp
test eax, eax
je 0x14032db4f
mov rax, qword [rbx + 8]
add rbx, 8
test rax, rax
jne 0x14032db31
jmp 0x14032db55
cmp qword [rbx], 0
jne 0x14032db71
mov rcx, qword [rsi]
call fcn.140334540
mov r8, rsi
mov edx, r15d
mov rcx, r14
call fcn.140335050
mov edi, eax
test eax, eax
je 0x14032db10
mov rbx, qword [rsp + 0x2b8]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp edi, 0xd
jne 0x14032db97
mov edi, 4
mov qword [rsi], 0
mov eax, edi
jmp 0x14032dbab
test edi, edi
je 0x14032dba2
mov qword [rsi], 0
mov eax, edi
jmp 0x14032dbab
mov eax, 4
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140233ef0
add rsp, 0x270
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14032f160
Capabilities:
Check os version

Disassembly:
sub rsp, 0xd8
mov rax, qword [0x1404f4fb8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x90
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], __WSAFDIsSet
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14032f1c6
cmp dword [rsp + 0x24], 6
jb 0x14032f1c6
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140233ef0
add rsp, 0xd8
ret
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140233ef0
add rsp, 0xd8
ret
Function at 0x14032fe40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rcx
mov qword [rcx], rbx
call fcn.140334f10
cmp eax, 3
jne 0x14032ff52
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rdi], rbx
lea rdx, str.SystemCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140330059
mov rcx, qword [rsp + 0x58]
lea rdx, str.NameServer
mov r8, rdi
call fcn.140330070
mov esi, eax
test eax, eax
jne 0x14032ff27
mov rcx, qword [rsp + 0x58]
lea rdx, str.DhcpNameServer
mov r8, rdi
call fcn.140330070
mov esi, eax
test eax, eax
jne 0x14032ff27
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea r9d, [rbx + 9]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Interfaces
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14032fef7
mov qword [rsp + 0x50], rbx
jmp 0x14032ff37
mov rcx, qword [rsp + 0x50]
lea rdx, str.NameServer
mov r8, rdi
call fcn.1403304c0
mov esi, eax
test eax, eax
jne 0x14032ff27
mov rcx, qword [rsp + 0x50]
lea rdx, str.DhcpNameServer
mov r8, rdi
call fcn.1403304c0
mov esi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14032ff37
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x140330059
cmp qword [rdi], rbx
jmp 0x14033004a
cmp eax, 2
jne 0x140330059
lea rax, [rsp + 0x60]
mov qword [rdi], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetServicesVxDMSTCP
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140330059
mov rsi, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
mov rcx, rsi
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov dword [rsp + 0x58], ebx
lea rdx, str.NameServer
mov dword [rsp + 0x50], ebx
mov qword [rdi], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14032ffcf
cmp eax, 0xea
jne 0x140330037
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140330037
lea ecx, [rax + 1]
call qword [0x1404fe858]
mov qword [rdi], rax
test rax, rax
je 0x140330037
lea rcx, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x58]
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea rdx, str.NameServer
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14033002b
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x14033002b
mov ecx, eax
mov rax, qword [rdi]
mov byte [rcx + rax], bl
mov ebx, 1
jmp 0x140330037
mov rcx, qword [rdi]
call qword [0x1404fe868]
mov qword [rdi], rbx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140330059
cmp qword [rdi], 0
je 0x140330059
mov eax, 1
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140330070
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
lea rax, [rsp + 0x50]
mov qword [r8], rbp
mov rbx, r8
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor r9d, r9d
mov dword [rsp + 0x50], ebp
mov rdi, rdx
mov qword [rsp + 0x20], rbp
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1403300bc
cmp eax, 0xea
jne 0x14033011f
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14033011f
lea ecx, [rax + 1]
call qword [0x1404fe858]
mov qword [rbx], rax
test rax, rax
je 0x14033011f
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140330113
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x140330113
mov ecx, eax
mov rax, qword [rbx]
mov byte [rcx + rax], bpl
mov eax, 1
jmp 0x140330121
mov rcx, qword [rbx]
call qword [0x1404fe868]
mov qword [rbx], rbp
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1403304c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x1404f4fb8]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor ebx, ebx
mov dword [rsp + 0x44], 0x100
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], rbx
mov rsi, r8
mov r15, rdx
mov qword [r8], rbx
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x20], rbx
lea ebp, [rbx + 1]
mov r14, rcx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x140330647
mov qword [rsp + 0x1a8], rdi
lea rax, [rsp + 0x48]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140330604
mov rdi, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rcx, rdi
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov dword [rsp + 0x40], ebx
mov rdx, r15
mov qword [rsi], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140330591
cmp eax, 0xea
jne 0x1403305f3
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1403305f3
lea ecx, [rax + 1]
call qword [0x1404fe858]
mov qword [rsi], rax
test rax, rax
je 0x1403305f3
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1403305e7
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x1403305e7
mov ecx, eax
mov edi, 1
mov rax, qword [rsi]
mov byte [rcx + rax], bl
jmp 0x1403305f5
mov rcx, qword [rsi]
call qword [0x1404fe868]
mov qword [rsi], rbx
mov edi, ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x14033063f
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x50]
mov edx, ebp
mov qword [rsp + 0x28], rbx
mov rcx, r14
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x44], 0x100
inc ebp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x140330530
mov rdi, qword [rsp + 0x1a8]
cmp qword [rsi], rbx
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140233ef0
add rsp, 0x160
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x1403318c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1404f4fb8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [r8 + 0x12200], 0
mov rbx, r8
mov edi, edx
mov rsi, rcx
jne 0x1403319fe
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [rbx + 0x1c], 0
lea r9, [rbx + 0x1c]
jle 0x14033193b
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1403319f7
cmp dword [rbx + 0x20], 0
lea r9, [rbx + 0x20]
jle 0x14033196a
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1002
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1403319f7
cmp edi, 2
jne 0x14033199d
mov ecx, dword [rbx + 0x74]
test ecx, ecx
je 0x1403319fe
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov eax, edi
mov word [rsp + 0x38], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x3c], eax
lea r8d, [rdi + 0xe]
jmp 0x1403319e5
cmp edi, 0x17
jne 0x1403319fe
mov rax, qword [rbx + 0x78]
cmp rax, qword [0x140469cb0]
jne 0x1403319bf
mov rax, qword [rbx + 0x80]
cmp rax, qword [0x140469cb8]
je 0x1403319fe
movups xmm0, xmmword [rbx + 0x78]
xor eax, eax
mov dword [rsp + 0x3a], eax
mov word [rsp + 0x3e], ax
mov dword [rsp + 0x50], eax
mov eax, reloc.WS2_32.dll_socket
mov word [rsp + 0x38], ax
movups xmmword [rsp + 0x40], xmm0
lea r8d, [rax + 5]
lea rdx, [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x1403319fe
mov eax, 0xffffffff
jmp 0x140331a00
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140233ef0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x30
mov r10, rdx
mov rbx, r8
mov edx, dword [rdx + 0xa0]
mov r11, rcx
inc edx
mov dword [r10 + 0xa0], edx
mov eax, dword [rcx + 8]
mov r9d, dword [rcx + 0x98]
imul eax, r9d
cmp edx, eax
jge 0x140331dc6
mov eax, dword [r10 + 0xa4]
inc eax
cdq
idiv r9d
mov dword [r10 + 0xa4], edx
movsxd r8, edx
lea rcx, [r8 + r8*8]
shl rcx, 4
add rcx, qword [r11 + 0x90]
cmp dword [rcx + 0x88], 0
jne 0x140331da3
mov rax, qword [r10 + 0xa8]
cmp dword [rax + r8*8], 0
lea rdx, [rax + r8*8]
jne 0x140331da3
cmp dword [r10 + 0xb0], 0
je 0x140331de9
mov eax, dword [rcx + 0x60]
cmp dword [rdx + 4], eax
jne 0x140331de9
mov ecx, dword [r10 + 0xa0]
inc ecx
mov dword [r10 + 0xa0], ecx
mov eax, dword [r11 + 8]
mov r9d, dword [r11 + 0x98]
imul eax, r9d
cmp ecx, eax
jl 0x140331d50
mov r8d, dword [r10 + 0xb4]
xor r9d, r9d
mov rdx, r10
mov dword [rsp + 0x20], 0
mov rcx, r11
call fcn.140331a20
add rsp, 0x30
pop rbx
ret
mov r8, rbx
mov rdx, r10
mov rcx, r11
add rsp, 0x30
pop rbx
jmp fcn.1403315f0
Function at 0x140332090
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1404f4fb8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [rdx]
mov r15d, 2
mov rsi, rdx
mov rbx, rcx
cmp eax, r15d
je 0x140332102
cmp eax, 0x17
jne 0x140332186
mov ecx, dword [rdx + 0x14]
lea r14d, [r15 + 0x1a]
xor eax, eax
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x38], eax
mov eax, reloc.WS2_32.dll_socket
mov word [rsp + 0x20], ax
test ecx, ecx
jne 0x1403320ed
mov ecx, dword [rbx + 0x14]
call fcn.140335030
movups xmm0, xmmword [rsi + 4]
mov word [rsp + 0x22], ax
movups xmmword [rsp + 0x28], xmm0
jmp 0x14033212e
mov ecx, dword [rdx + 0x14]
xor eax, eax
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], r15w
lea r14d, [rax + 0x10]
test ecx, ecx
jne 0x14033211d
mov ecx, dword [rbx + 0x14]
call fcn.140335030
mov word [rsp + 0x22], ax
mov eax, dword [rsi + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rbx + 0x12200]
xor r8d, r8d
mov ecx, dword [rsi]
mov edx, r15d
test rax, rax
je 0x14033214d
mov r9, qword [rbx + 0x12208]
call qword [rax]
jmp 0x140332153
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140332186
mov edx, dword [rsi]
mov r8, rbx
mov rcx, rax
call fcn.1403318c0
test eax, eax
jns 0x1403321ac
mov rax, qword [rbx + 0x12200]
mov rcx, rdi
test rax, rax
jne 0x140332246
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140233ef0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbx + 0x121f0]
test rax, rax
je 0x1403321f5
mov r8, qword [rbx + 0x121f8]
mov edx, r15d
mov rcx, rdi
call rax
mov ebp, eax
test eax, eax
jns 0x1403321f5
mov r8, qword [rbx + 0x12200]
mov rcx, rdi
test r8, r8
je 0x1403321eb
mov rdx, qword [rbx + 0x12208]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebp
jmp 0x14033218b
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x14033218b
mov rax, qword [rbx + 0x12200]
lea rdx, [rsp + 0x20]
mov r8d, r14d
mov rcx, rdi
test rax, rax
je 0x140332218
mov r9, qword [rbx + 0x12208]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14033221e
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140332255
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8cd
cmp eax, 1
jbe 0x140332255
mov rax, qword [rbx + 0x12200]
mov rcx, rdi
test rax, rax
je 0x140332180
mov rdx, qword [rbx + 0x12208]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140332186
mov rax, qword [rbx + 0x121e0]
test rax, rax
je 0x14033227a
mov r8, qword [rbx + 0x121e8]
mov edx, r15d
mov rcx, rdi
call rax
mov ebp, eax
test eax, eax
js 0x1403321cd
mov rax, qword [rbx + 0x121d0]
test rax, rax
je 0x140332299
mov rcx, qword [rbx + 0x121d8]
xor r9d, r9d
mov rdx, rdi
lea r8d, [r9 + 1]
call rax
mov qword [rsi + 0x20], rdi
xor eax, eax
jmp 0x14033218b
Function at 0x140332df0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rsi
push r12
push r13
sub rsp, 0x38
mov r12, r9
mov r13, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x140332e16
cmp r8, 0xffffffffffffffff
je 0x140333049
mov qword [rsp + 0x70], r14
xor r14d, r14d
cmp dword [rcx + 0x98], r14d
jle 0x140333044
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x30], r15
xor r15d, r15d
mov qword [rsp + 0x68], rdi
nop dword [rax]
mov rbx, qword [rbp + 0x90]
add rbx, r15
mov rax, qword [rbx + 0x50]
test rax, rax
je 0x14033301e
mov rcx, qword [rbx + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x14033301e
cmp dword [rbx + 0x88], 0
jne 0x14033301e
test rsi, rsi
je 0x140332ed8
mov rdx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14033301e
mov edx, dword [rsi]
xor eax, eax
test edx, edx
je 0x140332ed2
mov r8, qword [rbx + 0x28]
cmp qword [rsi + rax*8 + 8], r8
je 0x140332ea6
inc eax
cmp eax, edx
jb 0x140332e93
mov rax, qword [rbx + 0x50]
jmp 0x140332ee1
lea ecx, [rdx - 1]
cmp eax, ecx
jae 0x140332ecd
nop dword [rax]
mov edx, eax
lea r8d, [rax + 1]
mov rax, qword [rsi + r8*8 + 8]
mov qword [rsi + rdx*8 + 8], rax
mov eax, r8d
mov edx, dword [rsi]
lea ecx, [rdx - 1]
cmp r8d, ecx
jb 0x140332eb0
lea eax, [rdx - 1]
mov dword [rsi], eax
mov rax, qword [rbx + 0x50]
jmp 0x140332ee1
cmp rcx, r13
jne 0x14033301e
xor ecx, ecx
test rax, rax
je 0x140332efc
nop dword [rax + rax]
mov rax, qword [rax + 0x20]
inc rcx
test rax, rax
jne 0x140332ef0
shl rcx, 4
call qword [0x1404fe858]
mov rdx, qword [rbx + 0x50]
mov rdi, rax
test rax, rax
je 0x140332fa6
xor r8d, r8d
test rdx, rdx
je 0x140332f3f
mov r9, rax
mov rcx, qword [rdx]
inc r8
mov qword [r9], rcx
lea r9, [r9 + 0x10]
mov rax, qword [rdx + 8]
mov qword [r9 - 8], rax
mov rdx, qword [rdx + 0x20]
test rdx, rdx
jne 0x140332f21
mov rax, qword [rbp + 0x12200]
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
test rax, rax
je 0x140332f5e
mov r9, qword [rbp + 0x12208]
call qword [rax + 0x20]
jmp 0x140332f63
call fcn.140335c60
mov rcx, rdi
mov rbx, rax
call qword [0x1404fe868]
test rbx, rbx
jns 0x140332fa1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x14033301e
cmp eax, 0x2733
je 0x14033301e
mov r8, r12
mov edx, r14d
mov rcx, rbp
call fcn.140331bd0
jmp 0x14033301e
mov r8, rbx
jmp 0x140333013
mov rax, qword [rbp + 0x12200]
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
mov rcx, qword [rbx + 0x28]
test rax, rax
je 0x140332fde
mov r9, qword [rbp + 0x12208]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], r8
mov r8d, 1
call qword [rax + 0x20]
jmp 0x140332fe9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cdqe
test rax, rax
jns 0x140333010
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x14033301e
cmp eax, 0x2733
je 0x14033301e
mov r8, r12
mov edx, r14d
mov rcx, rbp
call fcn.140331bd0
jmp 0x14033301e
mov r8, rax
mov edx, r14d
mov rcx, rbp
call fcn.1403314b0
inc r14d
add r15, 0x90
cmp r14d, dword [rbp + 0x98]
jl 0x140332e40
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r14, qword [rsp + 0x70]
add rsp, 0x38
pop r13
pop r12
pop rsi
pop rbp
ret
Function at 0x1403345c0
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x20
mov rax, r8
mov r9, rdx
cmp ecx, 2
je 0x1403345fd
cmp ecx, 0x17
jne 0x1403345e7
lea r8d, [rcx - 7]
mov rdx, rax
mov rcx, r9
call fcn.140334b60
jmp 0x14033460e
mov ecx, 0x273f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov r8d, 4
mov rdx, rax
mov rcx, r9
call fcn.1403347f0
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140334628
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140334628
xor eax, eax
add rsp, 0x20
pop rbx
ret
sar ebx, 0x1f
and ebx, 0xfffffffe
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r15
sub rsp, 0x20
xor edi, edi
mov r15, rcx
test r8d, r8d
jle 0x140335d54
lea rbx, [rdx + 8]
movsxd rsi, r8d
mov rdx, rbx
mov r8d, edi
nop dword [rax + rax]
mov rcx, qword [rdx]
mov eax, 0x7fffffff
sub rax, rdi
cmp rcx, rax
ja 0x140335d54
add rdi, rcx
inc r8
add rdx, 0x10
cmp r8, rsi
jl 0x140335c90
test rdi, rdi
je 0x140335d44
mov rcx, rdi
mov qword [rsp + 0x48], r14
call qword [0x1404fe858]
mov r14, rax
test rax, rax
jne 0x140335cf2
lea ecx, [rax + 0xc]
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [r14 - 1]
mov r14, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
mov qword [rsp + 0x40], rbp
mov rbp, r14
nop word [rax + rax]
mov r8, qword [rbx]
mov rcx, rbp
mov rdx, qword [rbx - 8]
call sub.VCRUNTIME140.dll_memcpy
add rbp, qword [rbx]
lea rbx, [rbx + 0x10]
sub rsi, 1
jne 0x140335d00
xor r9d, r9d
mov r8d, edi
mov rdx, r14
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
mov rcx, r14
movsxd rbx, eax
call qword [0x1404fe868]
mov rbp, qword [rsp + 0x40]
mov rax, rbx
jmp 0x140335cdf
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
mov ecx, 0x2726
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x50]
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret

Function at 0x1403361e0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov r10, rdx
mov r9, rcx
shr r10, 2
test r10, r10
je 0x14033621c
nop
imul eax, dword [r9], 0xcc9e2d51
add r9, 4
rol eax, 0xf
imul ecx, eax, 0x1b873593
xor r8d, ecx
rol r8d, 0xd
add r8d, 0xfaddaf14
lea r8d, [r8 + r8*4]
sub r10, 1
jne 0x1403361f0
mov rax, rdx
xor ecx, ecx
and eax, 3
sub rax, 1
je 0x140336248
sub rax, 1
je 0x14033623e
cmp rax, 1
jne 0x140336260
movzx ecx, byte [r9 + 2]
shl ecx, 0x10
movzx eax, byte [r9 + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [r9]
xor eax, ecx
imul ecx, eax, 0xcc9e2d51
rol ecx, 0xf
imul eax, ecx, 0x1b873593
xor r8d, eax
xor r8d, edx
mov eax, r8d
shr eax, 0x10
xor eax, r8d
imul ecx, eax, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
ret
Function at 0x14000cba0
Capabilities:
Get hostname

Disassembly:
sub rsp, 0xc8
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x3c]
xor edx, edx
mov r8d, 0x10
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x4c], 0x10
lea rax, [rsp + 0x3c]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 0x10
lea rcx, [rsp + 0x3c]
lea rdx, [rsp + 0x4c]
call sub.KERNEL32.dll_GetComputerNameA
cmp eax, 0
jne 0x14000cc0f
mov rax, qword [rsp + 0x28]
movabs rcx, 0x8000000000000000
mov qword [rax], rcx
jmp 0x14000cc94
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
lea rcx, [rsp + 0x3c]
lea r9, str.C:Usersuser.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinutil_0.1.1_srclib.rs
call fcn.14000a7d0
mov rcx, rax
call fcn.14000a810
mov rcx, rax
call fcn.14000a550
mov qword [rsp + 0x20], rax
mov r8, rdx
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.14000a580
lea rcx, [rsp + 0x78]
lea rdx, [rsp + 0x50]
call fcn.14000b740
movabs rdx, 0x8000000000000000
mov eax, 1
xor ecx, ecx
cmp qword [rsp + 0x78], rdx
cmove rax, rcx
cmp rax, 0
je 0x14000cca1
jmp 0x14000ccfb
mov rax, qword [rsp + 0x30]
add rsp, 0xc8
ret
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0xa0], rcx
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0xa8], rcx
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0xb0], rcx
mov rcx, qword [rsp + 0xa0]
mov qword [rax], rcx
mov rcx, qword [rsp + 0xa8]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 0x10], rcx
jmp 0x14000cd0d
mov rax, qword [rsp + 0x28]
movabs rcx, 0x8000000000000000
mov qword [rax], rcx
movabs rdx, 0x8000000000000000
mov eax, 1
xor ecx, ecx
cmp qword [rsp + 0x78], rdx
cmove rax, rcx
cmp rax, 0
je 0x14000cc94
lea rcx, [rsp + 0x78]
call fcn.14000a3c0
jmp 0x14000cc94