joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180008c40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x34], ebx
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rbx + 0x64]
call fcn.18007f510
lea r8, [rsp + 0x40]
mov dword [rsp + 0x38], 0x64
lea rdx, str.SoftwarexiaoyuInstall
mov qword [rsp + 0x40], rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x180008cbc
test rcx, rcx
je 0x180008d14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180008d14
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x180008cf5
test rcx, rcx
je 0x180008d14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180008d14
test rcx, rcx
je 0x180008d00
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rsp + 0x38]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180010920
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x10], rbx
mov byte [rdi], bl
cmp byte [rsp + 0x50], bl
je 0x180008d3a
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x180008d31
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1800023a0
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18005ef00
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000b790
Capabilities:
Encode data using base64

Disassembly:
push rdi
push r14
push r15
mov edi, edx
lea r10d, [rdx*8]
mov r11, rcx
mov eax, 0x2aaaaaab
imul r10d
lea ecx, [rdi*8]
mov r14, r9
mov eax, edx
mov r15, r8
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
cmp ecx, 2
je 0x18000b7d5
cmp ecx, 4
jne 0x18000b7d8
add edx, 2
jmp 0x18000b7d8
add edx, 3
inc edx
cmp dword [r9], edx
jge 0x18000b7ed
mov dword [r9], edx
mov eax, 0xfffffff0
pop r15
pop r14
pop rdi
ret
mov qword [rsp + 0x20], rbx
mov eax, 0x55555556
imul edi
xor ebx, ebx
mov qword [rsp + 0x28], rbp
mov eax, edx
mov qword [rsp + 0x38], r12
shr eax, 0x1f
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789abcdef
add edx, eax
mov ebp, ebx
mov rcx, r15
lea edx, [rdx + rdx*2]
test edx, edx
jle 0x18000b8ad
dec edx
mov qword [rsp + 0x30], rsi
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
mov esi, edx
lea ebp, [rdx + rdx*2]
nop word [rax + rax]
movzx r8d, byte [r11]
movzx r9d, byte [r11 + 1]
mov eax, r8d
movzx r10d, byte [r11 + 2]
mov edx, r9d
sar rax, 2
add r11, 3
and eax, 0x3f
sar edx, 4
shl r8d, 4
add edx, r8d
and edx, 0x3f
movzx eax, byte [rax + r12]
mov byte [rcx], al
movzx eax, byte [rdx + r12]
mov byte [rcx + 1], al
mov eax, r10d
sar eax, 6
lea edx, [rax + r9*4]
and edx, 0x3f
movzx eax, byte [rdx + r12]
mov byte [rcx + 2], al
mov eax, r10d
and eax, 0x3f
movzx eax, byte [rax + r12]
mov byte [rcx + 3], al
add rcx, 4
sub rsi, 1
jne 0x18000b840
mov rsi, qword [rsp + 0x30]
cmp ebp, edi
jge 0x18000b90d
movzx r8d, byte [r11]
inc ebp
cmp ebp, edi
jge 0x18000b8c0
movzx ebx, byte [r11 + 1]
mov eax, r8d
mov edx, ebx
sar rax, 2
sar edx, 4
and eax, 0x3f
shl r8d, 4
add edx, r8d
and edx, 0x3f
movzx eax, byte [rax + r12]
mov byte [rcx], al
movzx eax, byte [rdx + r12]
mov byte [rcx + 1], al
cmp ebp, edi
jge 0x18000b8ff
and ebx, 0xf
shl ebx, 2
movsxd rax, ebx
movzx eax, byte [rax + r12]
mov byte [rcx + 2], al
jmp 0x18000b903
mov byte [rcx + 2], 0x3d
add rcx, 3
mov byte [rcx], 0x3d
inc rcx
mov r12, qword [rsp + 0x38]
mov eax, ecx
mov rbp, qword [rsp + 0x28]
sub eax, r15d
mov rbx, qword [rsp + 0x20]
mov dword [r14], eax
xor eax, eax
mov byte [rcx], 0
pop r15
pop r14
pop rdi
ret
Function at 0x18000bd10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x960
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rsp + 0x950], rax
mov rbx, rcx
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x100
or edi, 0xffffffff
call fcn.18007f510
mov r8, rbx
lea rdx, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
lea rcx, [rsp + 0x50]
call fcn.180003450
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18000be65
xor edx, edx
lea rcx, [rsp + 0x150]
mov r8d, 0x800
call fcn.18007f510
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rdx, str.PnpInstanceID
lea rax, [rsp + 0x150]
mov dword [rsp + 0x3c], 0x800
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000be5a
lea r9d, [rdi + 4]
xor ecx, ecx
lea r8, [0x1800ca470]
lea rdx, [rsp + 0x150]
call qword [sym.imp.SHLWAPI.dll_StrIsIntlEqualW]
test eax, eax
je 0x18000be5a
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.MediaSubType
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], 0
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x18000be58
test eax, eax
jne 0x18000be5a
mov eax, dword [rsp + 0x38]
cmp eax, 1
je 0x18000be58
cmp eax, 2
jne 0x18000be5a
lea edi, [rax - 1]
jmp 0x18000be5a
xor edi, edi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x950]
xor rcx, rsp
call fcn.18005ef00
mov rbx, qword [rsp + 0x978]
add rsp, 0x960
pop rdi
ret
Function at 0x18000d6d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rdi, rdx
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.18005ea9c
xor edx, edx
mov qword [rsp + 0x40], rax
mov rcx, rax
mov rbx, rax
lea r8d, [rdx + 0x70]
call fcn.18007f510
mov rcx, rbx
call fcn.18000d4a0
mov qword [rsi + 0x98], rax
cmp byte [rdi], 0
jne 0x18000d71e
xor r8d, r8d
jmp 0x18000d72c
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], 0
jne 0x18000d722
lea rcx, [rax + 0x10]
mov rdx, rdi
call fcn.1800023a0
mov rax, qword [rsi + 0x98]
lea rdx, str.GET_test1
mov r8d, 9
mov dword [rax + 8], 1
mov rcx, qword [rsi + 0x98]
add rcx, 0x48
call fcn.1800023a0
lea rax, [rsi + 0x20]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x18000d7c0]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0x28], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x18000d7a2
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18000edb0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x18000ef68
cmp byte [rcx + 0x71], 0
je 0x18000ef68
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
jne 0x18000ee09
xor al, al
jmp 0x18000ef6a
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.180009ef0
nop
lea r14, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x18]
nop dword [rax]
lea rcx, [rbp - 0x30]
cmp r8, 0x10
cmovae rcx, rdx
lea rbx, [rbp - 0x30]
cmovae rbx, rdx
mov r10, qword [rdi + 0x68]
mov r9, qword [rbp - 0x20]
add r9, rcx
mov rax, qword [r10]
mov r11, qword [rax + 0x40]
cmp rax, r14
jne 0x18000ee73
mov qword [rbp - 0x38], rbx
xor eax, eax
jmp 0x18000ee95
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rdi + 0x74]
mov rcx, r10
call r11
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
mov rbx, qword [rbp - 0x38]
test eax, eax
je 0x18000eea0
sub eax, 1
jne 0x18000ef05
jmp 0x18000eea4
mov byte [rdi + 0x71], 0
lea rax, [rbp - 0x30]
cmp r8, 0x10
cmovae rax, rdx
sub rbx, rax
je 0x18000eee2
lea rcx, [rbp - 0x30]
cmp r8, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
call fcn.1800868f4
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x18000ef0a
cmp byte [rdi + 0x71], 0
je 0x18000ef0e
test rbx, rbx
jne 0x18000ee40
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.180006bb0
jmp 0x18000ee35
sub eax, 2
je 0x18000ef0e
xor bl, bl
jmp 0x18000ef10
mov bl, 1
cmp r8, 0x10
jb 0x18000ef63
lea rax, [r8 + 1]
cmp rax, 0x1000
jb 0x18000ef5b
test byte [rbp - 0x30], 0x1f
je 0x18000ef2e
call fcn.18008185c
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x18000ef3d
call fcn.18008185c
int3
sub rdx, rax
cmp rdx, 8
jae 0x18000ef4c
call fcn.18008185c
int3
cmp rdx, 0x27
jbe 0x18000ef58
call fcn.18008185c
int3
mov rdx, rax
mov rcx, rdx
call fcn.18005e5ac
movzx eax, bl
jmp 0x18000ef6a
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.18005ef00
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1800103f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x2f]
sub rsp, 0x88
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, r9
mov r10, r8
mov rax, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rbp - 0x19], ebx
mov qword [rbp + reloc.WS2_32.dll_ntohs], 0xf
mov qword [rbp + 7], rbx
mov byte [rbp - 9], bl
mov qword [rbp - 0x21], rbx
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbp + 0x7f]
xor r8d, r8d
mov rdx, r10
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800104cb
mov dword [rbp - 0x29], ebx
movsxd rdx, dword [rbp + 0x77]
mov rax, qword [rbp + 7]
cmp rdx, rax
ja 0x180010482
mov qword [rbp + 7], rdx
lea rax, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rax, qword [rbp - 9]
mov byte [rax + rdx], bl
jmp 0x180010491
sub rdx, rax
xor r8d, r8d
lea rcx, [rbp - 9]
call fcn.180006bb0
lea rax, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rax, qword [rbp - 9]
lea rcx, [rbp + 0x77]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x29]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rdx, qword [rbp - 9]
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x1800104f1
mov rax, qword [rdi]
jmp 0x1800104f4
mov rax, rdi
mov byte [rax], 0
cmp byte [rdx], 0
je 0x180010509
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdx + rbx], 0
jne 0x180010500
mov r8, rbx
mov rcx, rdi
call fcn.1800023a0
nop
mov rax, qword [rbp + 0xf]
cmp rax, 0x10
jb 0x18001056b
inc rax
mov rcx, qword [rbp - 9]
cmp rax, 0x1000
jb 0x180010566
test cl, 0x1f
je 0x180010539
call fcn.18008185c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180010548
call fcn.18008185c
int3
sub rcx, rax
cmp rcx, 8
jae 0x180010557
call fcn.18008185c
int3
cmp rcx, 0x27
jbe 0x180010563
call fcn.18008185c
int3
mov rcx, rax
call fcn.18005e5ac
mov rax, rdi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18005ef00
add rsp, 0x88
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180010920
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rbp + 0x80], rax
movsxd r15, r8d
mov rdi, rdx
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.180010830
nop
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x20], bl
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.1800024d0
mov r14, qword [rsp + 0x30]
lea rsi, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rsi, qword [rsp + 0x20]
lea rax, [rsp + 0x70]
mov r8d, 0x100
nop dword [rax + rax]
mov byte [rax], bl
inc bx
lea rax, [rax + 1]
cmp bx, r8w
jl 0x1800109c0
mov word [rbp + 0x70], 0
xor r11b, r11b
xor r10b, r10b
lea r9, [rsp + 0x70]
movzx edx, byte [r9]
movzx eax, r11b
movzx ecx, byte [rax + rsi]
add cl, dl
add r10b, cl
movzx eax, r10b
lea rcx, [rsp + 0x70]
add rcx, rax
movzx eax, byte [rcx]
mov byte [r9], al
mov byte [rcx], dl
movzx eax, r11b
inc eax
cdq
idiv r14d
mov r11d, edx
inc r9
sub r8, 1
jne 0x1800109e0
movzx r9d, byte [rbp + 0x70]
movzx r10d, byte [rbp + 0x71]
mov r11, r15
test r15d, r15d
jle 0x180010a74
nop dword [rax]
inc r9b
movzx eax, r9b
lea rdx, [rsp + 0x70]
add rdx, rax
movzx r8d, byte [rdx]
add r10b, r8b
movzx eax, r10b
lea rcx, [rsp + 0x70]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rdx], al
mov byte [rcx], r8b
movzx eax, byte [rdx]
add al, r8b
movzx eax, al
movzx ecx, byte [rsp + rax + 0x70]
xor byte [rdi], cl
lea rdi, [rdi + 1]
sub r11, 1
jne 0x180010a30
lea rcx, [rsp + 0x20]
call fcn.180002120
nop
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x180010ad7
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, 0x1000
jb 0x180010ad2
test cl, 0x1f
je 0x180010aa5
call fcn.18008185c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180010ab4
call fcn.18008185c
int3
sub rcx, rax
cmp rcx, 8
jae 0x180010ac3
call fcn.18008185c
int3
cmp rcx, 0x27
jbe 0x180010acf
call fcn.18008185c
int3
mov rcx, rax
call fcn.18005e5ac
mov al, 1
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.18005ef00
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x190
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180011cb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r8, qword [rcx]
movabs rax, 0xffffffff00000000
mov ebp, dword [rcx + 0x50]
mov r14, rcx
dec ebp
not ebp
movzx ebx, word [r8 + 0x14]
mov r13, qword [r8 + 0x30]
add rbx, r8
and r13, rax
mov r10d, dword [rbx + 0x20]
mov r9d, dword [rbx + 0x28]
or r10, r13
and rbp, r10
mov qword [rsp + 0x20], r10
test r9d, r9d
jne 0x180011d14
mov eax, dword [rbx + 0x3c]
test al, 0x40
je 0x180011d0c
mov r9d, dword [r8 + 0x20]
jmp 0x180011d14
test al, al
jns 0x180011d14
mov r9d, dword [r8 + 0x24]
mov edx, dword [rbx + 0x3c]
lea r11, [0x1800ca3a0]
mov edi, 1
mov qword [rsp + 0x78], rsi
mov r12d, edi
mov qword [rsp + 0x80], r15
cmp di, word [r8 + 6]
jae 0x180011e7a
add rbx, 0x64
mov ecx, dword [r14 + 0x50]
mov r15d, dword [rbx - 0x1c]
mov esi, dword [rbx - 0x14]
or r15, r13
lea edi, [rcx - 1]
not edi
and rdi, r15
test esi, esi
jne 0x180011d74
mov eax, dword [rbx]
test al, 0x40
je 0x180011d6a
mov rax, qword [r14]
mov esi, dword [rax + 0x20]
jmp 0x180011d74
test al, al
jns 0x180011d74
mov rax, qword [r14]
mov esi, dword [rax + 0x24]
cmp rbp, rdi
je 0x180011e3a
mov r11d, r9d
lea rax, [r11 + r10]
cmp rax, rdi
ja 0x180011e3a
test r9d, r9d
je 0x180011e28
bt edx, 0x19
jae 0x180011ddd
cmp r10, rbp
jne 0x180011e28
mov r8, qword [r14]
cmp dword [r8 + 0x38], ecx
je 0x180011db9
xor edx, edx
mov eax, r9d
div ecx
test edx, edx
jne 0x180011e28
mov r8d, 0x4000
mov rdx, r11
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbx]
mov r10, r15
mov r9d, esi
mov qword [rsp + 0x20], r15
mov rbp, rdi
jmp 0x180011e57
mov ecx, edx
mov eax, edx
shr rax, 0x1e
and eax, 1
shr rcx, 0x1d
and ecx, 1
lea rcx, [rax + rcx*2]
mov eax, edx
shr rax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x1800ca3a0]
mov r8d, dword [rax + rcx*4]
bt edx, 0x1a
jae 0x180011e13
bts r8d, 9
lea r9, [rsp + 0x70]
mov rdx, r11
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180011e9e
mov edx, dword [rbx]
mov r10, r15
mov qword [rsp + 0x20], r15
mov rbp, rdi
mov r9d, esi
jmp 0x180011e57
mov ecx, dword [rbx]
mov eax, ecx
and eax, edx
or edx, ecx
bt eax, 0x19
jb 0x180011e4c
btr edx, 0x19
mov r9d, r15d
sub r9d, dword [rsp + 0x20]
add r9d, esi
mov rax, qword [r14]
inc r12d
add rbx, 0x28
movzx ecx, word [rax + 6]
cmp r12d, ecx
jl 0x180011d42
mov edi, 1
lea r11, [0x1800ca3a0]
test r9d, r9d
je 0x180011ee6
bt edx, 0x19
jae 0x180011ea2
cmp r10, rbp
jne 0x180011ee6
mov edx, r9d
mov r8d, 0x4000
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x180011ee6
xor eax, eax
jmp 0x180011ee8
mov ecx, edx
mov eax, edx
shr rax, 0x1e
shr rcx, 0x1d
and eax, 1
and ecx, 1
lea rcx, [rax + rcx*2]
mov eax, edx
shr rax, 0x1f
lea rcx, [rax + rcx*2]
mov r8d, dword [r11 + rcx*4]
bt edx, 0x1a
jae 0x180011ed1
bts r8d, 9
mov edx, r9d
mov rcx, r10
lea r9, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180011e9e
mov eax, edi
mov r15, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x180013e20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call fcn.1800141b0
test al, al
jne 0x180013e51
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp qword [rbx + 0x18], 0x10
mov rax, qword [rbx + 0x10]
jb 0x180013e5f
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 0x10
jb 0x180013e69
mov rdi, qword [rdi]
mov rcx, qword [rsi + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rbx, qword [rsp + 0x40]
test eax, eax
mov rsi, qword [rsp + 0x48]
sete al
add rsp, 0x30
pop rdi
ret

Function at 0x180013ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
push r14
sub rsp, 0x78
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r14d, r14d
mov rdi, r8
mov dword [rsp + 0x38], r14d
mov rbx, rdx
mov rbp, rcx
call fcn.1800141b0
test al, al
je 0x180013fe5
cmp qword [rdi + 0x18], 0x10
jb 0x180013ee3
mov rdx, qword [rdi]
jmp 0x180013ee6
mov rdx, rdi
mov rcx, qword [rbp + 0x28]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180013fe5
mov ecx, dword [rsp + 0x34]
lea eax, [rcx - 1]
test eax, 0xfffffffa
jne 0x180013fe5
cmp ecx, 5
je 0x180013fe5
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x180013fe5
inc eax
mov qword [rsp + 0x70], rsi
movsxd rcx, eax
call fcn.18005f60c
inc dword [rsp + 0x30]
mov rsi, rax
cmp qword [rdi + 0x18], 0x10
jb 0x180013f56
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x28]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
movsxd rax, dword [rsp + 0x30]
mov byte [rax + rsi], r14b
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x50], r14
mov byte [rsp + 0x40], r14b
cmp byte [rsi], r14b
jne 0x180013f9e
mov r8, r14
jmp 0x180013fab
or r8, 0xffffffffffffffff
inc r8
cmp byte [rsi + r8], r14b
jne 0x180013fa2
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1800023a0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
lea rdx, [rsp + 0x40]
mov qword [rbx + 0x10], r14
mov rcx, rbx
mov byte [rbx], r14b
call fcn.180002880
lea rcx, [rsp + 0x40]
call fcn.180002120
mov rsi, qword [rsp + 0x70]
jmp 0x180013ff4
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], r14
mov byte [rbx], r14b
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18005ef00
add rsp, 0x78
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x180014010
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
call fcn.1800141b0
test al, al
jne 0x180014041
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
sub rax, rcx
cmp qword [rbx + 0x18], 0x10
jb 0x180014055
mov rbx, qword [rbx]
mov dword [rsp + 0x28], eax
mov r9d, 3
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsi + 0x28]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rbx, qword [rsp + 0x40]
test eax, eax
mov rsi, qword [rsp + 0x48]
sete al
add rsp, 0x30
pop rdi
ret

Function at 0x180014090
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rsi, r8
mov rbx, rdx
mov r14, rcx
xor edi, edi
mov dword [rsp + 0x34], edi
call fcn.1800141b0
test al, al
jne 0x1800140d3
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
jmp 0x18001418f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
cmp qword [rsi + 0x18], 0x10
jb 0x1800140ed
mov rdx, qword [rsi]
jmp 0x1800140f0
mov rdx, rsi
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [r14 + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180014184
cmp dword [rsp + 0x30], 3
jne 0x180014184
mov eax, dword [rsp + 0x98]
test eax, eax
je 0x180014171
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.180014250
cmp qword [rsi + 0x18], 0x10
jb 0x180014140
mov rsi, qword [rsi]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov rbp, qword [rsp + 0x40]
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r14 + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rdi, qword [rsp + 0x50]
jmp 0x180014176
mov rbp, qword [rsp + 0x40]
mov qword [rbx], rbp
mov rax, qword [rsp + 0x48]
mov qword [rbx + 8], rax
jmp 0x18001418b
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800145b0
Capabilities:
Write file on windows

Disassembly:
test rdx, rdx
je 0x18001464b
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r8d, dword [rcx + 0x28]
mov rdi, rdx
mov rbx, rcx
lea eax, [r8 + 1]
mov dword [rcx + 0x28], eax
cmp r8d, 0x186a0
jl 0x180014603
mov rcx, qword [rcx]
test rcx, rcx
je 0x1800145f3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [rbx + 0x28], 0
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180014641
mov dword [rsp + 0x48], 0
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdi + r8], 0
jne 0x180014620
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret