joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400420d8
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2030
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test bl, bl
jne 0x140042160
lea rdx, [rsp + 0x1020]
mov r8d, 0x800
mov rcx, rdi
call fcn.1400509f0
test al, al
je 0x140042160
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.1400509f0
test al, al
je 0x140042160
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x1020]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.1400e9d00
lea r11, [rsp + 0x2030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140042188
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x1400421e6
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.1400509f0
test al, al
je 0x1400421e6
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400e9d00
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x14004220c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x14004226a
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.1400509f0
test al, al
je 0x14004226a
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400e9d00
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x1400425a0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx + 0x20], rbx
jbe 0x1400425f3
mov qword [rcx + 0x20], rbx
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.1400ea880
mov rcx, qword [rdi]
lea eax, [rbx + 0x54]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp eax, ebx
sete al
jmp 0x1400425f5
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140042a00
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, r8d
mov dil, dl
mov rbx, rcx
call fcn.140050400
cmp word [rax], 0x2e
je 0x140042a53
cmp word [rax], 0x20
je 0x140042a53
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140042a88
mov rcx, rbx
call fcn.140041fcc
cmp eax, 0xffffffff
jne 0x140042a9b
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call fcn.1400509f0
test al, al
je 0x140042a9b
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140042a9b
test dil, dil
je 0x140042a97
mov edx, esi
mov rcx, rbx
call fcn.140042048
xor eax, eax
jmp 0x140042ab5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140042ab0
cmp eax, 3
mov eax, 1
jne 0x140042ab5
mov eax, 2
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400e9d00
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140043c40
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
mov eax, 0x1280
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1270], rax
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r12d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x140043cf4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140043d1e
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rsi
call fcn.1400509f0
test al, al
je 0x140043ccb
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140043d1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140043ce7
cmp eax, 3
je 0x140043ce7
cmp eax, 0x12
je 0x140043ce7
mov eax, 1
jmp 0x140043ce9
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x140043dd5
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140043d14
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x140043dd5
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.140065d2c
lea rdx, [rsp + 0x4c]
mov r8, r12
mov rcx, rdi
call fcn.140050ec8
mov eax, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x3c]
shl r11, 0x20
lea rcx, [rdi + 0x1010]
lea rdx, [rsp + 0x34]
add r11, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1000], r11
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1038], rax
call fcn.14006720c
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.14006720c
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.14006720c
bt dword [rsp + 0x20], 0xa
jae 0x140043dcd
cmp dword [rsp + 0x44], 0xa0000003
jne 0x140043dcd
mov eax, 1
jmp 0x140043dcf
xor eax, eax
mov byte [rdi + 0x100e], al
and dword [rdi + 0x1040], 0
mov rax, rbx
mov rcx, qword [rsp + 0x1270]
xor rcx, rsp
call fcn.1400e9d00
mov rbx, qword [rsp + 0x12b8]
add rsp, 0x1280
pop r12
pop rdi
pop rsi
ret
Function at 0x140048480
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0xe8]
mov bl, dl
xor edx, edx
mov r8d, 0x4000
call fcn.1400ea880
xor r11d, r11d
cmp bl, r11b
je 0x14004858a
cmp byte [rdi + 0x6169], r11b
jne 0x14004858a
mov eax, dword [rdi + 0x110]
mov ecx, dword [rdi + 0x6164]
shr eax, 2
cmp ecx, eax
ja 0x14004858a
mov r10d, r11d
cmp ecx, r11d
jbe 0x1400485cb
mov ebx, 0x3ffff
mov rcx, qword [rdi + 0xe0]
mov r9d, r10d
inc r10d
movzx eax, byte [rcx + r9 + 1]
movzx r8d, byte [rcx + r9]
imul r8d, r8d, 0x2773
xor r8d, eax
movzx eax, byte [rcx + r9 + 2]
imul r8d, r8d, 0x2773
xor r8d, eax
mov rax, qword [rdi + 0xf0]
mov ecx, r8d
and rcx, rbx
imul r8d, r8d, 0x2773
mov word [rax + rcx*2], r11w
mov rax, qword [rdi + 0xe0]
movzx edx, byte [rax + r9 + 3]
mov rax, qword [rdi + 0xf8]
xor edx, r8d
mov ecx, edx
and rcx, rbx
imul edx, edx, 0x2773
mov dword [rax + rcx*4], r11d
mov rax, qword [rdi + 0xe0]
movzx ecx, byte [rax + r9 + 4]
mov eax, edx
xor rcx, rax
mov eax, dword [rdi + 0x114]
and rcx, rax
mov rax, qword [rdi + 0x100]
mov dword [rax + rcx*4], r11d
cmp r10d, dword [rdi + 0x6164]
jb 0x1400484e4
jmp 0x1400485cb
mov rcx, qword [rdi + 0xf0]
xor edx, edx
mov r8d, 0x80000
call fcn.1400ea880
mov rcx, qword [rdi + 0xf8]
xor edx, edx
mov r8d, 0x100000
call fcn.1400ea880
mov r8d, dword [rdi + 0x110]
mov rcx, qword [rdi + 0x100]
shl r8, 2
xor edx, edx
call fcn.1400ea880
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14004a490
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov ebp, dword [rsp + 0x58]
xor r11d, r11d
mov eax, r9d
lea esi, [r11 + 1]
mov r12d, r8d
mov r10d, 0x400
cmp ebp, esi
mov r14d, r11d
mov r9d, esi
jl 0x14004a574
lea eax, [rbp + rbp]
lea ecx, [rsi + 7]
sub r12d, eax
mov ebx, r11d
mov edi, r12d
mov r8, rdx
mov r15d, 4
cmp edi, ecx
mov eax, edi
mov r11, r8
cmovg eax, ecx
movsxd r13, eax
add r13, r8
cmp r8, r13
jae 0x14004a538
lea rbp, [r8 + rsi]
mov dl, byte [rbp]
mov al, byte [rsi + rbp]
sub al, dl
sub dl, byte [r11]
movsx ecx, al
movsx eax, dl
sub eax, ecx
mov ecx, 0x20
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
cmovl ecx, eax
inc r11
inc rbp
add ebx, ecx
cmp r11, r13
jb 0x14004a504
mov ecx, 8
add r8, 0x40
sub edi, 0x40
sub r15, 1
jne 0x14004a4eb
mov ebp, dword [rsp + 0x58]
xor r11d, r11d
cmp ebx, r10d
jge 0x14004a55c
cmp ebx, 0x10
mov r14d, r9d
mov r10d, ebx
jl 0x14004a570
mov rdx, qword [rsp + 0x40]
inc r9d
inc rsi
cmp r9d, ebp
jle 0x14004a4dc
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
imul r10d, eax
cmp r10d, 0xc000
cmovl r11d, r14d
mov eax, r11d
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14004ae10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0xa0
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x90], rax
and dword [rsp + 8], 0
and dword [rsp + 4], 0
and dword [rsp], 0
lea ebp, [r8 - 0x78]
xor r9d, r9d
lea rbx, [rdx + 2]
lea r8, [rsp]
cmp r9d, ebp
jge 0x14004aedf
mov r10d, dword [r8]
mov ecx, ebp
mov eax, 0x88888889
sub ecx, r9d
lea r12, [rsp + 0x10]
mov rdi, rbx
dec ecx
mul ecx
shr edx, 0xa
lea esi, [rdx + 1]
xor edx, edx
mov r11, rdi
mov cl, byte [r11 - 1]
mov al, byte [r11 - 2]
add rdx, 3
sub al, cl
mov byte [rsp + rdx + 0xe], cl
mov byte [rsp + rdx + 0xd], al
mov al, byte [r11]
add r11, 3
sub al, cl
cmp rdx, 0x78
mov byte [rsp + rdx + 0xf], al
jl 0x14004ae84
mov ecx, 3
mov al, byte [rsp + rcx + 0x10]
inc rcx
sub al, byte [r12 + rcx - 4]
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add r10d, eax
cmp rcx, 0x78
jl 0x14004aeb2
add rdi, 0x780
sub rsi, 1
jne 0x14004ae7f
mov dword [r8], r10d
inc r9d
add r8, 4
inc rbx
cmp r9d, 2
jle 0x14004ae5b
mov eax, dword [rsp]
mov ecx, dword [rsp + 4]
cmp eax, ecx
ja 0x14004af08
cmp eax, dword [rsp + 8]
ja 0x14004af08
xor eax, eax
jmp 0x14004af12
cmp dword [rsp + 8], ecx
sbb eax, eax
neg eax
inc eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400e9d00
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x1400505ac
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov sil, r8b
mov rbp, rdx
mov rbx, rcx
call fcn.140099f78
xor r12d, r12d
cmp al, r12b
jne 0x1400505db
xor al, al
jmp 0x140050676
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea r8, [rsp + 0x68]
mov edx, 0x1a
xor ecx, ecx
mov word [rbx], r12w
mov dil, r12b
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, r12d
jne 0x140050663
mov rcx, qword [rsp + 0x68]
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, r12d
je 0x140050663
cmp word [rbx], r12w
je 0x140050663
mov rdx, rbp
mov rcx, rbx
call fcn.1400504d4
lea rdx, [0x14010d518]
mov r8, rbp
mov rcx, rbx
call fcn.140065dac
mov rcx, rbx
call fcn.140042584
mov dil, al
cmp al, r12b
jne 0x140050663
cmp sil, r12b
je 0x140050663
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140042a00
cmp eax, r12d
sete dil
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov al, dil
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400509f0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1030
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1020], rax
xor r14d, r14d
mov r12, r8
mov rsi, rdx
mov rbx, rcx
cmp word [rcx], r14w
je 0x140050c26
call fcn.140050474
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r13, [rcx - 1]
mov rcx, rbx
call fcn.1400508b8
cmp al, r14b
je 0x140050b13
mov rcx, rbx
call fcn.140050474
cmp al, r14b
je 0x140050aa2
lea rax, [r13 + 4]
cmp r12, rax
jbe 0x140050c26
lea r8d, [r14 + 4]
lea rdx, [0x14010d548]
mov rcx, rsi
call fcn.1400edd2c
sub rsi, rbx
movzx ecx, word [rbx]
add rbx, 2
mov word [rsi + rbx + 6], cx
cmp cx, r14w
jne 0x140050a89
mov al, 1
jmp 0x140050c28
mov ebp, 0x5c
cmp word [rbx], bp
jne 0x140050c26
add rbx, 2
cmp word [rbx], bp
jne 0x140050c26
lea rax, [r13 + 6]
cmp r12, rax
jbe 0x140050c26
lea r8d, [rbp - 0x58]
lea rdx, [0x14010d548]
mov rcx, rsi
call fcn.1400edd2c
lea rdx, [0x14010d540]
mov rcx, rsi
sub rcx, rdx
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx + 6], ax
cmp ax, r14w
jne 0x140050aea
sub rsi, rbx
movzx eax, word [rbx]
add rbx, 2
mov word [rsi + rbx + 0xc], ax
cmp ax, r14w
jne 0x140050aff
jmp 0x140050a9b
mov edi, 0x7ff
lea rdx, [rsp + 0x20]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, r14d
je 0x140050c26
cmp eax, edi
ja 0x140050c26
movzx eax, word [rbx]
mov ebp, 0x5c
cmp eax, ebp
je 0x140050bda
cmp eax, 0x2f
je 0x140050bda
lea edx, [rdi + 1]
lea rcx, [rsp + 0x20]
call fcn.1400504d4
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
lea rax, [rcx + r13 + 3]
cmp r12, rax
jbe 0x140050c26
lea r8d, [rbp - 0x58]
lea rdx, [0x14010d548]
mov rcx, rsi
call fcn.1400edd2c
lea rax, [rsp + 0x20]
mov rcx, rsi
sub rcx, rax
lea rdx, [rsp + 0x20]
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx + 6], ax
cmp ax, r14w
jne 0x140050b9e
cmp word [rbx], 0x2e
jne 0x140050bc7
movzx eax, word [rbx + 2]
cmp eax, ebp
je 0x140050bc3
cmp eax, 0x2f
jne 0x140050bc7
add rbx, 4
mov r8, r12
mov rdx, rbx
mov rcx, rsi
call fcn.140065dac
jmp 0x140050a9b
lea rax, [r13 + 6]
cmp r12, rax
jbe 0x140050c26
lea rdx, [0x14010d548]
mov r8d, 4
mov rcx, rsi
call fcn.1400edd2c
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x20]
mov r8d, 2
call fcn.1400edd2c
sub rsi, rbx
movzx eax, word [rbx]
add rbx, 2
mov word [rsi + rbx + 0xa], ax
cmp ax, r14w
jne 0x140050c0f
jmp 0x140050a9b
xor al, al
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400e9d00
add rsp, 0x1030
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140050ff4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rdx
lea rax, [rsp + 0x30]
mov sil, r8b
mov rbx, rcx
mov word [rcx], bp
lea r9d, [rbp + 1]
lea rdx, str.SoftwareWinRARPaths
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x14005106f
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rdx, str.AppData
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x60], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rbx], bp
je 0x140051081
mov rcx, rbx
call fcn.140042584
cmp al, bpl
jne 0x1400510aa
mov r8b, sil
mov rdx, rdi
mov rcx, rbx
call fcn.1400505ac
cmp al, bpl
jne 0x1400510aa
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call fcn.140050fc0
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140055094
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
and dword [rcx + 4], 0
and dword [rcx], 0
mov eax, 0x8000
cmp r8d, eax
mov r12, rcx
mov rcx, qword [rcx + 0x10]
cmovb eax, r8d
mov ebp, r8d
mov rbx, r9
mov r8d, eax
mov rsi, rdx
call fcn.1400ea530
xor dil, dil
cmp ebp, 1
jbe 0x1400550f3
lea rcx, [rsi + 1]
lea edx, [rbp - 1]
xor dil, byte [rcx]
inc rcx
sub rdx, 1
jne 0x1400550e7
mov edx, 8
mov rcx, r12
call fcn.140044810
and dword [rbx + 0x28], 0
cmp dil, byte [rsi]
jne 0x140055165
mov r8d, ebp
mov rdx, rsi
mov rcx, r12
call fcn.140054f50
mov edi, eax
test eax, eax
je 0x140055165
mov edx, 1
mov rcx, rbx
call fcn.140054ff4
movsxd rcx, dword [rbx + 0x28]
mov rdx, rcx
inc ecx
mov dword [rbx + 0x28], ecx
imul rdx, rdx, 0x38
add rdx, qword [rbx]
lea rax, [rdx + 0xc]
mov dword [rdx], 0x28
mov dword [rax], edi
mov qword [rdx + 0x18], rax
lea rax, [rdx + 0x24]
mov qword [rdx + 0x30], rax
mov eax, 3
mov dword [rdx + 0x20], eax
mov dword [rdx + 8], eax
jmp 0x1400551e5
mov edx, 1
mov rcx, rbx
call fcn.140054ff4
movsxd rax, dword [rbx + 0x28]
xor r8d, r8d
mov rcx, rax
inc eax
mov dword [rbx + 0x28], eax
imul rcx, rcx, 0x38
add rcx, qword [rbx]
lea rax, [rcx + 0xc]
mov dword [rcx], 0x16
mov qword [rcx + 0x18], rax
lea rax, [rcx + 0x24]
mov qword [rcx + 0x30], rax
mov eax, 3
mov dword [rcx + 0x20], eax
mov dword [rcx + 8], eax
cmp dword [rbx + 0x28], r8d
jle 0x1400551e5
xor ecx, ecx
mov rdx, qword [rbx]
cmp qword [rcx + rdx + 0x18], 0
jne 0x1400551c6
lea rax, [rcx + rdx + 0xc]
mov qword [rcx + rdx + 0x18], rax
cmp qword [rcx + rdx + 0x30], 0
jne 0x1400551d8
lea rax, [rcx + rdx + 0x24]
mov qword [rcx + rdx + 0x30], rax
inc r8d
add rcx, 0x38
cmp r8d, dword [rbx + 0x28]
jl 0x1400551b1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x14005a6c8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rbx, r9d
mov r12, r8
mov rdi, rdx
mov rbp, rcx
lea rsi, [0x14014a780]
lea r13, [0x140149f80]
cmp ebx, dword [0x140149f7c]
je 0x14005a753
mov rcx, rsi
call fcn.1400387e4
xor r11d, r11d
mov r9, r13
mov r8d, 0x100
movzx eax, r11b
mov rdx, qword [rsi + rax*8]
test ebx, ebx
je 0x14005a73d
mov r10d, ebx
mov rax, rdx
movzx ecx, dl
mov rdx, qword [rsi + rcx*8]
shr rax, 8
xor rdx, rax
sub r10, 1
jne 0x14005a726
mov qword [r9], rdx
inc r11
add r9, 8
sub r8, 1
jne 0x14005a717
mov dword [0x140149f7c], ebx
or rsi, 0xffffffffffffffff
cmp qword [rbp + 0x10078], 0
jne 0x14005a772
mov ecx, 0x400001
call fcn.1400e9a64
mov qword [rbp + 0x10078], rax
mov r15, qword [rbp + 0x10078]
cmp rdi, r12
jae 0x14005a88c
mov r13, qword [rsp + 0x80]
mov r14d, 0x400000
cmp rsi, 0xffffffffffffffff
jne 0x14005a88c
mov rcx, qword [rbp + 0x20]
xor r8d, r8d
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rbp + 0x20]
mov r8, r12
mov rax, qword [rcx]
sub r8, rdi
mov rdx, r15
cmp r8, r14
cmova r8, r14
call qword [rax + 0x10]
cmp eax, ebx
mov r14d, eax
mov dword [rsp + 0x78], eax
jl 0x14005a88c
mov r8d, ebx
mov rdx, r15
xor ecx, ecx
mov r12d, ebx
call fcn.1400388b0
xor edx, edx
xor r8d, r8d
lea r9, [0x14014a780]
lea r10, [0x140149f80]
mov r11, rax
sub r14d, ebx
cmp r11, qword [r13 + 0x60]
je 0x14005a837
lea rcx, [r8 + rbx]
inc edx
movzx eax, byte [rcx + r15]
xor rax, r11
movzx ecx, al
movzx eax, byte [r8 + r15]
inc r8
mov rcx, qword [r9 + rcx*8]
xor rcx, qword [r10 + rax*8]
mov rax, r11
shr rax, 8
mov r11, rcx
xor r11, rax
cmp edx, r14d
jbe 0x14005a7fc
jmp 0x14005a86c
mov rcx, qword [r13 + 0x30]
mov esi, edx
mov r8, r12
add rdx, r15
call fcn.1400ea530
mov r11d, dword [rbp + 0x100b0]
cmp ebx, r11d
jae 0x14005a869
mov rax, qword [r13 + 0x30]
sub r11d, ebx
xor edx, edx
lea rcx, [r12 + rax]
mov r8d, r11d
call fcn.1400ea880
add rsi, rdi
cmp dword [rsp + 0x78], ebx
je 0x14005a88c
mov r12, qword [rsp + 0x70]
mov ecx, r14d
mov r14d, 0x400000
add rdi, rcx
cmp rdi, r12
jb 0x14005a790
mov rax, rsi
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005f694
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x450
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov r13, rcx
mov rcx, qword [0x140149ef8]
mov rsi, r8
mov r8d, 5
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, qword [0x140149ef8]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, qword [0x140149ef8]
mov rdx, rdi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
movsxd rdi, eax
mov rcx, rdi
call fcn.1400ea464
mov rbx, rax
test rax, rax
jne 0x14005f716
and qword [rsi], rax
jmp 0x14005f840
mov r8, rdi
mov rdx, rbp
mov rcx, rax
call fcn.1400ea530
mov eax, dword [rbx]
and dword [rsp + 0x34], 0
and dword [rsp + 0x30], 0
mov ecx, 0xffff0000
lea r9, [rsp + 0x30]
and eax, ecx
lea r8, [rsp + 0x34]
mov rdx, r12
cmp eax, ecx
mov rcx, r13
sete dil
call fcn.14005efe8
test al, al
je 0x14005f7a4
mov r8, rbx
test dil, dil
je 0x14005f762
lea r8, [rbx + 8]
movsx ecx, word [r8 + 0xe]
mov r9d, 0x51eb851f
mov eax, r9d
imul ecx, dword [rsp + 0x34]
imul ecx
mov eax, r9d
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
movsx ecx, word [r8 + 0x10]
mov word [r8 + 0xe], dx
imul ecx, dword [rsp + 0x30]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov word [r8 + 0x10], dx
neg dil
mov r10d, 0xffff
sbb rax, rax
or r11, 0xffffffffffffffff
and eax, 4
lea edx, [r11 + 3]
lea r8, [rbx + rax*2 + 0x12]
cmp word [r8], r10w
jne 0x14005f7cb
mov rcx, rdx
jmp 0x14005f7d9
xor eax, eax
mov rcx, r11
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
lea r9, [r8 + rcx*2]
cmp word [r9], r10w
je 0x14005f7f4
xor eax, eax
mov rcx, r11
mov rdi, r9
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
lea rdx, [r9 + rdx*2]
lea r8, [rsp + 0x40]
mov rcx, r13
mov r9d, 0x200
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 1
call fcn.14005ede4
lea rcx, [rsp + 0x40]
call fcn.1400eed40
cmp dword [rsp + 0x34], 0x64
mov qword [rsi], rax
jne 0x14005f83d
cmp dword [rsp + 0x30], 0x64
jne 0x14005f83d
mov rcx, rbx
call fcn.1400e9aa4
xor ebx, ebx
mov rax, rbx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400e9d00
mov rbx, qword [rsp + 0x498]
add rsp, 0x450
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005f978
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov eax, 0x2060
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
cmp rdx, rcx
je 0x14005f9b7
mov rdx, rcx
mov rcx, rbx
call fcn.140065d2c
lea rax, [rsp + 0x38]
lea rdx, str.SoftwareWinRARGeneral
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r12d, r12d
cmp eax, r12d
jne 0x14005faaf
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
mov eax, 0x7ff
lea r9, [rsp + 0x40]
not rcx
lea rdx, str.LanguageFolder
xor r8d, r8d
dec rcx
sub eax, ecx
mov rcx, qword [rsp + 0x38]
add eax, eax
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1050]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r12d
jne 0x14005faa4
mov edi, 0x800
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x1050]
mov r8d, edi
mov word [rsp + 0x50], r12w
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.1400504d4
mov rcx, rsi
call fcn.140050ce0
lea rcx, [rsp + 0x50]
mov r8, rdi
mov rdx, rax
call fcn.140065dac
lea rcx, [rsp + 0x50]
call fcn.140042584
cmp al, r12b
je 0x14005faa4
lea rdx, [rsp + 0x50]
mov r8, rbp
mov rcx, rbx
call fcn.140065d2c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.1400e9d00
add rsp, 0x2060
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret