joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026ca0
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov edi, r8d
xor eax, eax
cmp r8d, 5
ja 0x140026ead
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x68]
call fcn.1400e72d0
nop
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 2
xor r9d, r9d
lea r8, str.SoftwareMcAfee
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.1400e73e0
test eax, eax
jne 0x140026d72
lea rcx, [rsp + 0x68]
call fcn.1400e7370
mov dword [rsp + 0x28], 2
lea rcx, [0x1403484fc]
mov qword [rsp + 0x20], rcx
lea r9d, [rbx + 6]
xor r8d, r8d
lea rdx, str.SymbolicLinkValue
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140026ea0
lea rcx, [rsp + 0x68]
call fcn.1400e7420
jmp 0x140026e9d
cmp eax, 0xb7
jne 0x140026ea0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 8
xor r9d, r9d
lea r8, str.SoftwareMcAfee
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.1400e73e0
test eax, eax
jne 0x140026ea0
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x64], ebx
lea rcx, [rsp + 0x68]
call fcn.1400e7370
mov rcx, rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140026ea0
cmp dword [rsp + 0x60], ebx
ja 0x140026e63
cmp dword [rsp + 0x64], 1
ja 0x140026e63
lea rcx, [rsp + 0x68]
call fcn.1400e7370
mov rsi, rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140026ea0
lea rdx, str.NtDeleteKey
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140026ea0
mov rcx, rsi
call rax
test eax, eax
je 0x140026e81
jmp 0x140026ea0
lea rcx, [rsp + 0x68]
call fcn.1400e7370
mov rcx, rax
lea rdx, [case.0x1400bf494.25]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x140026ea0
lea rcx, [rsp + 0x68]
call fcn.1400e73d0
lea r8d, [rdi + 1]
mov dl, 1
lea rcx, str.SoftwareMcAfee
call fcn.140026ca0
mov rbx, rax
lea rcx, [rsp + 0x68]
call fcn.1400e7310
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140296f70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400272e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140027355
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140027355
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140027345
nop
cmp rbx, rcx
jae 0x140027355
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140027330
cmp rbx, rcx
jae 0x140027355
cmp word [rbx], 0
je 0x140027355
mov rax, rbx
jmp 0x140027357
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002b3e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov dword [rsp + 0x50], ebp
mov ecx, reloc.OLEAUT32.dll_VariantTimeToSystemTime
call fcn.140296fc8
mov rdi, rax
mov qword [rsp + 0x58], rax
xor edx, edx
mov r8d, reloc.OLEAUT32.dll_VariantTimeToSystemTime
mov rcx, rax
call fcn.1402b60e0
mov ecx, 0x90
call fcn.140296fc8
mov rbx, rax
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
movups xmmword [rax + 0x80], xmm0
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rsi, [0x1403e3070]
mov eax, dword [rdx + rcx]
cmp dword [0x1403e3068], eax
jle 0x14002b4cc
lea rcx, [0x1403e3068]
call fcn.14029718c
cmp dword [0x1403e3068], 0xffffffff
jne 0x14002b4cc
mov qword [0x1403e3080], rbp
mov qword [0x1403e3088], 7
mov word [0x1403e3070], bp
lea r8d, [rbp + 3]
lea rdx, [0x140348e48]
mov rcx, rsi
call fcn.14002b640
lea rcx, [0x1403072d0]
call fcn.1402974d4
nop
lea rcx, [0x1403e3068]
call fcn.14029712c
mov rcx, rbx
call fcn.14002a810
mov qword [rbx + 0x68], rbp
mov dword [rbx + 0x70], ebp
lea rax, vtable.logstreambuf.0
mov qword [rbx], rax
mov qword [rbx + 0x78], rbp
mov qword [rbx + 0x80], rbp
mov qword [rbx + 0x88], rbp
mov r8d, getprotobyname
lea rdx, [0x1403e3038]
lea rcx, [0x1403e3038]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp qword [0x1403e3088], 8
cmovae rsi, qword [0x1403e3070]
mov dword [rsp + 0x20], ebp
xor r9d, r9d
mov r8, qword [0x1403e3040]
mov rdx, rsi
xor ecx, ecx
call fcn.1400de010
mov rcx, qword [rax]
mov qword [rbx + 0x78], rcx
mov dword [rsp + 0x20], ebp
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
call fcn.1402b5f48
mov qword [rbx + 0x80], rax
lea rax, [0x140348d80]
mov qword [rdi], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rdi + 0x58], rax
mov dword [rsp + 0x50], 1
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rcx + rdi - 4], edx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
xor r8d, r8d
mov rdx, rbx
call fcn.14002a490
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea rax, vtable.logstream.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x58]
mov dword [rcx + rdi - 4], edx
mov dword [rdi + 8], 1
mov dword [rdi + 0x10], ebp
mov qword [rdi + 0x18], rbp
mov qword [rdi + 0x20], rbp
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rbx + 0x88], rdi
mov rax, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140031a50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x28], 0
mov rbx, rdx
mov rdi, rcx
jne 0x140031b15
add rcx, 8
cmp rcx, rdx
je 0x140031a87
cmp qword [rdx + 0x18], 8
jb 0x140031a7e
mov rdx, qword [rdx]
mov r8, qword [rbx + 0x10]
call fcn.14002b640
lea rax, [rdi + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140031cc0]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call fcn.1402c7870
mov qword [rdi + 0x28], rax
test rax, rax
jne 0x140031ac5
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
call fcn.1400de610
test eax, eax
je 0x140031b15
cmp qword [rbx + 0x18], 8
jb 0x140031add
mov rbx, qword [rbx]
mov r9d, 0x1b
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, str.CThread::Start
lea rax, str.Thread_Triggered:_s
lea ecx, [r9 - 0x1a]
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PartnerCustomSharedSrcPCSharedThread.cpp
call fcn.1400308b0
mov rbx, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140032130
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, r9
lea rax, [rsp + 0x38]
mov rsi, r8
mov qword [rsp + 0x20], rax
mov r15, rdx
movzx ebp, cl
mov r9d, 0x20219
lea rdx, str.SoftwareMcAfeeSystemCore
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov ebx, 3
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r12d, r12d
test eax, eax
mov r14d, r12d
cmove r14, qword [rsp + 0x38]
test r14, r14
je 0x1400322a0
lea eax, [rdi + rdi]
xor r8d, r8d
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rsi
mov rcx, r14
lea rdx, str.szInstallDir32
test bpl, bpl
jne 0x1400321d1
lea rdx, str.szInstallDir64
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140032297
test rsi, rsi
je 0x140032297
lea rax, [rdi - 1]
cmp rax, 0x7ffffffe
ja 0x14003228a
mov rcx, rdi
mov rax, rsi
cmp word [rax], r12w
je 0x140032210
add rax, 2
sub rcx, 1
jne 0x140032200
mov rax, rdi
sub rax, rcx
test rcx, rcx
cmove rax, r12
je 0x14003228a
mov rdx, rdi
lea rcx, [rsi + rax*2]
sub rdx, rax
je 0x140032262
sub rax, rdi
lea r9, [0x1403484fc]
add rax, 0x7ffffffe
add rax, rdx
sub r9, rcx
test rax, rax
je 0x140032262
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x140032262
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140032241
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r12w
je 0x14003228a
test r15, r15
je 0x140032297
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call fcn.14003b8b0
test eax, eax
jns 0x140032297
mov ebx, reloc.WS2_32.dll_WSAGetLastError
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x68]
test ebx, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
sete al
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x1400322d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
xor edi, edi
mov qword [rbp + 0x27], rdi
xor r14d, r14d
mov dword [rbp + 0x2f], r14d
cmp qword [rcx], r14
je 0x140032476
mov rax, qword [rcx + 8]
dec rax
cmp rax, 0x7fff
ja 0x140032476
mov qword [rcx + 0x18], r14
xor ebx, ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r15d, eax
test eax, eax
je 0x14003238e
mov eax, 2
mul r15
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1402974ec
mov rdi, rax
mov rdx, rax
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
je 0x140032377
mov rcx, rdi
jmp 0x140032398
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.140296f94
xor edi, edi
xor r14d, r14d
jmp 0x140032396
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor ecx, ecx
test rcx, rcx
je 0x14003247b
mov ebx, select
mov ecx, r14d
mov r14, qword [rsi + 8]
add r14, 2
add r14, rcx
lea rcx, [r14 + r14]
call fcn.1402c79a8
mov rcx, rax
mov qword [rsi + 0x18], rax
test rax, rax
je 0x14003247b
mov rax, qword [rsi]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, str._ls_ls
mov rdx, r14
call fcn.14003b790
test eax, eax
js 0x14003246f
mov rax, qword [rsi + 0x18]
mov byte [rbp - 0x69], 0
mov dword [rbp - 0x65], 0
mov qword [rbp + 0x17], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x61], xmm0
movups xmmword [rbp - 0x51], xmm0
movups xmmword [rbp - 0x41], xmm0
movups xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], rax
xor edx, edx
lea rcx, [rbp - 0x69]
call fcn.14003b170
mov ebx, eax
cmp byte [rbp - 0x69], 0
je 0x14003247b
mov dword [rbp + 0x27], 0xaac56b
mov dword [rbp + 0x2b], 0x11d0cd44
mov dword [rbp + 0x2f], 0xc000c28c
mov dword [rbp + 0x33], 0xee95c24f
mov dword [rbp - 0x11], 2
lea r8, [rbp - 0x41]
lea rdx, [rbp + 0x27]
xor ecx, ecx
call qword [sym.imp.WINTRUST.dll_WinVerifyTrust]
jmp 0x14003247b
mov ebx, reloc.WS2_32.dll_WSAGetLastError
jmp 0x14003247b
mov ebx, 0x57
test rdi, rdi
je 0x140032488
mov rcx, rdi
call fcn.140296f94
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140296f70
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140032c50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
sub rsp, 0x20
mov r10d, r8d
mov r11, rdx
mov rbx, rcx
test rdx, rdx
je 0x140032dcf
cmp r8d, 1
jl 0x140032dcf
lea r9, [rcx + 1]
mov qword [rsp + 0x30], rdi
mov rcx, r9
xor eax, eax
mov byte [rcx], al
lea rcx, [rcx + 1]
inc eax
cmp eax, 0x100
jl 0x140032c80
mov word [rbx + 0x201], 0
mov r8, r9
mov edi, 0x100
movzx eax, byte [rbx + 0x201]
xor edx, edx
mov qword [rbx + 0x208], r8
movzx ecx, byte [rax + r11]
add cl, byte [r8]
add byte [rbx + 0x202], cl
lea rcx, [rbx + 1]
movzx eax, byte [rbx + 0x202]
add rcx, rax
mov qword [rbx + 0x210], rcx
movzx eax, byte [r8]
mov byte [rbx + 0x218], al
movzx eax, byte [rcx]
mov byte [r8], al
inc r8
movzx eax, byte [rbx + 0x218]
mov rcx, qword [rbx + 0x210]
mov byte [rcx], al
movzx eax, byte [rbx + 0x201]
inc eax
div r10d
mov byte [rbx + 0x201], dl
sub rdi, 1
jne 0x140032ca0
mov rdi, qword [rsp + 0x30]
lea rcx, [rbx + 0x101]
test rcx, rcx
je 0x140032dab
test r9, r9
je 0x140032d9e
mov eax, 2
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [r9]
lea r9, [r9 + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [r9 - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [r9 - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [r9 - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [r9 - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [r9 - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [r9 - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [r9 - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x140032d31
mov word [rbx + 0x201], ax
mov al, 1
mov byte [rbx], 1
add rsp, 0x20
pop rbx
ret
xor edx, edx
mov r8d, 0x100
call fcn.1402b60e0
call fcn.1402be600
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1402ba3cc
mov al, 1
mov word [rbx + 0x201], 0
mov byte [rbx], 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140033d10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x80], rbx
mov rax, qword [0x1403ceac0]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov r12, r9
mov rsi, r8
mov r14, rdx
mov r15, rcx
xor ebx, ebx
mov dword [rbp], ebx
mov r13d, ebx
mov dword [rbp + 8], ebx
mov rdi, qword [rbp + 0x90]
test rdi, rdi
je 0x140033d72
mov r13d, dword [rdi]
mov dword [rbp + 8], r13d
mov eax, dword [rcx + 8]
test eax, eax
jne 0x140033f5a
mov eax, dword [rbp + 0x98]
test al, 1
jne 0x140033dbc
cmp dword [rbp + 0xa0], ebx
je 0x140033d9e
mov qword [rsp + 0x20], rdi
call fcn.140034870
jmp 0x140033f5a
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r9
mov r9, rsi
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x140033f5a
test rdi, rdi
jne 0x140033dce
test rsi, rsi
jne 0x140033dce
lea eax, [rdi + 0x57]
jmp 0x140033f5a
lea rax, [rbp + 4]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
xor r8d, r8d
call fcn.140034630
test rsi, rsi
je 0x140033ded
mov ecx, dword [rbp + 4]
mov dword [rsi], ecx
test eax, eax
jne 0x140033f5a
test rdi, rdi
je 0x140033f5a
mov qword [rbp + 0x10], rbx
mov esi, dword [rbp]
lea rcx, [rsi + 0x10]
mov rdx, rbx
cmp rcx, rsi
cmova rdx, rcx
test rdx, rdx
je 0x140033e80
cmp rdx, 0x400
ja 0x140033e5e
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x140033e34
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140297960
sub rsp, rax
lea rbx, [rsp + 0x30]
mov qword [rbp + 0x18], rbx
test rbx, rbx
je 0x140033e80
mov dword [rbx], 0xcccc
add rbx, 0x10
mov qword [rbp + 0x18], rbx
jmp 0x140033e80
mov rcx, rdx
call fcn.1402c79a8
mov rbx, rax
mov qword [rbp + 0x20], rax
test rax, rax
je 0x140033e80
mov dword [rax], 0xdddd
add rbx, 0x10
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x10], rbx
jmp 0x140033eac
test rbx, rbx
jne 0x140033eb9
lea eax, [rbx + 0xe]
jmp 0x140033f5a
mov r8d, esi
xor edx, edx
mov rcx, rbx
call fcn.1402b60e0
lea rax, [rbp + 4]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
mov r8, rbx
mov rdx, r14
mov rcx, r15
call fcn.140034630
mov r14d, eax
test eax, eax
jne 0x140033f46
cmp dword [rbp + 0xa0], eax
je 0x140033f18
mov edx, dword [rbp + 4]
cmp edx, 1
je 0x140033efd
cmp edx, 7
jne 0x140033f18
mov dword [rdi], r13d
mov qword [rsp + 0x20], rdi
mov r9, r12
mov r8, rbx
mov rcx, r15
call fcn.140034510
mov r14d, eax
jmp 0x140033f46
test r12, r12
je 0x140033f41
mov eax, dword [rdi]
mov esi, dword [rbp]
cmp esi, eax
jbe 0x140033f2e
mov r14d, 0xea
jmp 0x140033f44
mov r9, rsi
mov rdx, rax
mov r8, rbx
mov rcx, r12
call fcn.14003b6e0
jmp 0x140033f44
mov esi, dword [rbp]
mov dword [rdi], esi
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x140033f57
call fcn.1402ba464
mov eax, r14d
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.140296f70
mov rbx, qword [rbp + 0x80]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140034630
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push r12
push r14
push r15
sub rsp, 0x68
lea rbp, [rsp + 0x30]
mov rax, qword [0x1403ceac0]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov r15, rdx
mov r12, rcx
mov r14, qword [rbp + 0x90]
test r14, r14
je 0x14003467d
mov dword [r14], 0
mov dword [rbp], 0
mov dword [rbp + 4], 0x1f4
mov qword [rbp + 8], 0
mov eax, dword [rsp]
mov eax, 0x210
sub rsp, rax
lea rbx, [rsp + 0x30]
mov eax, dword [rbx]
mov qword [rbp + 0x10], rbx
test rbx, rbx
je 0x1400346bc
mov dword [rbx], 0xcccc
add rbx, 0x10
mov qword [rbp + 0x10], rbx
mov qword [rbp + 8], rbx
jmp 0x1400346da
test rbx, rbx
je 0x140034848
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp eax, 0xea
jne 0x1400347f3
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x140034723
call fcn.1402ba464
mov qword [rbp + 8], 0
mov eax, dword [rbp + 4]
lea rcx, [rax + 0x10]
xor edx, edx
cmp rcx, rax
cmova rdx, rcx
test rdx, rdx
je 0x1400347aa
cmp rdx, 0x400
ja 0x140034786
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x14003475c
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140297960
sub rsp, rax
lea rbx, [rsp + 0x30]
mov qword [rbp + 0x18], rbx
test rbx, rbx
je 0x1400347ac
mov dword [rbx], 0xcccc
add rbx, 0x10
mov qword [rbp + 0x18], rbx
jmp 0x1400347ac
mov rcx, rdx
call fcn.1402c79a8
mov rbx, rax
mov qword [rbp + 0x20], rax
test rax, rax
je 0x1400347ac
mov dword [rax], 0xdddd
add rbx, 0x10
mov qword [rbp + 0x20], rbx
jmp 0x1400347ac
xor ebx, ebx
mov qword [rbp + 8], rbx
jmp 0x1400347ca
test rbx, rbx
je 0x140034848
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x140034833
cmp dword [rbp], 3
je 0x140034804
mov esi, reloc.WS2_32.dll_listen
jmp 0x140034833
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x80]
lea r8, [rbp]
mov edx, dword [rbp + 4]
mov rcx, rbx
call fcn.140033f80
mov esi, eax
test r14, r14
je 0x140034833
mov eax, dword [rbp]
mov dword [r14], eax
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x140034844
call fcn.1402ba464
mov eax, esi
jmp 0x14003484d
mov eax, select
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.140296f70
lea rsp, [rbp + 0x38]
pop r15
pop r14
pop r12
pop rsi
pop rbx
pop rbp
ret
Function at 0x140034870
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
lea rbp, [rsp + 0x30]
mov rax, qword [0x1403ceac0]
xor rax, rbp
mov qword [rbp + 0x20], rax
mov rsi, r9
mov r14, r8
mov r12, rdx
mov r15, rcx
mov dword [rbp + 4], 1
xor ebx, ebx
mov dword [rbp], ebx
mov rdi, qword [rbp + 0x90]
test rdi, rdi
je 0x1400348c9
mov eax, dword [rdi]
mov dword [rbp], eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 4]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rbp + 4]
test r14, r14
je 0x1400348ee
mov dword [r14], ecx
cmp ecx, 1
je 0x1400348fc
cmp ecx, 7
jne 0x140034a4c
test rdi, rdi
je 0x140034a4c
mov r14d, dword [rdi]
test r14d, r14d
je 0x140034a4c
test eax, eax
je 0x140034920
cmp eax, 0xea
jne 0x140034a4c
mov eax, dword [rbp]
mov dword [rbp], r14d
mov dword [rdi], eax
test rsi, rsi
je 0x14003493b
mov r8d, eax
xor edx, edx
mov rcx, rsi
call fcn.1402b60e0
mov qword [rbp + 8], rbx
lea rcx, [r14 + 0x10]
mov rdx, rbx
cmp rcx, r14
cmova rdx, rcx
test rdx, rdx
je 0x1400349ba
cmp rdx, 0x400
ja 0x140034998
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x14003496e
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140297960
sub rsp, rax
lea rbx, [rsp + 0x30]
mov qword [rbp + 0x10], rbx
test rbx, rbx
je 0x1400349ba
mov dword [rbx], 0xcccc
add rbx, 0x10
mov qword [rbp + 0x10], rbx
jmp 0x1400349ba
mov rcx, rdx
call fcn.1402c79a8
mov rbx, rax
mov qword [rbp + 0x18], rax
test rax, rax
je 0x1400349ba
mov dword [rax], 0xdddd
add rbx, 0x10
mov qword [rbp + 0x18], rbx
mov qword [rbp + 8], rbx
jmp 0x1400349df
test rbx, rbx
jne 0x1400349e9
lea eax, [rbx + 0xe]
jmp 0x140034a4c
mov r8d, dword [rbp]
xor edx, edx
mov rcx, rbx
call fcn.1402b60e0
lea rax, [rbp]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 4]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r14d, eax
test eax, eax
jne 0x140034a38
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov r8, rbx
mov edx, dword [rbp + 4]
mov rcx, r15
call fcn.140034510
mov r14d, eax
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x140034a49
call fcn.1402ba464
mov eax, r14d
mov rcx, qword [rbp + 0x20]
xor rcx, rbp
call fcn.140296f70
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret