joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005164
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x70], 0
jg 0x140005186
xor eax, eax
jmp 0x14000532f
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x1400051ac
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x14000532f
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x140005245
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.1400020c0
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.140003f78
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x14000531f
mov rcx, qword [rsp + 0x60]
call fcn.140003944
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x1400052e6
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x1400052e4
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x14000532f
jmp 0x14000526b
cmp qword [rsp + 0x20], 0
jbe 0x14000531f
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x58
ret
Function at 0x140005334
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x14000536d
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14000545b
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x140005403
cmp qword [rsp + 0x20], 0
jle 0x140005403
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x1400053ad
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140003f78
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x14000544b
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x14000544b
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x140005f2c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, r8
call fcn.1400012d0
xor r10d, r10d
test eax, eax
js 0x1400017bd
mov eax, dword [rbx + 0xf0]
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x140001616
lea rdx, [rbx + 8]
lea rdx, [rdx + r9*4]
lea r8, [rbx + 8]
mov ecx, dword [r8 - 8]
add r10, 4
mov eax, dword [rdx - 8]
sub r9, 4
mov dword [r8 - 8], eax
mov eax, dword [rdx - 4]
mov dword [rdx - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 4], eax
mov eax, dword [rdx]
mov dword [rdx - 4], ecx
mov ecx, dword [r8]
mov dword [r8], eax
lea r8, [r8 + 0x10]
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
lea rdx, [rdx - 0x10]
mov ecx, dword [r8 - 0xc]
mov dword [r8 - 0xc], eax
mov dword [rdx + 0x14], ecx
cmp r10, r9
jl 0x1400015cd
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x1400017bb
lea r10, [rbx + 2]
lea rdi, [0x140000000]
lea r10, [r10 + 0x10]
inc r11d
mov r9d, dword [r10 - 2]
mov eax, r9d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0xd2b90]
movzx eax, byte [r10 - 1]
mov r8d, dword [rdi + rdx*4 + 0xd2790]
movzx ecx, byte [rdi + rax*4 + 0xd2b90]
movzx eax, byte [r10]
xor r8d, dword [rdi + rcx*4 + 0xd1f90]
movzx ecx, byte [rdi + rax*4 + 0xd2b90]
movzx eax, r9b
mov r9d, dword [r10 + 2]
xor r8d, dword [rdi + rcx*4 + 0xd2390]
movzx ecx, byte [rdi + rax*4 + 0xd2b90]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0xd1b90]
movzx edx, byte [rdi + rax*4 + 0xd2b90]
movzx eax, byte [r10 + 3]
mov dword [r10 - 2], r8d
mov r8d, dword [rdi + rdx*4 + 0xd2790]
movzx ecx, byte [rdi + rax*4 + 0xd2b90]
movzx eax, byte [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0xd1f90]
movzx ecx, byte [rdi + rax*4 + 0xd2b90]
movzx eax, r9b
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rcx*4 + 0xd2390]
movzx ecx, byte [rdi + rax*4 + 0xd2b90]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0xd1b90]
movzx edx, byte [rdi + rax*4 + 0xd2b90]
movzx eax, byte [r10 + 7]
mov dword [r10 + 2], r8d
mov r8d, dword [rdi + rdx*4 + 0xd2790]
movzx ecx, byte [rdi + rax*4 + 0xd2b90]
movzx eax, byte [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0xd1f90]
movzx ecx, byte [rdi + rax*4 + 0xd2b90]
movzx eax, r9b
mov r9d, dword [r10 + 0xa]
xor r8d, dword [rdi + rcx*4 + 0xd2390]
movzx ecx, byte [rdi + rax*4 + 0xd2b90]
movzx eax, byte [r10 + 0xb]
xor r8d, dword [rdi + rcx*4 + 0xd1b90]
movzx edx, byte [rdi + rax*4 + 0xd2b90]
movzx eax, byte [r10 + 0xc]
mov dword [r10 + 6], r8d
mov r8d, dword [rdi + rdx*4 + 0xd1f90]
movzx ecx, byte [rdi + rax*4 + 0xd2b90]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0xd2390]
movzx ecx, byte [rdi + rax*4 + 0xd2b90]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0xd2790]
movzx ecx, byte [rdi + rax*4 + 0xd2b90]
xor r8d, dword [rdi + rcx*4 + 0xd1b90]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x140001634
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000205c
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x5c]
call fcn.1400916b0
mov eax, 1
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
add rsp, 0x20
pop rbx
ret
Function at 0x140006b98
Capabilities:
Check if file exists
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400f2078]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rsi, rcx
mov word [rbp - 6], 0x6957
mov word [rbp + 0x14], 0x736e
mov dword [rbp + 0x19], 0x6f475c6c
mov dword [rbp + 0xd], 0x5c6e6f69
mov dword [rbp + 0x22], 0x6f726843
mov word [rbp], 0x5c73
mov dword [rbp + 7], 0x6556746e
mov dword [rbp - 0xd], 0x6f736f72
mov dword [rbp - 0x15], 0x45524157
mov dword [rbp + 3], 0x65727275
mov dword [rbp + 0x1e], 0x20656c67
mov dword [rbp - 0x11], 0x63694d5c
mov word [rbp + 0x11], 0x6e55
mov byte [rbp + 0x13], 0x69
mov word [rbp - 9], 0x7466
mov byte [rbp + 2], 0x43
mov word [rbp + 0x17], 0x6c61
mov word [rbp + 0x26], 0x656d
mov dword [rbp - 0x19], 0x54464f53
mov word [rbp + 0xb], 0x7372
mov word [rbp - 3], 0x6f64
mov byte [rbp + 0x28], 0
mov byte [rbp + 0x1d], reloc.WS2_32.dll_WSAGetLastError
mov byte [rbp - 7], 0x5c
mov byte [rbp - 1], 0x77
mov byte [rbp - 4], WSASetLastError
mov byte [rbp + 0x16], reloc.WS2_32.dll_WSACleanup
mov word [rbp - 0x1b], WSASetLastError
mov dword [rbp - 0x29], 0x74736e49
mov word [rbp - 0x22], 0x6f4c
mov word [rbp - 0x25], 0x6c61
mov dword [rbp - 0x20], 0x69746163
mov byte [rbp - 0x1c], reloc.WS2_32.dll_WSAGetLastError
mov byte [rbp - 0x23], WSAGetLastError
mov word [rbp - 0x33], 0x652e
mov word [rbp - 0x36], 0x6d6f
mov word [rbp - 0x39], 0x6863
mov byte [rbp - 0x34], 0x65
mov byte [rbp - 0x37], WSACleanup
mov word [rbp - 0x31], 0x6578
mov byte [rbp - 0x2f], 0
lea rax, [rbp - 0x51]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x51]
call fcn.14000c518
mov rbx, rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x59]
call fcn.14000c518
nop
mov r9, rdi
mov r8, rbx
mov rdx, rax
call fcn.1400bc2e4
test al, al
jne 0x140006d2a
lea rax, [rbp - 0x59]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x59]
call fcn.14000c518
mov rbx, rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x51]
call fcn.14000c518
nop
mov r9, rdi
mov r8, rbx
mov rdx, rax
call fcn.1400bc4e8
test al, al
je 0x140006d52
lea rdx, [0x1400d322c]
jmp 0x140006d31
lea rdx, [0x1400d3234]
lea r9, [rbp - 0x39]
mov r8, qword [rdi]
mov rcx, rdi
call fcn.14000be60
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
test al, al
jne 0x140006d5e
mov rcx, rdi
call fcn.1400bc798
test al, al
je 0x140006d63
mov byte [rsi], 1
mov al, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14008e520
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400083a4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1400f2078]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
xor r14d, r14d
mov rsi, rdx
lea ecx, [r14 + 3]
call fcn.140012940
call fcn.140012cb8
mov r8, qword [rsi]
mov edx, 0x2712
mov rcx, rax
mov rdi, rax
call fcn.140013afc
lea r8, [0x140008338]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.140013afc
mov r8, rbx
mov edx, 0x2711
mov rcx, rdi
call fcn.140013afc
lea r8, [rbp - 0x20]
mov dword [rbp - 0x12], 0x302e31
mov edx, 0x2722
mov dword [rbp - 0x1c], 0x2d6c7275
mov rcx, rdi
mov dword [rbp - 0x20], 0x6362696c
mov dword [rbp - 0x18], 0x6e656761
mov word [rbp - 0x14], 0x2f74
call fcn.140013afc
mov rcx, rdi
call fcn.140012d14
test eax, eax
movzx ebx, r14b
lea ecx, [r14 + 1]
cmove ebx, ecx
mov rcx, rdi
call fcn.140012d34
mov rdx, qword [rsi]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140008483
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov al, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14008e520
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x14000a96c
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400f2078]
xor rax, rsp
mov qword [rsp + 0x50], rax
and qword [rsp + 0x30], 0
call qword [0x1400f5010]
lea r8, [rsp + 0x30]
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000aa03
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x14000a9f8
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
and qword [rsp + 0x28], 0
mov r9d, reloc.WS2_32.dll_recv
and qword [rsp + 0x20], 0
xor edx, edx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14008e520
add rsp, 0x68
ret

Function at 0x14000e200
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
xor r9d, r9d
cmp byte [rcx + 8], r9b
je 0x14000e233
cmp dword [rcx + 0x3d0], r9d
jle 0x14000e22e
sub r8, rdx
mov al, byte [r8 + rdx]
inc r9d
xor byte [rdx], al
inc rdx
cmp r9d, dword [rcx + 0x3d0]
jl 0x14000e219
add rsp, 0x58
ret
lea rax, vtable.std::exception.0
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x38]
xor eax, eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rax, str.Object_not_Initialized
mov qword [rsp + 0x20], rax
call fcn.140091124
lea rdx, [0x1400e39e8]
lea rcx, [rsp + 0x30]
call fcn.140091850
int3
Function at 0x140011794
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x1400f2078]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
and dword [rsp + 0x40], 0
call fcn.14000cb58
mov rcx, rax
test rax, rax
jne 0x1400117e9
mov ecx, 0x80004005
call fcn.14000c8e8
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x40], 1
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x60]
call fcn.1400916b0
mov dword [rsp + 0x30], 0x200
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1400da550]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400118ee
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, [0x1400da538]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400118d6
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftCryptography
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400118ee
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.MachineGuid
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400118ee
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140012280
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14008e520
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rbp
ret
Function at 0x140011cf0
Capabilities:
Get common file path
Get disk information

Disassembly:
push rbp
sub rsp, 0x6b0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rbp + 0x688], rbx
mov qword [rbp + 0x690], rsi
mov qword [rbp + 0x698], rdi
mov rax, qword [0x1400f2078]
xor rax, rbp
mov qword [rbp + 0x660], rax
mov rdi, rcx
xor esi, esi
mov dword [rbp + 0x18], esi
lea rdx, [0x1400d2fb7]
lea rcx, [rbp + 0x10]
call fcn.14000c518
nop
mov ebx, 0x20a
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x450]
call fcn.1400916b0
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x240]
call fcn.1400916b0
mov dword [rbp], esi
mov dword [rbp + 8], esi
mov dword [rbp + 4], esi
xor edx, edx
lea r8d, [rbx - 2]
lea rcx, [rbp + 0x30]
call fcn.1400916b0
xor r9d, r9d
lea r8d, [rsi + 0x25]
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov word [rbp + 0x36], si
mov r8d, 0x105
mov dword [rsp + 0x38], r8d
lea rax, [rbp + 0x240]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
lea rdx, [rbp + 0x450]
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x140011df1
mov r8d, dword [rbp]
lea rdx, [0x1400d6ccc]
lea rcx, [rbp + 0x10]
call fcn.14000be60
mov r8, qword [rbp + 0x10]
test r8, r8
je 0x140011e68
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [r8 + rcx], sil
jne 0x140011dfe
inc ecx
cmp ecx, 0x3fffffff
jg 0x140011e68
movsxd rax, ecx
add rax, rax
lea rdx, [rax + 0xf]
cmp rdx, rax
ja 0x140011e2a
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.14008f110
sub rsp, rdx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x140011e68
mov word [rbx], si
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb rdx, rdx
and rdx, rbx
jmp 0x140011e6b
mov rdx, rsi
mov rcx, rdi
call fcn.140012420
nop
mov rdx, qword [rbp + 0x10]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140011e93
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov rax, rdi
mov rcx, qword [rbp + 0x660]
xor rcx, rbp
call fcn.14008e520
mov rbx, qword [rbp + 0x688]
mov rsi, qword [rbp + 0x690]
mov rdi, qword [rbp + 0x698]
lea rsp, [rbp + 0x670]
pop rbp
ret
Function at 0x1400133d8
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1400f2078]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov eax, 0x202
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x30]
movzx ecx, word [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14001341d
mov eax, 2
jmp 0x14001348c
movzx eax, word [rsp + 0x30]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x20]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x140013467
movzx eax, word [rsp + 0x30]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x20]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x140013474
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x14001348c
call fcn.140024e94
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14001348a
mov eax, dword [rsp + 0x24]
jmp 0x14001348c
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14008e520
add rsp, 0x1e8
ret
Function at 0x140033fe4
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x140034066
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x2733
jne 0x140034041
mov dword [rsp + 0x20], 1
jmp 0x140034049
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14003405f
mov eax, 0x51
jmp 0x140034075
mov eax, gethostname
jmp 0x140034075
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x48
ret

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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx + rax*8 + 0x238]
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.140034918
xor r9d, r9d
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov dword [rax], 0
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14003426a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x2733
jne 0x140034228
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov dword [rax], 0x51
jmp 0x14003426a
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.140052500
mov r8, rax
lea rdx, str.Send_failure:__s
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call fcn.1400339c8
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x4c7c], ecx
mov rax, qword [rsp + 0x70]
mov dword [rax], gethostname
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x140034918
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
movsxd rax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx + rax*8 + 0x238]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x68]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0x280]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 8]
sub rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x3e8]
mov eax, dword [rax + 0x7c]
and eax, 3
test eax, eax
je 0x140034acc
movsxd rax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
lea rdx, [0x140034080]
cmp qword [rcx + rax*8 + 0x260], rdx
jne 0x140034acc
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x1400349c1
cmp qword [rsp + 0x30], 0
je 0x140034acc
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x38]
call fcn.140032808
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140034acc
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x140034acc
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x140034a5f
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov eax, dword [rax + 0x6f0]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 8]
call qword [str.__t_]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x140034abf
xor eax, eax
test eax, eax
jne 0x140034a6a
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx + 0x10]
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jle 0x140034abd
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
add rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
jmp 0x140034acc
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
add rsp, 0x58
ret