joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001dbf0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x140163470]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov edx, 6
mov rbx, rcx
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov rdx, qword [0x140175aa8]
xor edi, edi
mov ecx, edi
cmp eax, 1
sete cl
xor r8d, r8d
shl ecx, 0x19
xor ecx, dword [rdx + 0x24]
and ecx, 0x2000000
xor dword [rdx + 0x24], ecx
mov rcx, qword [0x140175aa8]
lea rdx, [rbp + 0x150]
call fcn.14000da58
test al, al
jne 0x14001dc6a
mov word [rbp + 0x150], di
lea r8, [rsp + 0x40]
mov r9d, 0x104
mov edx, 0x32
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItemTextW]
lea rax, [rbp + 0x150]
lea r8, [rsp + 0x40]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x14001dca6
add rax, 2
test edx, edx
jne 0x14001dc92
test ecx, ecx
je 0x14001dcd5
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.14000d8c0
test eax, eax
je 0x14001dccb
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.14000dbb0
mov rax, qword [0x140175aa8]
mov byte [rax], 1
mov rcx, qword [0x140175aa8]
lea rdx, [rbp + 0x150]
mov word [rbp + 0x150], di
call fcn.14000dc3c
lea r8, [rsp + 0x40]
mov r9d, 0x104
mov edx, 0x33
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItemTextW]
lea rax, [rbp + 0x150]
lea r8, [rsp + 0x40]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x14001dd2b
add rax, 2
test edx, edx
jne 0x14001dd17
test ecx, ecx
je 0x14001dda4
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.14000d8c0
test eax, eax
je 0x14001dd99
mov edx, 0x371ea47b
mov ecx, 0x41877c44
mov r8d, 0x99a2cb73
call fcn.1400014e0
lea rcx, [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [0x140175aa8]
mov byte [rax + 1], 1
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.1400e8bc0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400232f4
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4d8]
sub rsp, 0x5b0
mov rax, qword [0x140163470]
xor rax, rsp
mov qword [rbp + 0x4a0], rax
mov qword [rsp + 0x38], rcx
lea rcx, [rbp + 0x290]
mov rbx, rdx
mov qword [rsp + 0x30], rdx
mov esi, 1
call fcn.1400235d8
mov r8, qword [0x140175b28]
lea rdx, str._s___.ini
mov rcx, rax
mov rdi, rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.English
xor r8d, r8d
mov edx, 0x143
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, 0x554e45
mov edx, 0x151
mov r8, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x14e
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x44]
xor r14d, r14d
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x40], r14d
call fcn.1400ebf40
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140023519
or r13d, 0xffffffff
test byte [rsp + 0x40], 0x10
jne 0x1400234fa
lea rcx, [rsp + 0x6c]
mov edx, 0x5f
call fcn.1400ea930
test rax, rax
je 0x1400234fa
lea rdx, [rsp + 0x6c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rax, qword [0x140175b28]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x14002341f
cmp word [rdi + rbx*2], 0x45
jne 0x140023444
cmp word [rdi + rbx*2 + 2], 0x4e
jne 0x140023444
cmp word [rdi + rbx*2 + 4], 0x55
je 0x1400234fa
lea rax, [rbp + 0x290]
lea r9, [rbp + 0x190]
lea r8, [0x140129de4]
mov qword [rsp + 0x28], rax
lea rdx, str.Name
lea rcx, str.INFO
mov dword [rsp + 0x20], pe_nt_image_headers64
call fcn.140023b50
mov rcx, qword [rsp + 0x30]
lea r9, [rbp + 0x190]
xor r8d, r8d
mov edx, 0x143
call qword [sym.imp.USER32.dll_SendMessageW]
movzx r14d, byte [rdi + rbx*2 + 2]
mov edx, 0x151
mov r15, rax
movzx eax, byte [rdi + rbx*2 + 4]
shl r14d, 8
shl eax, 0x10
mov r8, r15
or r14, rax
movzx eax, byte [rdi + rbx*2]
mov rbx, qword [rsp + 0x30]
or r14, rax
mov rcx, rbx
mov r9, r14
call qword [sym.imp.USER32.dll_SendMessageW]
cmp r13d, 0xffffffff
jne 0x1400234f5
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
cmp r14, rax
jne 0x1400234f5
mov r8d, r15d
xor r9d, r9d
mov edx, 0x14e
mov rcx, rbx
mov r13d, r15d
call qword [sym.imp.USER32.dll_SendMessageW]
inc esi
xor r14d, r14d
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400233e3
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov rcx, qword [rbp + 0x4a0]
xor rcx, rsp
call fcn.1400e8bc0
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140023d28
Capabilities:
Enumerate files on windows
Identify system language via api

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3f8]
sub rsp, 0x4d0
mov rax, qword [0x140163470]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
lea rcx, [rbp + 0x198]
xor r13d, r13d
mov ebx, r13d
call fcn.140004c24
cmp word [rbp + 0x198], r13w
je 0x140023d84
lea eax, [r13 + 1]
jmp 0x140023f88
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
mov eax, 0x409
cmp si, ax
jne 0x140023d9e
xor eax, eax
jmp 0x140023f88
mov eax, 0x3ff
movzx r14d, si
lea rcx, [rbp + 0x1b0]
and r14w, ax
xor eax, eax
mov word [rbp + 0x180], r13w
mov dword [rbp + 0x182], eax
mov word [rbp + 0x186], ax
call fcn.1400235d8
mov r8, qword [0x140175b28]
lea rdx, str._s___.ini
mov rcx, rax
mov r12, rax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [0x140175b28]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], r13w
jne 0x140023df3
lea rdi, [r12 + rcx*2]
lea rcx, [rsp + 0x34]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x30], r13d
call fcn.1400ebf40
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140023f64
test byte [rsp + 0x30], 0x10
jne 0x140023f2e
xor eax, eax
lea rdx, [rsp + 0x5c]
mov rcx, r12
mov word [rbp + 0x188], r13w
mov qword [rbp + 0x18a], rax
mov dword [rbp + 0x192], eax
mov word [rbp + 0x196], ax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x188]
lea r8, [0x140129de4]
lea rdx, [0x140107edc]
lea rcx, str.INFO
mov dword [rsp + 0x20], 8
call fcn.140023b50
test eax, eax
je 0x140023f2e
cmp word [rbp + 0x188], 0x30
jne 0x140023ed9
movzx eax, word [rbp + 0x18a]
mov ecx, 0xffdf
sub ax, 0x58
test cx, ax
jne 0x140023ed9
mov r8d, InitCommonControls
lea rcx, [rbp + 0x18c]
jmp 0x140023ee6
mov r8d, 0xa
lea rcx, [rbp + 0x188]
xor edx, edx
call fcn.1400ed4d4
mov ecx, eax
movzx eax, si
cmp ecx, eax
je 0x140023f45
cmp word [rbp + 0x180], r13w
jne 0x140023f2e
mov eax, 0x3ff
and cx, ax
cmp cx, r14w
jne 0x140023f2e
movzx eax, word [rdi]
mov word [rbp + 0x180], ax
movzx eax, word [rdi + 2]
mov word [rbp + 0x182], ax
movzx eax, word [rdi + 4]
mov word [rbp + 0x184], ax
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140023f57
jmp 0x140023e37
mov rcx, rdi
mov word [rdi + 6], r13w
call fcn.140004d20
mov ebx, 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x140023f86
cmp word [rbp + 0x180], r13w
je 0x140023f86
cmp r14w, 9
je 0x140023f86
lea rcx, [rbp + 0x180]
call fcn.140004d20
mov ebx, 1
mov eax, ebx
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.1400e8bc0
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140025788
Capabilities:
Create thread
Hide graphical window

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0xb8]
mov rdi, rcx
mov edx, 8
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
mov edx, 7
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 6
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 9
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 1
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 0x34
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 1
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, [rsp + 0x40]
lea r8, [0x140025a58]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140025984
Capabilities:
Check os version
Create process on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140163470]
xor rax, rsp
mov qword [rbp + 0xb0], rax
and dword [rbp - 0x6c], 0
mov rbx, rcx
mov rsi, r8
mov rdi, rdx
lea rcx, [rbp - 0x68]
mov r8d, 0x10c
xor edx, edx
mov dword [rbp - 0x70], 0x114
call fcn.1400ebf40
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edx, edx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call fcn.1400ebf40
and dword [rsp + 0x24], 0
cmp dword [rbp - 0x6c], 6
lea rcx, str.runas
lea rax, str.open
mov dword [rsp + 0x20], 0x70
cmovae rax, rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400e8bc0
mov rbx, qword [rsp + 0x1f8]
add rsp, 0x1c0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140026df0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0xe0]
lea rdx, [rsp + 0x30]
call fcn.14002132c
mov rbx, rax
test rax, rax
je 0x140026e92
mov r8d, dword [rsp + 0x30]
mov r9d, eax
mov rcx, rbx
shl r9d, 8
mov eax, r8d
mov edx, r8d
add r9d, r8d
shr eax, 2
mov dword [rsp + 0x38], r9d
test eax, eax
je 0x140026e4e
mov r8d, eax
xor dword [rcx], r9d
add rcx, 4
dec r8
jne 0x140026e3d
mov r8d, dword [rsp + 0x30]
shl eax, 2
sub edx, eax
test edx, edx
jle 0x140026e73
lea r8, [rsp + 0x38]
sub r8, rcx
mov al, byte [r8 + rcx]
dec edx
xor byte [rcx], al
inc rcx
test edx, edx
jg 0x140026e5f
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.1400265d4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140029ff4
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x228]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov ebx, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002a023
cmp dword [rsp + 0x40], ebx
jne 0x14002a023
mov al, 1
jmp 0x14002a025
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x14002ac55
Capabilities:
Encode data using xor

Disassembly:
sub dl, 0x41
je 0x14002ad72
push rbx
sub rsp, 0x70
mov rax, qword [0x140163470]
xor rax, rsp
mov qword [rsp + 0x60], rax
and dword [rsp + 0x48], 0
xor eax, eax
neg r8d
mov qword [rsp + 0x4c], rax
mov qword [rsp + 0x54], rax
sbb rbx, rbx
lea r10d, [rax + 1]
mov cl, dl
and rbx, 0xfffffffffffffffc
mov eax, r10d
mov dword [rsp + 0x48], 0x14
mov dword [rsp + 0x4c], 2
shl eax, cl
mov dword [rsp + 0x54], eax
test r9d, r9d
je 0x14002acae
mov word [rsp + 0x58], r10w
cmp dword [rsp + 0xa0], 0
jne 0x14002ad27
mov al, byte [0x1401428ee]
xor al, 0xe2
cmp al, 2
jne 0x14002accd
lea r8, [0x1401428f0]
jmp 0x14002ad17
test al, al
jne 0x14002ad14
xor edx, edx
mov r9d, 0x8bea5e2
lea r8, [0x1401428f0]
movzx eax, byte [rdx + r8]
mov ecx, r9d
shr ecx, 8
xor cl, al
add eax, r9d
mov byte [rdx + r8], cl
add rdx, r10
imul r9d, eax, 0xce6d
add r9d, 0x58bf
cmp rdx, 0x10
jl 0x14002ace0
mov byte [0x1401428ee], 0xe0
jmp 0x14002ad17
xor r8d, r8d
xor edx, edx
mov rcx, r8
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x14002ad2c
mov eax, 0xffff
lea rcx, [rsp + 0x40]
lea r9, [rsp + 0x48]
lea r8, [rbx + 0x8004]
mov qword [rsp + 0x30], rcx
mov rcx, rax
mov edx, 0x219
mov dword [rsp + 0x28], 0x7d0
mov dword [rsp + 0x20], 3
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400e8bc0
add rsp, 0x70
pop rbx
ret
Function at 0x14002b0b8
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
xor r11d, r11d
mov eax, edx
lea r10, [rax + rcx]
and rax, 0xfffffffffffffffc
mov r9d, r11d
add rax, rcx
mov edx, r11d
mov rcx, rax
sub rcx, r8
add rcx, 3
shr rcx, 2
cmp r8, rax
cmova rcx, r11
test rcx, rcx
je 0x14002b0fe
xor r9d, dword [r8]
inc rdx
add r8, 4
rol r9d, 3
cmp rdx, rcx
jb 0x14002b0eb
mov rdx, r10
sub rdx, r8
cmp r8, r10
cmova rdx, r11
test rdx, rdx
je 0x14002b12d
mov r10, r8
neg r10
movzx eax, byte [r8]
inc r8
xor r9d, eax
lea rcx, [r10 + r8]
rol r9d, 3
cmp rcx, rdx
jb 0x14002b116
mov eax, r9d
ret

Function at 0x14002bbf0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140163470]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, edx
movzx edi, cl
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, 0x1b1cf007
mov ecx, 0x1bd703a6
mov r8d, 0xd928b68c
mov ebx, eax
call fcn.140001974
lea rcx, [rsp + 0x50]
lea rcx, [rcx + rbx*2]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
movsxd rcx, eax
mov word [rsp + rcx*2 + 0x50], di
mov word [rsp + rcx*2 + 0x52], dx
test esi, esi
je 0x14002bcb9
dec esi
je 0x14002bc97
dec esi
jne 0x14002bc90
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x40]
jmp 0x14002bce2
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x4000000
mov r8d, 5
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
jmp 0x14002bcd4
mov eax, 2
mov qword [rsp + 0x30], rdx
mov edx, 0xc0000000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
lea r8d, [rax + 1]
lea rcx, [rsp + 0x50]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400e8bc0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14003198c
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor r9d, r9d
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea edx, [r9 + 0x23]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor edi, edi
test eax, eax
jns 0x1400319d3
lea edx, [rdi + 0x1a]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x1400319d3
mov word [rbx], di
lea rcx, [0x1401433ca]
mov edx, 0xa42ca553
mov r8d, 0x14
call fcn.1400019a4
lea rcx, [rbx - 2]
mov r8, rax
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x1400319f1
xor edx, edx
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x1400319fc
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140031a1c
lea rax, [rbx + rax*2]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140033ce9
Capabilities:
Encode data using xor

Disassembly:
test r8d, r8d
jle 0x140033f4b
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140163470]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r15d, [r8 - 1]
mov r14, rcx
mov rdi, rdx
shr r15d, 3
mov r9, rdx
mov ebp, 0xa
movabs rbx, 0xff000000000000
movabs rcx, 0xff0000000000
movabs r8, 0xff00000000
inc r15d
mov r11d, 0xff000000
lea r13, [0x140000000]
mov rdx, qword [r14]
xor esi, esi
mov r10, rdx
mov rax, rdx
shr rax, 0x10
and r10, rbx
or r10, rax
mov rax, rdx
and rax, rcx
shr r10, 0x10
mov rcx, rdx
or r10, rax
and ecx, 0xff00
mov rax, rdx
and rax, r8
shr r10, 0x10
mov r8d, r9d
or r10, rax
mov rax, rdx
shl rax, 0x10
shr r10, 8
or rcx, rax
mov rax, rdx
and rdx, r11
shl rcx, 0x10
and eax, 0xff0000
or rcx, rax
shl rcx, 0x10
or rcx, rdx
mov rdx, r9
shl rcx, 8
shr rdx, 0x20
or r10, rcx
and edx, 0xffffff
mov r11, r10
shr r11, 0x20
test ebp, ebp
jle 0x140033e21
lea rbx, [rsp]
and edx, 0xffffff
mov eax, esi
inc esi
movzx ecx, dl
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x143880]
mov ecx, edx
shl edx, 0x11
shl eax, 4
shr ecx, 7
add eax, r8d
mov dword [rbx], eax
mov eax, r8d
shl r8d, 0x11
shr eax, 0xf
or r8d, ecx
lea rbx, [rbx + 4]
or edx, eax
cmp esi, ebp
jl 0x140033dd7
movabs rbx, 0xff000000000000
mov r8d, 9
mov eax, r8d
cdq
idiv ebp
movsxd rax, edx
mov edx, dword [rsp + rax*4]
add edx, r10d
movzx ecx, dl
xor edx, dword [r13 + rcx*4 + 0x16ffb0]
mov ecx, edx
mov eax, edx
ror ecx, 0xa
rol eax, 9
xor ecx, eax
xor ecx, edx
sub r11d, ecx
mov ecx, r11d
mov r11d, r10d
mov r10d, ecx
cmp r8d, 5
jne 0x140033e75
mov r9d, ecx
and r9d, 0xffffff
shl r9, 0x20
or r9, r11
xor r9, rdi
dec r8d
jns 0x140033e27
mov r8, rcx
movabs rcx, 0xff0000000000
mov ebp, 2
shl r8, 0x20
or r8, r11
mov r11d, 0xff000000
mov rdx, r8
mov rax, r8
shr rax, 0x10
and rdx, rbx
or rdx, rax
mov rax, r8
and rax, rcx
shr rdx, 0x10
movabs rcx, 0xff00000000
or rdx, rax
mov rax, r8
and rax, rcx
shr rdx, 0x10
mov rcx, r8
and ecx, 0xff00
or rdx, rax
mov rax, r8
shl rax, 0x10
shr rdx, 8
or rcx, rax
mov rax, r8
and r8, r11
shl rcx, 0x10
and eax, 0xff0000
or rcx, rax
shl rcx, 0x10
or rcx, r8
movabs r8, 0xff00000000
shl rcx, 8
or rdx, rcx
movabs rcx, 0xff0000000000
mov qword [r14], rdx
add r14, 8
dec r15
jne 0x140033d52
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400e8bc0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x140033f4c
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x30
mov rax, qword [0x140163470]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r9, rdx
mov r8, rcx
mov r10, rcx
shr r9, 0x20
shr r8, 0x20
lea rbx, [rsp]
and r9d, 0xffffff
xor r11d, r11d
lea rsi, [0x140000000]
and r9d, 0xffffff
mov eax, r11d
inc r11d
movzx ecx, r9b
xor rcx, rax
movzx eax, byte [rcx + rsi + 0x143880]
mov ecx, r9d
shl r9d, 0x11
shl eax, 4
shr ecx, 7
add eax, edx
mov dword [rbx], eax
mov eax, edx
shl edx, 0x11
shr eax, 0xf
or edx, ecx
lea rbx, [rbx + 4]
or r9d, eax
cmp r11d, 0xa
jl 0x140033f8b
mov r9d, 9
mov edx, dword [rsp + r9*4]
add edx, r10d
movzx ecx, dl
xor edx, dword [rsi + rcx*4 + 0x16ffb0]
mov eax, edx
mov ecx, edx
ror ecx, 0xa
rol eax, 9
xor ecx, eax
xor ecx, edx
sub r8d, ecx
dec r9
mov eax, r8d
mov r8d, r10d
mov r10d, eax
jns 0x140033fd5
shl rax, 0x20
or rax, r8
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400e8bc0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret

Function at 0x140034024
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rax, qword [0x140163470]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r8, rdx
mov r9, rcx
mov r11, rcx
shr r8, 0x20
shr r9, 0x20
mov ebx, ecx
and r8d, 0xffffff
xor r10d, r10d
lea rsi, [rsp]
mov edi, r10d
lea r14, [0x140000000]
and r8d, 0xffffff
mov eax, edi
inc edi
movzx ecx, r8b
xor rcx, rax
movzx eax, byte [rcx + r14 + 0x143880]
mov ecx, r8d
shl r8d, 0x11
shl eax, 4
shr ecx, 7
add eax, edx
mov dword [rsi], eax
mov eax, edx
shl edx, 0x11
shr eax, 0xf
or edx, ecx
lea rsi, [rsi + 4]
or r8d, eax
cmp edi, 0xa
jl 0x140034073
mov edx, dword [rsp + r10*4]
inc r10
add edx, ebx
movzx ecx, dl
xor edx, dword [r14 + rcx*4 + 0x16ffb0]
mov ecx, edx
mov eax, edx
ror ecx, 0xa
rol eax, 9
xor ecx, eax
xor ecx, edx
add ecx, r9d
mov r9d, ebx
mov ebx, ecx
cmp r10, 0xa
jl 0x1400340b5
mov eax, ecx
shl rax, 0x20
or rax, r9
xor rax, r11
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400e8bc0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x140035510
Capabilities:
Encode data using xor

Disassembly:
mov r9, qword [rcx]
test r8d, r8d
je 0x140035542
mov r10d, r8d
movzx eax, byte [rdx]
movzx r8d, r9b
lea r11, [0x140108e20]
xor r8, rax
mov rax, r9
inc rdx
mov r9, qword [r11 + r8*8]
shr rax, 8
xor r9, rax
dec r10
jne 0x14003551b
mov qword [rcx], r9
ret
Function at 0x14003c808
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x300
mov rax, qword [0x140163470]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
movzx esi, dx
mov r15, rcx
lea rdx, [rsp + 0x60]
mov ecx, 0x104
mov rbp, r8
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x14003c851
lea rbx, [rsp + 0x60]
mov edx, 0xfa66dc15
mov ecx, 0x8adf3359
mov r8d, 0xe7481d07
movzx r14d, si
lea rbx, [rbx + rax*2]
call fcn.140001db4
mov r8d, r14d
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x48]
lea rcx, [rsp + 0x60]
mov edx, 0xc0000000
mov r8d, 3
mov dword [rsp + 0x28], 0x4000080
mov dword [rsp + 0x48], 0x18
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003c8e0
xor al, al
jmp 0x14003c981
mov edx, 0x2fc4152e
mov ecx, 0x5f7dfa1c
mov r8d, 0x32ead42b
call fcn.140001db4
mov edx, 0xdb37810e
mov ecx, 0xab8e6e4c
mov r8d, 0xc619400d
mov rbx, rax
call fcn.140001db4
lea rcx, [rsp + 0x60]
mov r9, rbx
mov r8, r15
mov rdx, rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x60]
or r9d, 0xffffffff
mov r8, rsi
mov rdx, r15
call fcn.14003cc70
test eax, eax
je 0x14003c975
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14003d010
mov rbx, rax
test rax, rax
je 0x14003c975
mov rdx, rbp
mov rcx, rax
call fcn.14003cd60
mov dil, al
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400e8bc0
mov rbx, qword [rsp + 0x348]
add rsp, 0x300
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret