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

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x490
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x48], 0
nop
mov rax, qword [rbp + 0x28]
test rax, rax
jne 0x43118a
xor rbx, rbx
mov rcx, qword [rbp + 0x20]
mov edx, ebx
lea r8, [rbp + 0x286]
mov r9d, 0x20a
call sub.advapi32.dll_RegEnumKeyW
mov esi, eax
test esi, esi
je 0x431101
cmp esi, 0x103
jne 0x431184
xor rsi, rsi
jmp 0x431184
cmp word [rbp + 0x286], 0x2e
jne 0x431162
mov dword [rbp + 0x78], 0x20a
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x286]
lea r8, [rbp + 0x7c]
lea r9, [rbp + 0x78]
call sub.advapi32.dll_RegQueryValueW
mov esi, eax
test esi, esi
jne 0x431184
lea rax, [rbp + 0x286]
mov qword [rbp + 0x50], rax
mov byte [rbp + 0x58], 0xa
lea rax, [rbp + 0x7c]
mov qword [rbp + 0x60], rax
mov byte [rbp + 0x68], 0xa
lea rcx, [0x00431274]
lea rdx, [rbp + 0x50]
mov r8d, 1
call fcn.0042e0b0
mov rax, qword [0x004495e0]
cmp dword [rax], 0
je 0x43117c
mov eax, 1
mov dword [rbp + 0x34], eax
jmp 0x431239
add ebx, 1
jmp 0x4310ce
nop
jmp 0x431235
mov rcx, qword [rbp + 0x28]
xor rdx, rdx
call fcn.00436450
mov rcx, rax
mov qword [rbp + 0x28], rcx
mov dx, 0x20
call fcn.00422ae0
test rax, rax
je 0x4311b0
mov word [rax], 0
mov dword [rbp + 0x78], 0x20a
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
lea r8, [rbp + 0x7c]
lea r9, [rbp + 0x78]
call sub.advapi32.dll_RegQueryValueW
mov esi, eax
test esi, esi
jne 0x431203
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x50], rax
mov byte [rbp + 0x58], 0xa
lea rax, [rbp + 0x7c]
mov qword [rbp + 0x60], rax
mov byte [rbp + 0x68], 0xa
lea rcx, [0x00431274]
lea rdx, [rbp + 0x50]
mov r8d, 1
call fcn.0042e0b0
jmp 0x431235
lea rcx, [rbp + 0x48]
mov rdx, qword [0x00449610]
call fcn.0040d960
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x38], rax
mov byte [rbp + 0x40], 0xa
mov rcx, qword [rbp + 0x48]
mov edx, 1
lea r8, [rbp + 0x38]
xor r9, r9
call fcn.004359f0
mov dword [rbp + 0x34], esi
nop
lea rcx, [rbp + 0x48]
call fcn.004098a0
mov eax, dword [rbp + 0x34]
lea rsp, [rbp + 0x490]
pop rbx
pop rsi
pop rbp
ret
Function at 0x432220
Capabilities:
Parse pe header

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x190
mov rbp, rsp
xor rbx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
mov rsi, rax
test rsi, rsi
je 0x432301
mov rcx, rsi
lea rdx, [rbp + 0x14c]
mov r8d, 0x40
call fcn.0041a960
cmp word [rbp + 0x14c], 0x5a4d
jne 0x4322f9
mov rcx, rsi
mov edx, dword [rbp + 0x188]
xor r8, r8
call fcn.0041a990
mov rcx, rsi
lea rdx, [rbp + 0x18c]
mov r8d, 4
call fcn.0041a960
cmp dword [rbp + 0x18c], 0x4550
jne 0x4322f9
mov rcx, rsi
lea rdx, [rbp + 0x138]
mov r8d, 0x14
call fcn.0041a960
cmp word [rbp + 0x148], 0
jbe 0x4322f9
mov rcx, rsi
lea rdx, [rbp + 0x48]
mov r8d, 0xf0
call fcn.0041a960
movzx rbx, word [rbp + 0x8c]
mov rcx, rsi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
lea rsp, [rbp + 0x190]
pop rbx
pop rsi
pop rbp
ret

Function at 0x4357e0
Capabilities:
Set current directory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov rbp, rsp
mov dword [rbp + 0x24], ecx
mov qword [rbp + 0x28], 0
nop
xor rdi, rdi
mov word [rbp + 0x248], 0x3d
mov eax, dword [rbp + 0x24]
add ax, 0x40
mov word [rbp + 0x24a], ax
mov word [rbp + 0x24c], 0x3a
mov word [rbp + 0x24e], 0
xor rsi, rsi
lea rcx, [rbp + 0x248]
call fcn.0042ae80
mov rbx, rax
test rbx, rbx
je 0x43584b
mov rcx, rbx
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
setne sil
test sil, sil
jne 0x4358d7
test rbx, rbx
je 0x435866
mov ecx, 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
movzx rax, word [rbp + 0x24a]
mov word [rbp + 0x3e], ax
movzx rax, word [rbp + 0x24c]
mov word [rbp + 0x40], ax
mov word [rbp + 0x42], 0x5c
mov word [rbp + 0x44], 0
lea rcx, [rbp + 0x248]
lea rdx, [rbp + 0x3e]
call fcn.0042b1f0
lea rcx, [rbp + 0x3e]
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x4358cb
lea rcx, [rbp + 0x28]
mov rdx, qword [0x00449270]
call fcn.0040d960
mov rcx, qword [rbp + 0x28]
xor rdx, rdx
lea r8, [rbp + 0x28]
or r9d, 0xffffffff
call fcn.004359f0
test rbx, rbx
je 0x4358d7
mov ecx, edi
call sub.kernel32.dll_SetErrorMode
mov rcx, qword [0x00449940]
xor rdx, rdx
call fcn.0042d370
nop
lea rcx, [rbp + 0x28]
call fcn.004098a0
lea rsp, [rbp + 0x258]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x436200
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
xor rdi, rdi
mov rcx, rbx
mov edx, 1
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x43622c
call sub.kernel32.dll_GetLastError_2
mov dword [0x00448848], eax
test esi, esi
je 0x43623a
mov rcx, rbx
call fcn.00436250
mov edi, eax
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x4364d0
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov word [rbp + 0x28], cx
mov word [rbp + 0x2a], 0x3a
mov word [rbp + 0x2c], 0x5c
mov word [rbp + 0x2e], 0
lea rcx, [rbp + 0x28]
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x436501
xor rax, rax
jmp 0x436503
mov al, 1
lea rsp, [rbp + 0x30]
pop rbp
ret

Function at 0x436510
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x260
mov rbp, rsp
mov word [rbp + 0x44], cx
mov word [rbp + 0x46], 0x3a
mov word [rbp + 0x48], 0x5c
mov word [rbp + 0x4a], 0
lea rcx, [rbp + 0x44]
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x436543
mov al, 1
jmp 0x4365a0
cmp eax, 2
je 0x43659d
cmp eax, 5
je 0x43659d
lea rcx, [rbp + 0x44]
lea rdx, [rbp + 0x4e]
mov r8d, 0x104
lea r9, [rbp + 0x258]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x43659d
call sub.kernel32.dll_GetLastError_2
cmp eax, 5
jne 0x43659d
mov al, 1
jmp 0x4365a0
xor rax, rax
lea rsp, [rbp + 0x260]
pop rbp
ret

Function at 0x436c20
Capabilities:
Set console window title

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
mov rbx, rcx
test rbx, rbx
je 0x436d3a
mov rax, qword [0x00449380]
cmp qword [rax], 0
jne 0x436d3a
mov rax, qword [0x00449178]
cmp byte [rax], 0
jne 0x436d3a
mov ecx, 0x20c
call fcn.00404ae0
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x436d3a
mov rcx, qword [rbp + 0x28]
mov edx, 0x104
call sub.kernel32.dll_GetConsoleTitleW
mov esi, eax
test esi, esi
je 0x436d3a
test rbx, rbx
je 0x436c9c
mov rax, rbx
mov rcx, rax
call fcn.00409fc0
jmp 0x436c9f
xor rax, rax
lea rcx, [rbp + 0x28]
mov edx, esi
add edx, eax
add edx, dword [0x00467288]
add edx, 0xa
add edx, edx
mov edx, edx
call fcn.00404b40
cmp qword [rbp + 0x28], 0
je 0x436d3a
mov rax, qword [0x004494d8]
cmp byte [rax], 0
je 0x436ce4
mov rax, qword [rbp + 0x28]
mov ecx, dword [0x00467288]
lea rcx, [rax + rcx*2]
mov rdx, rbx
call fcn.00422b70
jmp 0x436d28
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00436d44]
call fcn.00422b90
cmp qword [rbp + 0x28], 0
je 0x436d09
mov rax, qword [rbp + 0x28]
mov rcx, rax
call fcn.00409fc0
jmp 0x436d0c
xor rax, rax
mov dword [0x00467288], eax
mov rcx, qword [rbp + 0x28]
mov rdx, rbx
call fcn.00422b90
mov rax, qword [0x004494d8]
mov byte [rax], 1
mov rcx, qword [rbp + 0x28]
call sub.kernel32.dll_SetConsoleTitleW
mov rcx, qword [rbp + 0x28]
call fcn.00404b10
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret
Function at 0x436d50
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x436d8b
mov rax, qword [0x00449380]
cmp qword [rax], 0
jne 0x436d8b
mov rax, qword [0x004494d8]
cmp byte [rax], 0
je 0x436d8b
call sub.kernel32.dll_SetConsoleTitleW
mov dword [0x00467288], 0
mov rax, qword [0x004494d8]
mov byte [rax], 0
add rsp, 0x28
ret
Function at 0x437310
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.004372e0
cmp eax, 0xffffffff
jne 0x43755b
mov rcx, rbx
call fcn.00409fc0
mov edi, eax
mov rax, qword [0x004493a0]
mov rcx, qword [rax]
call fcn.0040b3f0
mov r13, rax
mov rcx, qword [0x004493a0]
mov rdx, qword [0x004227f0]
mov r8d, 1
mov r9d, r13d
add r9d, 1
movsxd r9, r9d
call fcn.0040b790
mov ecx, edi
lea rcx, [rcx + rcx*2]
movsxd rcx, ecx
call fcn.00404ae0
mov rcx, qword [0x004493a0]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8], rax
mov rax, qword [0x004493a0]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8]
mov rdx, rbx
call fcn.0041ac50
mov rax, qword [0x004493a0]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov dword [rax + rcx*8 + 8], esi
mov ecx, esi
call sub.msvcrt.dll__get_osfhandle
mov rcx, qword [0x004493a0]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8 + 0x10], rax
mov rax, qword [0x004493a0]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8 + 0x10]
xor rdx, rdx
xor r8, r8
mov r9d, 2
call sub.kernel32.dll_SetFilePointer_1
mov rcx, qword [0x004493a0]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov dword [rcx + rdx*8 + 0x18], eax
mov rax, qword [0x004493a0]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
movsxd rcx, dword [rax + rcx*8 + 0x18]
call fcn.00404ae0
mov rcx, qword [0x004493a0]
mov rcx, qword [rcx]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov qword [rcx + rdx*8 + 0x20], rax
mov rax, qword [0x004493a0]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8 + 0x10]
xor rdx, rdx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_SetFilePointer_1
mov rax, qword [0x004493a0]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8 + 0x10]
mov rax, qword [0x004493a0]
mov rax, qword [rax]
movsxd rdx, r13d
add rdx, rdx
lea rdx, [rdx + rdx*2]
mov rdx, qword [rax + rdx*8 + 0x20]
mov rax, qword [0x004493a0]
mov rax, qword [rax]
movsxd r8, r13d
add r8, r8
lea r8, [r8 + r8*2]
mov r8d, dword [rax + r8*8 + 0x18]
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile_1
mov rax, qword [0x004493a0]
mov rax, qword [rax]
movsxd rcx, r13d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rcx, qword [rax + rcx*8 + 0x20]
xor rax, rax
mov rdx, qword [0x004493a0]
mov rdx, qword [rdx]
movsxd r8, r13d
add r8, r8
lea r8, [r8 + r8*2]
mov edx, dword [rdx + r8*8 + 0x18]
sub edx, 1
cmp eax, edx
jg 0x43753c
add edx, 1
xor byte [rcx], 0xff
add rcx, 1
add eax, 1
cmp eax, edx
jne 0x43752e
nop
mov rax, qword [0x004493a0]
mov rax, qword [rax]
movsxd r13, r13d
add r13, r13
lea r13, [r13 + r13*2]
mov dword [rax + r13*8 + 0x28], 0
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x4377a0
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x20
mov ebx, ecx
mov rsi, rdx
mov edi, r8d
mov r13, r9
or r14d, 0xffffffff
mov rax, qword [0x004493a0]
mov rcx, qword [rax]
call fcn.0040b400
xor rcx, rcx
mov edx, eax
mov eax, ecx
cmp eax, edx
jg 0x4377fe
add edx, 1
mov rcx, qword [0x004493a0]
mov rcx, qword [rcx]
movsxd r8, eax
add r8, r8
lea r8, [r8 + r8*2]
cmp dword [rcx + r8*8 + 8], ebx
jne 0x4377f7
mov r14d, eax
jmp 0x4377fe
add eax, 1
cmp eax, edx
jne 0x4377d7
nop
mov rax, qword [0x004493a0]
mov rax, qword [rax]
movsxd rcx, r14d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rdx, qword [0x004493a0]
mov rdx, qword [rdx]
movsxd r8, r14d
add r8, r8
lea r8, [r8 + r8*2]
mov eax, dword [rax + rcx*8 + 0x18]
sub eax, dword [rdx + r8*8 + 0x28]
cmp eax, edi
jae 0x43783a
mov dword [r13], eax
jmp 0x43783e
mov dword [r13], edi
mov rax, qword [0x004493a0]
mov rax, qword [rax]
movsxd rcx, r14d
add rcx, rcx
lea rcx, [rcx + rcx*2]
mov rax, qword [rax + rcx*8 + 0x20]
mov rcx, qword [0x004493a0]
mov rcx, qword [rcx]
movsxd rdx, r14d
add rdx, rdx
lea rdx, [rdx + rdx*2]
movsxd rcx, dword [rcx + rdx*8 + 0x28]
lea rax, [rax + rcx]
mov rcx, rax
mov rdx, rsi
mov r8d, dword [r13]
call fcn.00404eb0
xor rax, rax
mov ecx, dword [r13]
sub ecx, 1
cmp eax, ecx
jg 0x4378a2
add ecx, 1
xor byte [rsi], 0xff
add rsi, 1
add eax, 1
cmp eax, ecx
jne 0x437894
nop
mov rax, qword [0x004493a0]
mov rax, qword [rax]
movsxd r14, r14d
add r14, r14
lea r14, [r14 + r14*2]
mov ecx, dword [r13]
add dword [rax + r14*8 + 0x28], ecx
mov al, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x439880
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x2a0
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rdx
mov qword [rbp + 0x40], r8
mov qword [rbp + 0x48], r9
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x4398b9
mov rax, qword [rbp + 0x30]
mov rcx, rax
call fcn.00409fc0
mov ebx, eax
jmp 0x4398bc
xor rbx, rbx
xor rax, rax
mov rsi, qword [rbp + 0x2f8]
jmp 0x4398d7
add eax, 1
jmp 0x4398d1
add rsi, 2
cmp word [rsi], 0
jne 0x4398cd
cmp word [rsi], 0
jne 0x4398c8
movsxd rcx, eax
movsxd r8, ebx
mov rax, qword [rbp + 0x2f8]
neg rax
lea rax, [rsi + rax]
mov r9d, 2
cqo
idiv r9
lea rax, [r8 + rax + 1]
imul rcx, rax
add rcx, rcx
call fcn.00404ae0
mov rdi, rax
mov rsi, qword [rbp + 0x2f8]
mov r13, rdi
jmp 0x439959
mov rcx, r13
mov rdx, qword [rbp + 0x30]
mov r8d, ebx
call fcn.00422a40
movsxd rax, ebx
lea rcx, [r13 + rax*2]
mov rdx, rsi
call fcn.00422b70
movsxd rax, ebx
add rax, rax
add r13, rax
jmp 0x43994f
add rsi, 2
add r13, 2
cmp word [rsi], 0
jne 0x439947
add r13, 2
cmp word [rsi], 0
jne 0x43991d
mov word [r13], 0
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
mov r8d, dword [rbp + 0x2f0]
mov r9, rdi
mov byte [rsp + 0x20], 1
call fcn.0043a980
mov esi, eax
mov rcx, rdi
call fcn.00404b10
mov rax, qword [rbp + 0x38]
mov word [rax], 0x2a
mov word [rax + 2], 0
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x50]
call sub.kernel32.dll_FindFirstFileW_1
mov rbx, rax
mov rax, qword [rbp + 0x38]
mov word [rax], 0
cmp rbx, 0xffffffffffffffff
je 0x439a64
mov rcx, qword [rbp + 0x38]
lea rdx, [rbp + 0x7c]
call fcn.00422b70
mov eax, dword [rbp + 0x50]
test eax, 0x10
je 0x439a48
lea rcx, [rbp + 0x7c]
lea rdx, [0x00439a74]
call fcn.0041ad20
test eax, eax
je 0x439a48
lea rcx, [rbp + 0x7c]
lea rdx, [0x00439a78]
call fcn.0041ad20
test eax, eax
je 0x439a48
mov rcx, qword [rbp + 0x38]
call fcn.00422d20
mov rsi, rax
add rsi, 2
mov word [rsi], 0x5c
add rsi, 2
mov word [rsi], 0
mov rcx, qword [rbp + 0x30]
mov rdx, rsi
mov r8, qword [rbp + 0x40]
mov r9, qword [rbp + 0x48]
mov eax, dword [rbp + 0x2f0]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0x2f8]
mov qword [rsp + 0x28], rax
call fcn.00439880
mov esi, eax
mov rcx, rbx
lea rdx, [rbp + 0x50]
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4399be
mov rcx, rbx
call sub.kernel32.dll_FindClose_1
mov eax, esi
lea rsp, [rbp + 0x2a0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x43c680
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rbx
sub rsp, 0xa8
mov qword [rsp + 0x40], 0xffffffff80000002
mov qword [rsp + 0x48], 0xffffffff80000001
cmp byte [0x00448eba], 0
je 0x43c6ab
mov byte [0x00448eb8], 1
xor rsi, rsi
movsxd rax, esi
mov rcx, qword [rsp + rax*8 + 0x40]
lea rdx, [0x0043c8ec]
lea r8, [rsp + 0x98]
call sub.advapi32.dll_RegOpenKeyW
test eax, eax
jne 0x43c8d3
mov dword [rsp + 0x50], 0
lea rbx, [rsp + 0x58]
mov dword [rsp + 0x54], 0x40
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043c936]
xor r8, r8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43c746
cmp dword [rsp + 0x50], 4
jne 0x43c72b
cmp dword [rbx], 0
setne al
mov byte [0x00448ea2], al
jmp 0x43c746
cmp dword [rsp + 0x50], 1
jne 0x43c746
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x00448ea2], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043c956]
xor r8, r8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43c7a5
cmp dword [rsp + 0x50], 4
jne 0x43c78a
cmp dword [rbx], 0
setne al
mov byte [0x00448eb8], al
jmp 0x43c7a5
cmp dword [rsp + 0x50], 1
jne 0x43c7a5
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x00448eb8], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043c978]
xor r8, r8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43c804
cmp dword [rsp + 0x50], 4
jne 0x43c7e9
cmp dword [rbx], 0
setne al
mov byte [0x00448eb9], al
jmp 0x43c804
cmp dword [rsp + 0x50], 1
jne 0x43c804
mov rcx, rbx
call sub.msvcrt.dll__wtol
cmp eax, 1
sete al
mov byte [0x00448eb9], al
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043c99a]
xor r8, r8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43c865
cmp dword [rsp + 0x50], 4
jne 0x43c847
movzx rax, word [rbx]
mov word [0x00448ec0], ax
jmp 0x43c865
cmp dword [rsp + 0x50], 1
jne 0x43c865
mov rcx, rbx
lea rdx, [rsp + 0x38]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov word [0x00448ec0], ax
mov rcx, qword [rsp + 0x98]
lea rdx, [0x0043c9b4]
xor r8, r8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43c8c6
cmp dword [rsp + 0x50], 4
jne 0x43c8a8
movzx rax, word [rbx]
mov word [0x00448ec2], ax
jmp 0x43c8c6
cmp dword [rsp + 0x50], 1
jne 0x43c8c6
mov rcx, rbx
lea rdx, [rsp + 0x38]
xor r8, r8
call sub.msvcrt.dll_wcstol
mov word [0x00448ec2], ax
mov rcx, qword [rsp + 0x98]
call sub.advapi32.dll_RegCloseKey_1
add esi, 1
cmp esi, 2
jne 0x43c6ae
nop
mov al, 1
add rsp, 0xa8
pop rbx
pop rsi
ret
Function at 0x43d740
Capabilities:
Encrypt data using rc6

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rcx, qword [0x00467610]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call fcn.00404eb0
mov dword [0x00467554], 0xb7e15163
mov ebx, 1
lea rax, [0x00467554]
movsxd rcx, ebx
lea rdx, [0x00467550]
movsxd r8, ebx
mov edx, dword [rdx + r8*4]
add edx, 0x9e3779b9
mov dword [rax + rcx*4], edx
add ebx, 1
cmp ebx, 0x2c
jne 0x43d773
nop
xor rbx, rbx
xor rsi, rsi
xor r13, r13
xor r14, r14
mov edi, 1
lea rax, [0x00467554]
movsxd rcx, ebx
mov ecx, dword [rax + rcx*4]
add ecx, r13d
add ecx, r14d
mov edx, 3
call fcn.0043d590
mov r13d, eax
lea rax, [0x00467554]
movsxd rcx, ebx
mov dword [rax + rcx*4], r13d
movsxd rax, esi
mov ecx, dword [rsp + rax*4 + 0x20]
add ecx, r13d
add ecx, r14d
mov edx, r13d
add edx, r14d
call fcn.0043d590
mov r14d, eax
movsxd rax, esi
mov dword [rsp + rax*4 + 0x20], r14d
mov eax, ebx
add eax, 1
mov ecx, 0x2c
cdq
idiv ecx
mov rbx, rdx
mov eax, esi
add eax, 1
mov ecx, 0x10
cdq
idiv ecx
mov rsi, rdx
add edi, 1
cmp edi, 0x85
jne 0x43d7af
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x1406bb4b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1406bb4bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1406bb4cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1406bb4b5
lea eax, [rcx + 1]
jmp 0x1406bb4db
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1406bb4ee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1406bb4d4
sub eax, 3
jb 0x1406bb50e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1406bb55d
sar eax, 1
movsxd rbp, eax
jb 0x1406bb544
jmp 0x1406bb51c
add ebx, ebx
jne 0x1406bb51a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1406bb544
inc ecx
add ebx, ebx
jne 0x1406bb52a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1406bb544
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1406bb53d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1406bb52c
add ecx, 2
jmp 0x1406bb549
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1406bb472
jmp 0x1406bb4bd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x106c00
mov dl, 0x17
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1406bb5a9
cmp rsi, rcx
jae 0x1406bb5b1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1406bb590
cmp al, 0x8f
ja 0x1406bb590
cmp byte [rsi - 2], 0xf
je 0x1406bb596
sub al, 0xe8
cmp al, 1
ja 0x1406bb57a
cmp rsi, rcx
jae 0x1406bb5b1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1406bb580
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1406bb5b1
lodsb al, byte [rsi]
jmp 0x1406bb590
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x6b6000]
mov eax, dword [rdi]
or eax, eax
je 0x1406bb60e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6cb8f8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1406bb5be
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1406bb608
mov qword [rbx], rax
add rbx, 8
jmp 0x1406bb5de
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1406bb652
cmp al, 0xef
ja 0x1406bb63a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1406bb61a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1406bb629
mov eax, dword [rdi]
add rdi, 4
jmp 0x1406bb629
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.1406bb6d1], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1406bb6d1
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1406bb6c1
sub rsp, 0xffffffffffffff80
jmp 0x1400010f6
Function at 0x14000de70
Capabilities:
Terminate process

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x78], 0xfffffffffffffffe
lea rcx, [0x1403956d0]
lea rdx, [0x14037bff6]
call fcn.14000dfd0
mov rcx, rax
lea rdx, [0x14000e370]
call fcn.14000e350
lea rcx, [rbp - 0x48]
call fcn.14000e3c0
jmp 0x14000deb8
nop
mov qword [rbp - 0x50], 0
lea rcx, [rbp - 0x48]
call section..text
test al, 1
jne 0x14000ded7
jmp 0x14000dee3
xor ecx, ecx
call fcn.140030fa0
jmp 0x14000dee3
lea rcx, [rbp - 0x48]
call fcn.1400017b0
test al, 1
jne 0x14000def9
jmp 0x14000df05
xor ecx, ecx
call fcn.140030fa0
jmp 0x14000df05
nop
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x48]
call fcn.140001d10
test al, 1
jne 0x14000df20
jmp 0x14000df2c
xor ecx, ecx
call fcn.140030fa0
jmp 0x14000df2c
lea rcx, [rbp - 0x48]
call fcn.140002000
test al, 1
jne 0x14000df42
jmp 0x14000df4e
xor ecx, ecx
call fcn.140030fa0
jmp 0x14000df4e
lea rcx, [rbp - 0x48]
call fcn.140002c40
nop
mov byte [rbp - 0x51], al
jmp 0x14000df60
mov al, byte [rbp - 0x51]
test al, 1
jne 0x14000df70
jmp 0x14000df7c
xor ecx, ecx
call fcn.140030fa0
jmp 0x14000df7c
jmp 0x14000df81
lea rcx, [rbp - 0x48]
call fcn.14000f110
nop
add rsp, 0x100
pop rbp
ret