joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18079a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x18079a1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x18079a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18079a06f
add dl, dl
jne 0x18079a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18079a0f6
xor eax, eax
add dl, dl
jne 0x18079a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18079a1ad
add dl, dl
jne 0x18079a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18079a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18079a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18079a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18079a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18079a07e
mov eax, 1
add dl, dl
jne 0x18079a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18079a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18079a0fb
sub eax, ebx
mov ebx, 1
jne 0x18079a14c
mov ecx, 1
add dl, dl
jne 0x18079a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18079a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18079a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18079a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18079a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18079a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18079a15d
cmp eax, 0x7d00
jae 0x18079a19b
cmp eax, 0x500
jb 0x18079a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18079a07e
cmp eax, 0x7f
ja 0x18079a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18079a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18079a1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18079a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140026660
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
xor ebp, ebp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbp
mov r9d, dword [rcx + 8]
or r9d, 0x2001f
mov r8, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x40]
call fcn.140026550
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test eax, eax
jne 0x1400267ec
mov dword [rsp + 0x58], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140026755
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140026660
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test eax, eax
jne 0x1400267ec
mov dword [rsp + 0x58], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140026700
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002676a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov rbx, qword [rdi + 0x10]
test rbx, rbx
je 0x14002681c
mov rdi, qword [rdi]
cmp qword [rbx], 0
je 0x1400267d3
lea rcx, [0x1402f7cc8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14002679d
mov ebx, 1
jmp 0x1400267e7
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140026796
mov qword [rsp + 0x28], rbp
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [case.0x1400ac8a1.0]
jmp 0x1400267e5
cmp dword [rbx + 8], 0
je 0x140026796
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400267f7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140269300
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
cmp byte [0x14036fc18], 0
jne 0x140026867
lea rcx, [0x1402f7cc8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140026857
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14036fc10], rax
mov byte [0x14036fc18], 1
jmp 0x14002686e
mov rax, qword [0x14036fc10]
mov byte [0x14036fc18], 1
jmp 0x14002686e
mov rax, qword [0x14036fc10]
mov rcx, qword [rdi]
test rax, rax
je 0x1400267dc
xor r9d, r9d
mov r8d, dword [rdi + 8]
mov rdx, rsi
call qword [case.0x1400ac8a1.0]
jmp 0x1400267e5
Function at 0x140026920
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 0x140026a9f
cmp r8d, 1
jl 0x140026a9f
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 0x140026950
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 0x140026970
mov rdi, qword [rsp + 0x30]
lea rcx, [rbx + 0x101]
test rcx, rcx
je 0x140026a7b
test r9, r9
je 0x140026a6e
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 0x140026a01
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.14026c200
call fcn.14027932c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140277fd8
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 0x140026b40
Capabilities:
Encode data using xor

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x20
mov r14, r8
mov r15, rdx
mov rsi, rcx
test rdx, rdx
je 0x140026c0b
test r8, r8
je 0x140026c0b
cmp r9d, 1
jb 0x140026c0b
mov qword [rsp + 0x40], rbx
sub r15, r8
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rdi
mov ebp, r9d
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r15 + r14]
mov rcx, rsi
xor byte [rsi + 0x239], al
call fcn.140026ab0
movzx edi, al
mov rcx, rsi
xor dil, byte [rsi + 0x239]
call fcn.140026ab0
lea ebx, [rdi + rax]
mov edi, 1
cmp dword [rsi + 0x220], edi
jle 0x140026be3
mov rcx, rsi
call fcn.140026ab0
mov rcx, rsi
xor bl, al
call fcn.140026ab0
add bl, al
inc edi
cmp edi, dword [rsi + 0x220]
jl 0x140026bc5
mov byte [r14], bl
inc r14
sub rbp, 1
jne 0x140026b90
mov rdi, qword [rsp + 0x50]
lea eax, [rbp + 1]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
Function at 0x140026c20
Capabilities:
Encode data using xor

Disassembly:
push rbx
push r12
push r14
sub rsp, 0x20
mov r14, r8
mov r12, rdx
mov rbx, rcx
test rdx, rdx
je 0x140026d6b
test r8, r8
je 0x140026d6b
cmp r9d, 1
jb 0x140026d6b
cmp qword [rcx + 0x228], 0
je 0x140026d6b
cmp qword [rcx + 0x230], 0
je 0x140026d6b
test r9d, r9d
jle 0x140026d5c
mov qword [rsp + 0x40], rbp
sub r12, r8
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r15
mov r15d, r9d
nop
mov rdi, qword [rbx + 0x228]
xor ebp, ebp
mov rsi, qword [rbx + 0x230]
mov r8, rdi
mov edx, dword [rbx + 0x220]
mov r9, rsi
test edx, edx
jle 0x140026cec
mov rcx, rbx
call fcn.140026ab0
mov byte [rdi], al
lea rdi, [rdi + 1]
mov rcx, rbx
call fcn.140026ab0
mov byte [rsi], al
lea rsi, [rsi + 1]
mov edx, dword [rbx + 0x220]
inc ebp
cmp ebp, edx
jl 0x140026cb0
mov rdi, qword [rbx + 0x228]
mov rsi, qword [rbx + 0x230]
mov r8, rdi
mov r9, rsi
movsxd r10, dword [rbx + 0x224]
dec edx
movzx eax, byte [r12 + r14]
lea rcx, [r10 + r8]
test edx, edx
jle 0x140026d26
sub r10, rcx
lea r8, [r10 + r9]
nop dword [rax]
sub al, byte [r8 + rcx]
dec edx
xor al, byte [rcx]
lea rcx, [rcx - 1]
test edx, edx
jg 0x140026d10
mov r9, rsi
mov r8, rdi
sub al, byte [r9]
xor al, byte [r8]
xor al, byte [rbx + 0x239]
mov byte [r14], al
inc r14
xor byte [rbx + 0x239], al
sub r15, 1
jne 0x140026c90
mov r15, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x20
pop r14
pop r12
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop r14
pop r12
pop rbx
ret

Function at 0x140026d80
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, r8
test rcx, rcx
je 0x140026e00
cmp edx, 1
jb 0x140026e00
test rbx, rbx
je 0x140026e00
cmp r9d, 0x10
jne 0x140026e00
mov r8d, edx
mov dword [rsp + 0x28], 0x67452301
mov rdx, rcx
mov dword [rsp + 0x2c], 0xefcdab89
xor eax, eax
mov dword [rsp + 0x30], 0x98badcfe
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 0x10325476
call fcn.140026e20
lea rcx, [rsp + 0x20]
call fcn.140027110
movups xmm0, xmmword [rsp + 0x78]
xor eax, eax
movups xmmword [rbx], xmm0
jmp 0x140026e05
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140269300
add rsp, 0xa0
pop rbx
ret
Function at 0x1400281d0
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 [0x14035dc30]
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 0x140028232
mov r13d, dword [rdi]
mov dword [rbp + 8], r13d
mov eax, dword [rcx + 8]
test eax, eax
jne 0x14002841a
mov eax, dword [rbp + 0x98]
test al, 1
jne 0x14002827c
cmp dword [rbp + 0xa0], ebx
je 0x14002825e
mov qword [rsp + 0x20], rdi
call fcn.140029c10
jmp 0x14002841a
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 0x14002841a
test rdi, rdi
jne 0x14002828e
test rsi, rsi
jne 0x14002828e
lea eax, [rdi + 0x57]
jmp 0x14002841a
lea rax, [rbp + 4]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
xor r8d, r8d
call fcn.1400299e0
test rsi, rsi
je 0x1400282ad
mov ecx, dword [rbp + 4]
mov dword [rsi], ecx
test eax, eax
jne 0x14002841a
test rdi, rdi
je 0x14002841a
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 0x140028340
cmp rdx, 0x400
ja 0x14002831e
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x1400282f4
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140269fb0
sub rsp, rax
lea rbx, [rsp + 0x30]
mov qword [rbp + 0x18], rbx
test rbx, rbx
je 0x140028340
mov dword [rbx], 0xcccc
add rbx, 0x10
mov qword [rbp + 0x18], rbx
jmp 0x140028340
mov rcx, rdx
call fcn.14027bb00
mov rbx, rax
mov qword [rbp + 0x20], rax
test rax, rax
je 0x140028340
mov dword [rax], 0xdddd
add rbx, 0x10
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x10], rbx
jmp 0x14002836c
test rbx, rbx
jne 0x140028379
lea eax, [rbx + 0xe]
jmp 0x14002841a
mov r8d, esi
xor edx, edx
mov rcx, rbx
call fcn.14026c200
lea rax, [rbp + 4]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
mov r8, rbx
mov rdx, r14
mov rcx, r15
call fcn.1400299e0
mov r14d, eax
test eax, eax
jne 0x140028406
cmp dword [rbp + 0xa0], eax
je 0x1400283d8
mov edx, dword [rbp + 4]
cmp edx, 1
je 0x1400283bd
cmp edx, 7
jne 0x1400283d8
mov dword [rdi], r13d
mov qword [rsp + 0x20], rdi
mov r9, r12
mov r8, rbx
mov rcx, r15
call fcn.1400298c0
mov r14d, eax
jmp 0x140028406
test r12, r12
je 0x140028401
mov eax, dword [rdi]
mov esi, dword [rbp]
cmp esi, eax
jbe 0x1400283ee
mov r14d, 0xea
jmp 0x140028404
mov r9, rsi
mov rdx, rax
mov r8, rbx
mov rcx, r12
call fcn.140026420
jmp 0x140028404
mov esi, dword [rbp]
mov dword [rdi], esi
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x140028417
call fcn.1402767a0
mov eax, r14d
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.140269300
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 0x140028e20
Capabilities:
Hash data with md5

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x218]
sub rsp, 0x318
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rsi, qword [rbp + 0x280]
mov r15, r8
mov r14d, edx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x248
mov r12, r9
call fcn.14026c200
mov ebx, 0x26
lea r13, str.E54C3DE0_9E70_4eea_94B6_D069D4E4A9BC
mov edx, ebx
mov rcx, r13
call fcn.140278070
xor edx, edx
mov qword [rbp + 0x1e0], rax
mov r8d, 0x200
lea rcx, [rbp - 0x6f]
call fcn.14026c200
xor eax, eax
mov word [rbp + 0x1c8], 0
mov qword [rbp + 0x1ca], rax
mov edx, 1
mov word [rbp + 0x1d2], ax
lea rax, [rbp + 0x1ca]
mov qword [rbp + 0x1b8], rax
lea rax, [rbp + 0x1cf]
mov qword [rbp + 0x1c0], rax
mov rax, qword [rbp + 0x1e0]
lea ecx, [rdx - 1]
cmp eax, edx
mov dword [rbp + 0x1b4], ecx
lea rcx, str.70CC02EB_86C3_4468_B962_86194D4F7410
mov dword [rbp + 0x1b0], edx
cmovl r13, rcx
cmovge ebx, eax
mov r8d, ebx
lea rcx, [rbp - 0x70]
mov rdx, r13
call fcn.140026920
lea rcx, [rbp - 0x70]
call fcn.140026ab0
mov byte [rbp + 0x1c8], al
mov byte [rbp + 0x1c9], al
cmp r14d, 0x20
jb 0x140029031
lea rbx, [rdi + 0x10]
test rbx, rbx
je 0x140028f42
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x1e0], xmm0
jmp 0x140028f5c
xorps xmm0, xmm0
movups xmmword [rbp + 0x1e0], xmm0
call fcn.14027932c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140277fd8
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
test rdi, rdi
je 0x140029031
xor ebx, ebx
mov dword [rsp + 0x28], 0x67452301
mov r8d, r14d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov dword [rsp + 0x2c], 0xefcdab89
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x30], 0x98badcfe
mov dword [rsp + 0x34], 0x10325476
call fcn.140026e20
lea rcx, [rsp + 0x20]
call fcn.140027110
movups xmm0, xmmword [rsp + 0x78]
movq rax, xmm0
movups xmmword [rbp + 0x1f0], xmm0
cmp qword [rbp + 0x1e0], rax
jne 0x140029031
mov rax, qword [rbp + 0x1e8]
cmp rax, qword [rbp + 0x1f8]
jne 0x140029031
mov ecx, dword [rdi + 8]
add rcx, 0x20
cmp r14, rcx
jne 0x140029031
cmp dword [rdi], 0x4752434d
jne 0x140029031
test r15, r15
je 0x140028ff5
mov eax, dword [rdi + 0xc]
mov dword [r15], eax
test rsi, rsi
je 0x140029036
mov ecx, dword [rsi]
mov eax, dword [rdi + 8]
mov dword [rsi], eax
test r12, r12
je 0x140029036
mov r9d, dword [rdi + 8]
cmp r9d, ecx
jbe 0x140029016
mov ebx, 0xea
jmp 0x140029036
mov r8, r12
lea rdx, [rdi + 0x20]
lea rcx, [rbp - 0x70]
call fcn.140026c20
test eax, eax
jne 0x140029036
mov ebx, 0x1771
jmp 0x140029036
mov ebx, reloc.WS2_32.dll_listen
mov rcx, qword [rbp + 0x1b8]
test rcx, rcx
je 0x140029053
lea rax, [rbp + 0x1ca]
cmp rcx, rax
je 0x140029053
call fcn.140269844
mov rcx, qword [rbp + 0x1c0]
test rcx, rcx
je 0x140029070
lea rax, [rbp + 0x1cf]
cmp rcx, rax
je 0x140029070
call fcn.140269844
mov eax, ebx
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140269300
add rsp, 0x318
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400290a0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [rdx + 0x48]
mov rsi, r8
mov r14, qword [rsp + 0x1d0]
mov r15, rdx
mov r12, rcx
test rax, rax
jne 0x1400290e3
mov eax, 1
jmp 0x1400290f4
mov r8, r14
mov edx, 4
mov rcx, rsi
call qword [case.0x1400ac8a1.0]
mov ebp, dword [rsp + 0x1d8]
test ebp, ebp
je 0x1400291f1
test eax, eax
jne 0x1400291f1
mov qword [rsp + 0x1c8], rbx
mov qword [rsp + 0x178], rdi
mov qword [rsp + 0x170], r13
xor r13d, r13d
mov edi, r13d
nop dword [rax]
mov qword [rsp + 0x38], r13
lea r9, [rsp + 0x48]
mov qword [rsp + 0x30], r13
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], r13
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x20], r13
mov byte [rsp + 0x50], r13b
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, eax
test eax, eax
jne 0x1400291c2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], r13
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400291c9
mov r8, qword [rsp + 0x40]
lea r9d, [rbx + 4]
mov dword [rsp + 0x28], ebp
mov rdx, r15
mov rcx, r12
mov qword [rsp + 0x20], r14
call fcn.1400290a0
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400291c9
cmp eax, 0x103
je 0x1400291d7
inc edi
test ebx, ebx
je 0x140029130
mov eax, ebx
jmp 0x1400291d9
xor eax, eax
mov rdi, qword [rsp + 0x178]
mov rbx, qword [rsp + 0x1c8]
mov r13, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140269300
add rsp, 0x180
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
Function at 0x140029220
Capabilities:
Set 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, 0x70
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x80], rbx
mov rax, qword [0x14035dc30]
xor rax, rbp
mov qword [rbp + 0x20], rax
mov r15, r9
mov r12, rdx
mov r13, rcx
xor edi, edi
mov r14d, edi
mov dword [rbp], edi
test r9, r9
jne 0x140029277
mov esi, 0x57
mov eax, esi
jmp 0x1400292b7
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r9d, 0xffffffff
mov r8, r15
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1400292aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400292b2
mov r14d, eax
mov dword [rbp], eax
mov eax, edi
mov esi, 0x57
test eax, eax
jne 0x140029456
mov qword [rbp + 8], rdi
mov eax, r14d
lea rcx, [rax + 0x10]
mov rdx, rdi
cmp rcx, rax
cmova rdx, rcx
test rdx, rdx
je 0x140029343
cmp rdx, 0x400
ja 0x14002931f
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x1400292f5
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140269fb0
sub rsp, rax
lea rbx, [rsp + 0x40]
mov qword [rbp + 0x10], rbx
test rbx, rbx
je 0x140029346
mov dword [rbx], 0xcccc
add rbx, 0x10
mov qword [rbp + 0x10], rbx
jmp 0x140029346
mov rcx, rdx
call fcn.14027bb00
mov rbx, rax
mov qword [rbp + 0x18], rax
test rax, rax
je 0x140029346
mov dword [rax], 0xdddd
add rbx, 0x10
mov qword [rbp + 0x18], rbx
jmp 0x140029346
mov rbx, rdi
mov qword [rbp + 8], rbx
jmp 0x14002936d
test rbx, rbx
jne 0x14002937a
lea eax, [rbx + 0xe]
jmp 0x140029456
mov r8d, r14d
xor edx, edx
mov rcx, rbx
call fcn.14026c200
test r15, r15
je 0x14002941f
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r9d, 0xffffffff
mov r8, r15
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1400293c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14002941f
cmp r14d, eax
jge 0x1400293d4
mov r14d, eax
mov esi, 0xea
jmp 0x14002941f
movsxd r8, r14d
xor edx, edx
mov rcx, rbx
call fcn.14026c200
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbx
mov r9d, 0xffffffff
mov r8, r15
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r14d, eax
test eax, eax
jne 0x14002941d
mov r14d, edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14002941f
mov esi, edi
test esi, esi
jne 0x140029443
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbx
lea r9d, [rsi + 1]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x140029454
call fcn.1402767a0
mov eax, esi
mov rcx, qword [rbp + 0x20]
xor rcx, rbp
call fcn.140269300
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 0x1400299e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push r12
push r14
push r15
sub rsp, 0x98
lea rbp, [rsp + 0x30]
mov rax, qword [0x14035dc30]
xor rax, rbp
mov qword [rbp + 0x50], rax
mov r12, rdx
mov r15, rcx
mov qword [rbp + 8], rcx
mov qword [rbp + 0x10], rdx
mov qword [rbp + 0x40], r8
mov qword [rbp + 0x38], r9
mov r14, qword [rbp + 0xc0]
mov qword [rbp + 0x18], r14
test r14, r14
je 0x140029a31
mov dword [r14], 0
mov dword [rbp + 0x4c], 0
mov dword [rbp + 0x48], 0x1f4
mov qword [rbp], 0
mov eax, dword [rsp]
mov eax, 0x210
sub rsp, rax
lea rbx, [rsp + 0x30]
mov eax, dword [rbx]
mov qword [rbp + 0x20], rbx
test rbx, rbx
je 0x140029a70
mov dword [rbx], 0xcccc
add rbx, 0x10
mov qword [rbp + 0x20], rbx
mov qword [rbp], rbx
jmp 0x140029a8b
test rbx, rbx
je 0x140029bee
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x4c]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp eax, 0xea
jne 0x140029b9f
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x140029ad3
call fcn.1402767a0
mov qword [rbp], 0
mov eax, dword [rbp + 0x48]
lea rcx, [rax + 0x10]
xor edx, edx
cmp rcx, rax
cmova rdx, rcx
test rdx, rdx
je 0x140029b5a
cmp rdx, 0x400
ja 0x140029b36
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x140029b0c
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140269fb0
sub rsp, rax
lea rbx, [rsp + 0x30]
mov qword [rbp + 0x28], rbx
test rbx, rbx
je 0x140029b5c
mov dword [rbx], 0xcccc
add rbx, 0x10
mov qword [rbp + 0x28], rbx
jmp 0x140029b5c
mov rcx, rdx
call fcn.14027bb00
mov rbx, rax
mov qword [rbp + 0x30], rax
test rax, rax
je 0x140029b5c
mov dword [rax], 0xdddd
add rbx, 0x10
mov qword [rbp + 0x30], rbx
jmp 0x140029b5c
xor ebx, ebx
mov qword [rbp], rbx
jmp 0x140029b77
test rbx, rbx
je 0x140029bee
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x4c]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x140029bd9
cmp dword [rbp + 0x4c], 3
je 0x140029bb0
mov esi, reloc.WS2_32.dll_listen
jmp 0x140029bd9
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x40]
lea r8, [rbp + 0x4c]
mov edx, dword [rbp + 0x48]
mov rcx, rbx
call fcn.140028e20
mov esi, eax
test r14, r14
je 0x140029bd9
mov eax, dword [rbp + 0x4c]
mov dword [r14], eax
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x140029bea
call fcn.1402767a0
mov eax, esi
jmp 0x140029bf3
mov eax, select
mov rcx, qword [rbp + 0x50]
xor rcx, rbp
call fcn.140269300
lea rsp, [rbp + 0x68]
pop r15
pop r14
pop r12
pop rsi
pop rbx
pop rbp
ret