joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002bf40
Capabilities:
Move file
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x278
mov rax, qword [0x14014dcf0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r15d, r15d
test r9d, r9d
mov rsi, rdx
mov eax, r15d
setne al
mov r13d, r8d
mov ebp, r9d
mov r14, rcx
add eax, 2
mov qword [rsp + 0x30], r15
mov edi, 1
mov edx, 0x40000000
lea r8d, [rdi + 2]
xor r9d, r9d
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
test ebp, ebp
jne 0x14002c0b4
cmp dword [rsp + 0x2e0], r15d
je 0x14002c0b4
cmp rbx, 0xffffffffffffffff
jne 0x14002c0f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x14002c0ba
lea rax, [rsp + 0x50]
mov r8, rsi
mov edx, 0x105
sub r8, rax
lea rcx, [rsp + 0x50]
nop dword [rax]
lea rax, [rdx + 0x7ffffef9]
test rax, rax
je 0x14002c024
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14002c024
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x14002c000
jmp 0x14002c029
test rdx, rdx
jne 0x14002c02d
sub rcx, 2
mov word [rcx], r15w
lea r8, str._old
lea rcx, [rsp + 0x50]
mov edx, 0x20a
call fcn.1400012f0
lea rdx, [rsp + 0x50]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14002c0ba
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x50]
mov r12d, eax
cmp rbx, 0xffffffffffffffff
jne 0x14002c0a8
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x14002c0ba
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp rbx, 0xffffffffffffffff
jne 0x14002c0da
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x140196ee0]
lea rdx, str.SaveBufferToFile:748
call fcn.140025910
xor eax, eax
jmp 0x14002c158
test ebp, ebp
je 0x14002c0f2
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
mov r8d, r13d
mov rdx, r14
mov rcx, rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002c116
cmp r13d, dword [rsp + 0x40]
je 0x14002c13d
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14002c12a
test ebp, ebp
je 0x14002c13d
mov rcx, qword [0x140196ee0]
lea rdx, str.SaveBufferToFile:766
call fcn.140025910
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x14002c156
test ebp, ebp
jne 0x14002c156
mov rcx, rsi
call fcn.1400a5084
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400a4e70
add rsp, 0x278
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002ce70
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14014dcf0]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rcx, rdi
mov dword [rsp + 0x30], 0x238
mov rsi, rax
call fcn.140022790
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14002cf8b
mov qword [rsp + 0x298], rbx
mov qword [rsp + 0x2a0], rbp
xor ebp, ebp
nop word [rax + rax]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, str.ctfmon.exe
mov rcx, rax
call fcn.1400a6f40
test eax, eax
jne 0x14002cf66
mov rbx, qword [rdi + 8]
mov ecx, dword [rsp + 0x38]
mov rax, qword [rbx + 8]
cmp byte [rax + 0x21], bpl
jne 0x14002cf27
cmp dword [rax + 0x18], ecx
jae 0x14002cf1b
mov rax, qword [rax + 0x10]
jmp 0x14002cf21
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x21], bpl
je 0x14002cf10
cmp rbx, qword [rdi + 8]
je 0x14002cf32
cmp ecx, dword [rbx + 0x18]
jae 0x14002cf5f
mov dword [rsp + 0x20], ecx
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x24], ebp
call fcn.1400232b0
lea rdx, [rsp + 0x28]
mov r8, rbx
mov rcx, rdi
mov r9, rax
call fcn.140022c10
mov rbx, qword [rsp + 0x28]
mov dword [rbx + 0x1c], 1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14002cee0
mov rbp, qword [rsp + 0x2a0]
mov rbx, qword [rsp + 0x298]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400a4e70
mov rsi, qword [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
add rsp, 0x280
pop rdi
ret
Function at 0x140037740
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r12
sub rsp, 0x50
mov rbp, rcx
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetActiveProcessorGroupCount
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.Kernel32.dll
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetActiveProcessorCount
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rbx, rbx
je 0x1400377f1
test rax, rax
je 0x1400377f1
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
call rbx
xor edi, edi
movzx esi, ax
movzx ebx, di
cmp di, ax
jae 0x1400377ca
movzx ecx, bx
call r12
inc bx
mov r11d, eax
add rdi, r11
cmp bx, si
jb 0x1400377b6
mov rax, rdi
test rbp, rbp
je 0x1400377d6
mov word [rbp], si
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
test rbp, rbp
je 0x1400377e0
mov rbx, qword [rsp + 0x70]
mov ecx, 1
mov word [rbp], cx
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
Function at 0x1400382b0
Capabilities:
Hash data with crc32
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x10060
call fcn.1400a5130
sub rsp, rax
mov rax, qword [0x14014dcf0]
xor rax, rsp
mov qword [rsp + 0x10050], rax
xor ebp, ebp
mov rbx, r8
mov r15d, edx
mov r13, rcx
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 3]
xor r9d, r9d
mov edx, 0x80000100
mov rcx, rbx
mov dword [rsp + 0x28], ebp
or r12d, 0xffffffff
mov esi, ebp
mov edi, ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor r9d, r9d
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140038436
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x48], r12d
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov qword [rsp + 0x20], rbp
mov ebp, 0x10000
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, r14
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
test eax, eax
je 0x140038432
lea r11, [0x140147b20]
nop word [rax + rax]
mov r9d, dword [rsp + 0x40]
test r9d, r9d
je 0x14003846c
xor edx, edx
test r9d, r9d
je 0x140038404
mov r10d, r12d
lea r8, [rsp + 0x50]
shr r10d, 8
movzx ecx, byte [r8]
mov eax, r12d
add esi, 4
xor rcx, rax
add rbx, 4
movzx eax, cl
mov r12d, dword [r11 + rax*4]
xor r12d, r10d
mov eax, r12d
mov r10d, r12d
shr eax, 0x18
shr r10d, 8
add byte [rbx + r13 - 4], al
mov eax, r12d
shr eax, 0x10
add byte [rbx + r13 - 3], al
add byte [rbx + r13 - 2], r10b
add byte [rbx + r13 - 1], r12b
cmp esi, r15d
jb 0x1400383ec
xor esi, esi
xor ebx, ebx
inc edi
cmp edi, 0x100000
jae 0x140038481
inc edx
inc r8
cmp edx, r9d
jb 0x1400383a1
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, ebp
mov rcx, r14
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea r11, [0x140147b20]
test eax, eax
jne 0x140038380
xor esi, esi
jmp 0x140038486
mov qword [rsp + 0x30], rbp
mov edx, 0x80000000
mov r8d, 3
mov rcx, rbx
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140038342
xor eax, eax
jmp 0x1400384c5
test eax, eax
je 0x140038432
test edi, edi
jne 0x140038481
lea ecx, [rdi + 0x26]
xor esi, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140038486
mov esi, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [rsp + 0x50]
xor eax, eax
mov rcx, rbp
lea r11, [rsp + 0x50]
rep stosb byte [rdi], al
nop dword [rax + rax]
mov byte [r11], al
inc r11
dec rbp
jne 0x1400384b0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rcx, qword [rsp + 0x10050]
xor rcx, rsp
call fcn.1400a4e70
mov rbx, qword [rsp + 0x100a8]
add rsp, 0x10060
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003b900
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r13, qword [rsp + 0x70]
movsxd rdi, edx
mov rdx, rcx
mov ebp, r8d
lea rcx, [r13 + 0x180]
mov r8, rdi
mov esi, r9d
lea r14, [r13 + 0x1c4]
call fcn.1400a4990
lea edx, [rdi + 4]
lea rcx, [r13 + 0x180]
bswap esi
mov r8, r13
mov dword [rdi + r13 + 0x180], esi
call fcn.14003b870
mov rax, qword [r13 + 0x180]
mov qword [r14], rax
mov rax, qword [r13 + 0x188]
mov qword [r14 + 8], rax
mov rax, qword [r13 + 0x190]
mov qword [r14 + 0x10], rax
mov rax, qword [r13 + 0x198]
mov qword [r14 + 0x18], rax
cmp ebp, 1
jbe 0x14003ba5e
lea rbx, [r13 + 0x180]
mov qword [rsp + 0x50], r15
lea edi, [rbp - 1]
sub rbx, r14
nop
lea rdx, [r13 + 0x80]
mov rcx, r13
mov r8d, 0x80
call fcn.1400a4990
lea rcx, [r13 + 0x180]
mov r8, r13
mov edx, 0x20
call fcn.14005beb0
lea rcx, [r13 + 0x180]
mov rdx, r13
call fcn.14005bde0
lea rdx, [r13 + 0x100]
mov rcx, r13
mov r8d, 0x80
call fcn.1400a4990
lea rcx, [r13 + 0x180]
mov r8, r13
mov edx, 0x20
call fcn.14005beb0
lea rcx, [r13 + 0x180]
mov rdx, r13
call fcn.14005bde0
mov r11, r14
mov ecx, 8
nop dword [rax + rax]
movzx eax, byte [rbx + r11]
add r11, 4
xor byte [r11 - 4], al
movzx eax, byte [rbx + r11 - 3]
xor byte [r11 - 3], al
movzx eax, byte [rbx + r11 - 2]
xor byte [r11 - 2], al
movzx eax, byte [rbx + r11 - 1]
xor byte [r11 - 1], al
dec rcx
jne 0x14003ba20
dec rdi
jne 0x14003b9a0
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14003bde0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r12, qword [rsp + 0x70]
movsxd rdi, edx
mov rdx, rcx
mov ebp, r8d
lea rcx, [r12 + 0x2a0]
mov r8, rdi
mov esi, r9d
lea r14, [r12 + 0x320]
call fcn.1400a4990
lea edx, [rdi + 4]
lea rcx, [r12 + 0x2a0]
bswap esi
mov r8, r12
mov dword [rdi + r12 + 0x2a0], esi
call fcn.14003bd50
mov rax, qword [r12 + 0x2a0]
mov qword [r14], rax
mov rax, qword [r12 + reloc.SHELL32.dll_IsUserAnAdmin]
mov qword [r14 + 8], rax
mov rax, qword [r12 + 0x2b0]
mov qword [r14 + 0x10], rax
mov rax, qword [r12 + 0x2b8]
mov qword [r14 + 0x18], rax
mov rax, qword [r12 + 0x2c0]
mov qword [r14 + 0x20], rax
mov rax, qword [r12 + 0x2c8]
mov qword [r14 + 0x28], rax
mov rax, qword [r12 + 0x2d0]
mov qword [r14 + 0x30], rax
mov rax, qword [r12 + 0x2d8]
mov qword [r14 + 0x38], rax
cmp ebp, 1
jbe 0x14003bf7e
lea rbx, [r12 + 0x2a0]
mov qword [rsp + 0x50], r15
lea edi, [rbp - 1]
sub rbx, r14
nop word [rax + rax]
lea rdx, [r12 + 0xe0]
mov rcx, r12
mov r8d, 0xe0
call fcn.1400a4990
lea rcx, [r12 + 0x2a0]
mov r8, r12
mov edx, 0x40
call fcn.14005ad90
lea rcx, [r12 + 0x2a0]
mov rdx, r12
call fcn.14005ac90
lea rdx, [r12 + 0x1c0]
mov rcx, r12
mov r8d, 0xe0
call fcn.1400a4990
lea rcx, [r12 + 0x2a0]
mov r8, r12
mov edx, 0x40
call fcn.14005ad90
lea rcx, [r12 + 0x2a0]
mov rdx, r12
call fcn.14005ac90
mov r11, r14
mov ecx, 0x10
nop
movzx eax, byte [rbx + r11]
add r11, 4
xor byte [r11 - 4], al
movzx eax, byte [rbx + r11 - 3]
xor byte [r11 - 3], al
movzx eax, byte [rbx + r11 - 2]
xor byte [r11 - 2], al
movzx eax, byte [rbx + r11 - 1]
xor byte [r11 - 1], al
dec rcx
jne 0x14003bf40
dec rdi
jne 0x14003bec0
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14003c300
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r13, qword [rsp + 0x70]
movsxd rdi, edx
mov rdx, rcx
mov ebp, r8d
lea rcx, [r13 + 0x120]
mov r8, rdi
mov esi, r9d
lea r14, [r13 + 0x164]
call fcn.1400a4990
lea edx, [rdi + 4]
lea rcx, [r13 + 0x120]
bswap esi
mov r8, r13
mov dword [rdi + r13 + 0x120], esi
call fcn.14003c270
mov rax, qword [r13 + 0x120]
mov qword [r14], rax
mov rax, qword [r13 + 0x128]
mov qword [r14 + 8], rax
mov eax, dword [r13 + 0x130]
mov dword [r14 + 0x10], eax
cmp ebp, 1
jbe 0x14003c468
lea rbx, [r13 + 0x120]
mov qword [rsp + 0x50], r15
lea edi, [rbp - 1]
sub rbx, r14
nop word [rax + rax]
lea rdx, [r13 + 0x60]
mov rcx, r13
mov r8d, 0x60
call fcn.1400a4990
lea rdx, [r13 + 0x120]
mov r8d, 0x14
mov rcx, r13
call fcn.14005d410
lea rcx, [r13 + 0x120]
mov rdx, r13
call fcn.14005d5b0
lea rdx, [r13 + 0xc0]
mov rcx, r13
mov r8d, 0x60
call fcn.1400a4990
lea rdx, [r13 + 0x120]
mov r8d, 0x14
mov rcx, r13
call fcn.14005d410
lea rcx, [r13 + 0x120]
mov rdx, r13
call fcn.14005d5b0
mov r11, r14
mov ecx, 4
nop word [rax + rax]
movzx eax, byte [rbx + r11]
add r11, 5
xor byte [r11 - 5], al
movzx eax, byte [rbx + r11 - 4]
xor byte [r11 - 4], al
movzx eax, byte [rbx + r11 - 3]
xor byte [r11 - 3], al
movzx eax, byte [rbx + r11 - 2]
xor byte [r11 - 2], al
movzx eax, byte [rbx + r11 - 1]
xor byte [r11 - 1], al
dec rcx
jne 0x14003c420
dec rdi
jne 0x14003c3a0
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x14003c760
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
lea rdx, [r8 + 0x90]
mov rsi, r8
mov rcx, r8
mov r8d, SysAllocStringByteLen
call fcn.1400a4990
mov r8, rsi
mov edx, ebx
mov rcx, rdi
call fcn.140059910
mov rdx, rdi
mov rcx, rsi
call fcn.140059a00
lea rdx, [rsi + 0x120]
mov rcx, rsi
mov r8d, SysAllocStringByteLen
call fcn.1400a4990
mov r8, rsi
mov edx, 0x40
mov rcx, rdi
call fcn.140059910
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140059a00
Function at 0x14003c7f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r12, qword [rsp + 0x70]
movsxd rdi, edx
mov rdx, rcx
mov ebp, r8d
lea rcx, [r12 + 0x1b0]
mov r8, rdi
mov esi, r9d
lea r14, [r12 + 0x1f4]
call fcn.1400a4990
lea edx, [rdi + 4]
lea rcx, [r12 + 0x1b0]
bswap esi
mov r8, r12
mov dword [rdi + r12 + 0x1b0], esi
call fcn.14003c760
mov rax, qword [r12 + 0x1b0]
mov qword [r14], rax
mov rax, qword [r12 + 0x1b8]
mov qword [r14 + 8], rax
mov rax, qword [r12 + 0x1c0]
mov qword [r14 + 0x10], rax
mov rax, qword [r12 + 0x1c8]
mov qword [r14 + 0x18], rax
mov rax, qword [r12 + 0x1d0]
mov qword [r14 + 0x20], rax
mov rax, qword [r12 + 0x1d8]
mov qword [r14 + 0x28], rax
mov rax, qword [r12 + 0x1e0]
mov qword [r14 + 0x30], rax
mov rax, qword [r12 + 0x1e8]
mov qword [r14 + 0x38], rax
cmp ebp, 1
jbe 0x14003c98e
lea rbx, [r12 + 0x1b0]
mov qword [rsp + 0x50], r15
lea edi, [rbp - 1]
sub rbx, r14
nop word [rax + rax]
lea rdx, [r12 + 0x90]
mov rcx, r12
mov r8d, SysAllocStringByteLen
call fcn.1400a4990
lea rcx, [r12 + 0x1b0]
mov r8, r12
mov edx, 0x40
call fcn.140059910
lea rdx, [r12 + 0x1b0]
mov rcx, r12
call fcn.140059a00
lea rdx, [r12 + 0x120]
mov rcx, r12
mov r8d, SysAllocStringByteLen
call fcn.1400a4990
lea rcx, [r12 + 0x1b0]
mov r8, r12
mov edx, 0x40
call fcn.140059910
lea rdx, [r12 + 0x1b0]
mov rcx, r12
call fcn.140059a00
mov r11, r14
mov ecx, 0x10
nop
movzx eax, byte [rbx + r11]
add r11, 4
xor byte [r11 - 4], al
movzx eax, byte [rbx + r11 - 3]
xor byte [r11 - 3], al
movzx eax, byte [rbx + r11 - 2]
xor byte [r11 - 2], al
movzx eax, byte [rbx + r11 - 1]
xor byte [r11 - 1], al
dec rcx
jne 0x14003c950
dec rdi
jne 0x14003c8d0
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14003cd20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r12, qword [rsp + 0x70]
movsxd rdi, edx
mov rdx, rcx
mov ebp, r8d
lea rcx, [r12 + 0x3f0]
mov r8, rdi
mov esi, r9d
lea r14, [r12 + 0x434]
call fcn.1400a4990
lea edx, [rdi + 4]
lea rcx, [r12 + 0x3f0]
bswap esi
mov r8, r12
mov dword [rdi + r12 + 0x3f0], esi
call fcn.14003cc90
mov rax, qword [r12 + 0x3f0]
mov qword [r14], rax
mov rax, qword [r12 + 0x3f8]
mov qword [r14 + 8], rax
mov rax, qword [r12 + 0x400]
mov qword [r14 + 0x10], rax
mov rax, qword [r12 + 0x408]
mov qword [r14 + 0x18], rax
mov rax, qword [r12 + 0x410]
mov qword [r14 + 0x20], rax
mov rax, qword [r12 + 0x418]
mov qword [r14 + 0x28], rax
mov rax, qword [r12 + 0x420]
mov qword [r14 + 0x30], rax
mov rax, qword [r12 + 0x428]
mov qword [r14 + 0x38], rax
cmp ebp, 1
jbe 0x14003cebe
lea rbx, [r12 + 0x3f0]
mov qword [rsp + 0x50], r15
lea edi, [rbp - 1]
sub rbx, r14
nop word [rax + rax]
lea rdx, [r12 + 0x150]
mov rcx, r12
mov r8d, 0x150
call fcn.1400a4990
lea rdx, [r12 + 0x3f0]
mov r8d, 0x40
mov rcx, r12
call fcn.1400607b0
lea rdx, [r12 + 0x3f0]
mov rcx, r12
call fcn.140060940
lea rdx, [r12 + 0x2a0]
mov rcx, r12
mov r8d, 0x150
call fcn.1400a4990
lea rdx, [r12 + 0x3f0]
mov r8d, 0x40
mov rcx, r12
call fcn.1400607b0
lea rdx, [r12 + 0x3f0]
mov rcx, r12
call fcn.140060940
mov r11, r14
mov ecx, 0x10
movzx eax, byte [rbx + r11]
add r11, 4
xor byte [r11 - 4], al
movzx eax, byte [rbx + r11 - 3]
xor byte [r11 - 3], al
movzx eax, byte [rbx + r11 - 2]
xor byte [r11 - 2], al
movzx eax, byte [rbx + r11 - 1]
xor byte [r11 - 1], al
dec rcx
jne 0x14003ce80
dec rdi
jne 0x14003ce00
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14003f400
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
cmp dword [0x1401a6c18], 0
mov esi, r9d
mov ebx, r8d
mov rbp, rdx
mov rdi, rcx
mov r12d, 1
je 0x14003f43c
cmp dword [0x140148950], 0
jne 0x14003f444
mov byte [0], 0
lea rcx, [0x1401ade40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r13d, r13d
cmp dword [0x1401a6c24], r13d
je 0x14003f461
test esi, esi
je 0x14003f488
call fcn.14003eb70
test eax, eax
jne 0x14003f481
lea r8, str.RandgetBytesFull:434
lea edx, [rax + 0x24]
mov rcx, rdi
call fcn.140028ea0
mov r12d, r13d
jmp 0x14003f488
mov dword [0x1401a6c24], r12d
call fcn.14003f030
test eax, eax
jne 0x14003f4a6
lea r8, str.RandgetBytesFull:443
lea edx, [rax + 0x24]
mov rcx, rdi
call fcn.140028ea0
mov r12d, r13d
cmp dword [rsp + 0x60], r13d
jne 0x14003f4d8
cmp ebx, 0x140
jle 0x14003f4d8
lea rcx, [0x1400d40e0]
mov rdx, rdi
call fcn.1400181d0
lea rcx, [0x1401ade40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x14003f5dd
test ebx, ebx
jle 0x14003f5c0
mov r8, qword [0x1401a6c10]
mov edx, dword [0x1401a6c20]
nop dword [rax]
cmp ebx, 0x140
jle 0x14003f501
mov eax, 0x140
sub ebx, eax
jmp 0x14003f506
mov eax, ebx
mov ebx, r13d
mov r9, r13
movsxd rdi, eax
test eax, eax
jle 0x14003f536
movsxd rax, edx
inc edx
movzx ecx, byte [rax + r8]
cmp edx, 0x140
cmove edx, r13d
mov byte [r9 + rbp], cl
inc r9
cmp r9, rdi
jl 0x14003f510
mov dword [0x1401a6c20], edx
mov rcx, r13
nop dword [rax]
mov eax, dword [r8 + rcx*4]
add rcx, 2
not eax
mov dword [r8 + rcx*4 - 8], eax
mov eax, dword [r8 + rcx*4 - 4]
not eax
mov dword [r8 + rcx*4 - 4], eax
cmp rcx, 0x50
jl 0x14003f540
call fcn.14003f030
mov r8, qword [0x1401a6c10]
mov edx, dword [0x1401a6c20]
test eax, eax
cmove r12d, r13d
test rdi, rdi
jle 0x14003f5b5
mov r9, rbp
mov r10, rdi
nop word [rax + rax]
movsxd rax, edx
inc edx
movzx ecx, byte [rax + r8]
xor byte [r9], cl
cmp edx, 0x140
cmove edx, r13d
inc r9
dec r10
jne 0x14003f590
mov dword [0x1401a6c20], edx
add rbp, rdi
test ebx, ebx
jg 0x14003f4f0
lea rcx, [0x1401ade40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r12d, r12d
jne 0x14003f5da
mov byte [0], r13b
mov eax, r12d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x14003f890
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x38]
mov rsi, rdx
mov rdi, r8
mov rdx, rcx
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003f90f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x14003f921
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x30], 4
mov rsi, qword [rsp + 0x58]
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14003f950
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x30]
mov rsi, rdx
mov rbx, r8
mov dword [rsp + 0x68], r9d
mov rdx, rcx
xor edi, edi
xor r8d, r8d
mov r9d, 0x20019
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14003f9aa
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
mov ebx, edi
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
test ebx, ebx
mov rbx, qword [rsp + 0x50]
cmovne edi, dword [rsp + 0x68]
mov eax, edi
add rsp, 0x40
pop rdi
ret

Function at 0x14003fa00
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
push rbx
sub rsp, 0x60
lea rax, [r11 + 0x20]
mov rbx, rdx
xor edx, edx
mov qword [r11 - 0x28], rax
lea rax, [r11 - 0x18]
mov qword [r11 - 0x18], rdx
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rdx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edx
mov rdx, rcx
xor r9d, r9d
mov rcx, 0xffffffff80000002
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14003fa5f
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x80]
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
je 0x14003faac
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x60
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x60
pop rbx
ret