joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003af80
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14006e155]
mov ecx, 0x10
mov edx, 8
call fcn.14000aa60
test rax, rax
je 0x14003b05f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003b0f0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14003b051
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14003b028
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.14000aa70
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.14000aa70
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.14004eb60
ud2

Function at 0x1400497e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14004985a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140049850
cmp r10, r11
jb 0x1400498f3
cmp r10, rdx
ja 0x140049907
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140049852
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140049830
jmp 0x1400498c7
ja 0x14004985a
mov r11, r10
cmp rax, r8
jne 0x140049802
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400498cb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400498a0
mov r8, r10
sub ecx, r9d
jns 0x1400498be
jmp 0x1400498cd
cmp r10, rdx
je 0x1400498d9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400498cd
xor al, 1
cmp r8, rdx
jne 0x140049880
jmp 0x1400498cd
xor eax, eax
jmp 0x1400498cd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140059949]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14004ec80
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14004f1c0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14004f140
ud2
Function at 0x14004b588
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14004b5d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004b5d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004b5d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004b5d2
cmp dword [rcx + 0x84], 0xe
jbe 0x14004b5d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004b5d4
xor al, al
add rsp, 0x28
ret

Function at 0x14004daf0
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x14004db51
mov rdi, rax
lea rdx, [0x140055ace]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14004db51
mov rsi, rax
lea rdx, [0x140055adc]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14004db51
mov rdi, rax
xor ebx, ebx
jmp 0x14004dbd7
lea rcx, [0x140055a68]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x14004dc4b
mov rsi, rax
lea rdx, [0x140055a72]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14004dc4b
mov rdi, rax
lea rdx, [0x140055a85]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14004dc4b
mov rbx, rax
lea rdx, [0x140055a99]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14004dc4b
mov rsi, rax
lea rcx, [rbp - 0x18]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rdi
test eax, eax
jne 0x14004dc4b
mov rdi, qword [rbp - 0x18]
movzx eax, byte [0x14006e155]
mov ecx, 0x18
mov edx, 8
call fcn.14000aa60
test rax, rax
je 0x14004dc52
mov rcx, rax
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
xor eax, eax
lock cmpxchg qword [0x14006e168], rcx
je 0x14004dc3f
mov rsi, rax
cmp qword [rcx], 0
mov qword [rbp - 8], rcx
je 0x14004dc28
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp - 8]
call fcn.14000aa70
mov rcx, rsi
mov rax, rcx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.14004dab0
jmp 0x14004dc69
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rbx
mov ecx, 8
mov edx, 0x18
call fcn.14004eb60
ud2
Function at 0x180001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x30
cmp edx, 1
je 0x180001015
mov eax, 1
add rsp, 0x30
pop rbx
ret
mov rbx, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [str.KERNEL32.dll]
call rbx
xor ecx, ecx
call rbx
mov r8d, 0x40
mov dword [rsp + 0x2c], 0
movsxd rdx, dword [rax + 0x3c]
lea r9, [rsp + 0x2c]
mov ebx, dword [rax + rdx + 0x28]
mov rdx, qword [0x1800347b8]
mov rcx, qword [0x180034790]
sub edx, ecx
sub rbx, rdx
mov edx, dword [0x1800347c8]
add rbx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [0x1800347c8]
mov r8, qword [0x180034790]
lea eax, [rdx - 1]
test edx, edx
je 0x18000100a
xor edx, edx
jmp 0x180001084
mov rdx, rcx
movzx ecx, byte [r8 + rdx]
cmp rdx, rax
mov byte [rbx + rdx], cl
lea rcx, [rdx + 1]
jne 0x180001081
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x180001430
Capabilities:
Encode data using xor

Disassembly:
jbe 0x180001441
movsxd r12, r12d
xor dword [rax + rsi], edi
add rax, 4
cmp rax, r12
invalid

Function at 0x180001e5f
Capabilities:
Encode data using xor

Disassembly:
jmp 0x180001e63
dec edx
test dl, 3
jne 0x180001e61
xor eax, eax
test edx, edx
jbe 0x180001e7e
movsxd rdx, edx
xor dword [rax + rcx], r8d
add rax, 4
cmp rax, rdx
jb 0x180001e71
ret

Function at 0x1800022e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x30
call fcn.180025560
sub rsp, rax
xor edi, edi
lea r9, [rsp + 0x48]
lea r8d, [rax - 0x21]
mov qword [rsp + 0x20], rdi
lea rdx, str.BlockedDllList
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.180002640
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 1]
mov rcx, rbx
lea rdx, [0x180027c8c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [0x180034bfd], dil
je 0x180002360
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 0x16]
mov rcx, rbx
lea rdx, str.BlocklistInitFailed1_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [0x180034bfe], dil
je 0x180002389
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rdi
mov r8d, 0x18
lea rdx, str.User32BeforeBlocklist1_n
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1800023a0
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x80
call fcn.180025560
sub rsp, rax
xor ebx, ebx
lea r8d, [rax - 0x7f]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1800024a8
mov qword [rsp + 0x28], rbx
lea r8d, [rbx + 2]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
mov qword [rsp + 0x90], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x180002497
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x98], rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor r9d, r9d
mov qword [rsp + 0x20], 0x40
xor r8d, r8d
lea edx, [rbx + 4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x180002478
mov r8d, dword [rax + 0x3c]
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.180001440
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x180002468
mov ebx, dword [rax + 8]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180002478
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x18000248f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rdi, qword [rsp + 0x98]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x90]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rbp
ret
Function at 0x1400cc420
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400cc46a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400cc46a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400cc46a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400cc46a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400cc46a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400cc46c
xor al, al
add rsp, 0x28
ret

Function at 0x1400d8d10
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400d8b0c

Function at 0x1400ded60
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400ded76
mov al, 1
jmp 0x1400dedd6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400ded87
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400dedd4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400e531c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400dedd4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400dedd4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400dedd4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400dedd6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400e0f6c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400cc060
sub rsp, rax
mov rax, qword [0x140106078]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400ddc88
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400e0fbb
mov rax, rbp
jmp 0x1400e10c3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1081b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400e1eb8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1081b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400e10bf
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e10bf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400e1eb8
test rax, rax
js 0x1400e10bf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400e10bf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400e10b1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400e10b1
cmp byte [rcx], 0xd
jne 0x1400e1097
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400e10a6
cmp byte [rcx + 1], 0xa
jne 0x1400e10a6
inc rcx
jmp 0x1400e10a6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x106470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400e1079
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400e10c3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400cc030
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e1258
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1401081b0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400e12af
cmp word [rdx], r13w
jne 0x1400e12af
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400e12b4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400e13d9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400e13fa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400e12ed
mov rdx, r9
mov word [rbx], cx
jmp 0x1400e1314
cmp r9, r8
jae 0x1400e1324
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400e12ce
jmp 0x1400e13d9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e13ce
cmp dword [rsp + 0x80], esi
je 0x1400e13ce
lea r8, [0x1401081b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400e13a6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400e1376
mov word [rbx], r13w
jmp 0x1400e13d6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400e1383
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400e13d6
cmp word [rsp + 0x70], r13w
jne 0x1400e13b3
cmp rbx, r14
je 0x1400e1370
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400e1ec0
cmp word [rsp + 0x70], r13w
je 0x1400e13d9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1401081b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400e13d3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400e13d9
Function at 0x1400e4af0
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400e4b20
xor eax, eax
jmp 0x1400e4be3
mov rbp, rbx
cmp word [rax], si
je 0x1400e4b45
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400e4b2c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400e4b28
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400e32fc
movsxd r14, eax
test eax, eax
jne 0x1400e4b83
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400e4b19
mov rcx, r14
call fcn.1400dcb04
mov rdi, rax
test rax, rax
jne 0x1400e4b9c
xor ecx, ecx
call fcn.1400dcac8
jmp 0x1400e4b78
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400e32fc
test eax, eax
jne 0x1400e4bcd
mov rcx, rdi
call fcn.1400dcac8
jmp 0x1400e4bd7
xor ecx, ecx
call fcn.1400dcac8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400e7778
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400dc2c4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400e7819
cmp ebx, dword [rsp + 0x30]
je 0x1400e7812
test esi, esi
je 0x1400e7812
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400e77ed
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400e77fa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400e77d7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400e77fe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400e781b
mov eax, 1
jmp 0x1400e781b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ebd4c
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400e1ec0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400e1ec0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400ebe9c
cmp rax, 0xffffffffffffffff
je 0x1400ebe9c
xor edi, edi
test rbp, rbp
jle 0x1400ebe47
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400dbe4c
mov rbx, rax
test rax, rax
jne 0x1400ebdd4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400ebe3d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400d9aa4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400df988
cmp eax, 0xffffffff
je 0x1400ebe1d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400ebde4
mov edx, r15d
mov ecx, r14d
call fcn.1400d9aa4
jmp 0x1400ebe3d
cmp byte [rsi + 0x38], dil
je 0x1400ebe34
cmp dword [rsi + 0x34], 5
jne 0x1400ebe34
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400ebe3d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400dcac8
jmp 0x1400ebeb0
jns 0x1400ebeb0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400e1ec0
cmp rax, 0xffffffffffffffff
jne 0x1400ebe68
cmp byte [rsi + 0x30], dil
je 0x1400ebeb0
mov edi, dword [rsi + 0x2c]
jmp 0x1400ebeb0
mov ecx, r14d
call fcn.1400e531c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400ebeb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400ebeb0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400ebea9
mov eax, dword [rsi + 0x2c]
jmp 0x1400ebeae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400e1ec0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400096e0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x2c8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x240], 0xfffffffffffffffe
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
lea rax, [rbp - 0x50]
and word [rax], 0
mov qword [rsp + 0x20], rax
push 0x1a
pop rdx
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rcx, [rbp + 0x220]
mov rdx, rdi
call fcn.140002db2
test bl, bl
je 0x14000974b
lea rdx, str.__Safe_Mode_
lea rcx, [rbp + 0x220]
call fcn.14000501c
lea rcx, [rbp + 0x200]
lea rdx, [rbp - 0x50]
call fcn.1400098a8
lea rcx, [rbp + 0x1e0]
lea rdx, [rbp + 0x200]
call fcn.140010d67
lea rcx, [rbp + 0x1c0]
lea rdx, [rbp + 0x1e0]
mov r8b, 0x2f
call fcn.1400070a7
lea rdx, [rbp + 0x1c0]
lea r8, [rbp + 0x220]
mov rcx, rsi
call fcn.140009881
lea rcx, [rbp + 0x1c0]
call fcn.140001ad8
lea rcx, [rbp + 0x1e0]
call fcn.140001ad8
lea rcx, [rbp + 0x200]
call fcn.140001c0a
lea rcx, [rbp + 0x220]
call fcn.140001ad8
mov rax, rsi
add rsp, 0x2c8
pop rbx
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400098cf
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x2c8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x240], 0xfffffffffffffffe
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
lea rax, [rbp - 0x50]
and word [rax], 0
mov qword [rsp + 0x20], rax
push 0x1c
pop rdx
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rcx, [rbp + 0x220]
mov rdx, rdi
call fcn.140002db2
test bl, bl
je 0x14000993a
lea rdx, str.__Safe_Mode_
lea rcx, [rbp + 0x220]
call fcn.14000501c
lea rcx, [rbp + 0x200]
lea rdx, [rbp - 0x50]
call fcn.1400098a8
lea rcx, [rbp + 0x1e0]
lea rdx, [rbp + 0x200]
call fcn.140010d67
lea rcx, [rbp + 0x1c0]
lea rdx, [rbp + 0x1e0]
mov r8b, 0x2f
call fcn.1400070a7
lea rdx, [rbp + 0x1c0]
lea r8, [rbp + 0x220]
mov rcx, rsi
call fcn.140009881
lea rcx, [rbp + 0x1c0]
call fcn.140001ad8
lea rcx, [rbp + 0x1e0]
call fcn.140001ad8
lea rcx, [rbp + 0x200]
call fcn.140001c0a
lea rcx, [rbp + 0x220]
call fcn.140001ad8
mov rax, rsi
add rsp, 0x2c8
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000aaec
Capabilities:
Create directory

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, edx
mov rsi, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x14000ab01
mov rcx, qword [rsi]
call fcn.14000cf95
test al, al
je 0x14000ab26
test bl, bl
je 0x14000ab43
cmp qword [rsi + 0x18], 0x10
jb 0x14000ab18
mov rsi, qword [rsi]
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000cc18
cmp qword [rsi + 0x18], 0x10
jb 0x14000ab30
mov rsi, qword [rsi]
mov rcx, rsi
mov edx, 0x1c0
add rsp, 0x28
pop rbx
pop rsi
jmp 0x14000cae6
nop
add rsp, 0x28
pop rbx
pop rsi
ret
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
lea rdi, [rbp - 0x30]
mov qword [rdi], rcx
call fcn.14019ddd0
add rax, rsi
mov qword [rdi + 8], rax
lea rsi, [rbp - 0x20]
mov rcx, rsi
mov rdx, rdi
call fcn.140010f8c
cmp qword [rsi + 0x18], 8
jb 0x14000cb2b
mov rsi, qword [rbp - 0x20]
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
lea rcx, [rbp - 0x20]
call fcn.140001c0a
mov eax, ebx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000b406
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push rsi
push rdi
push rbp
push rbx
test r9d, r9d
lea rax, [0x1401d6240]
lea r10, [0x1401d6340]
cmove r10, rax
cmp rdx, 4
jb 0x14000b4ab
mov r11d, 3
xor r9d, r9d
movsx rax, byte [rcx + r11 - 3]
movsx ebx, byte [r10 + rax]
movsx rax, byte [rcx + r11 - 2]
movsx edi, byte [r10 + rax]
movsx rax, byte [rcx + r11 - 1]
movsx eax, byte [r10 + rax]
movsx rsi, byte [rcx + r11]
movsx esi, byte [r10 + rsi]
mov ebp, edi
or ebp, ebx
or ebp, eax
or ebp, esi
js 0x14000b517
mov ebp, edi
shr ebp, 4
and ebp, 3
lea ebx, [rbp + rbx*4]
mov byte [r8 + r9], bl
shl edi, 4
mov ebx, eax
shr ebx, 2
and ebx, 0xf
or ebx, edi
mov byte [r8 + r9 + 1], bl
shl al, 6
or al, sil
mov byte [r8 + r9 + 2], al
add r9, 3
add r11, 4
cmp r11, rdx
jb 0x14000b432
add r11, 0xfffffffffffffffd
jmp 0x14000b4b1
xor r9d, r9d
xor r11d, r11d
mov al, 1
cmp r11, rdx
jae 0x14000b519
mov rsi, r11
or rsi, 1
cmp rsi, rdx
jae 0x14000b519
movsx rdi, byte [rcx + r11]
movsx edi, byte [r10 + rdi]
movsx rsi, byte [rcx + rsi]
movsx esi, byte [r10 + rsi]
mov ebx, esi
or ebx, edi
js 0x14000b517
mov ebx, esi
shr ebx, 4
and ebx, 3
lea edi, [rbx + rdi*4]
mov byte [r8 + r9], dil
or r11, 2
cmp r11, rdx
jae 0x14000b519
movsx rcx, byte [rcx + r11]
mov cl, byte [r10 + rcx]
test cl, cl
js 0x14000b517
shl sil, 4
shr cl, 2
and cl, 0xf
or cl, sil
mov byte [r8 + r9 + 1], cl
jmp 0x14000b519
xor eax, eax
pop rbx
pop rbp
pop rdi
pop rsi
ret