joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003488
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov eax, dword [rcx]
mov r8, rdx
mov r11, rcx
mov r9d, 4
xor ebx, ebx
xor r10d, r10d
test eax, eax
jle 0x1800034d2
mov rdx, qword [r8]
inc ebx
movzx eax, byte [rdx + r10]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
lea rax, [0x180030a00]
mov al, byte [rcx + rax]
mov byte [rdx + r10], al
inc r10
mov eax, dword [r11]
cmp ebx, eax
jl 0x1800034a4
add r8, 8
sub r9, 1
jne 0x18000349b
mov rbx, qword [rsp + 8]
ret

Function at 0x1800034e4
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov bl, r8b
mov r11b, dl
xor r10b, r10b
mov edi, 8
mov al, r10b
mov dl, r11b
xor al, r11b
movzx ecx, al
test bl, 1
movzx eax, r10b
cmove ecx, eax
mov al, r11b
add al, al
shr bl, 1
movzx r8d, al
mov r10b, cl
mov cl, r8b
xor cl, 0x1b
test dl, dl
movzx r11d, cl
cmovns r11d, r8d
sub rdi, 1
jne 0x1800034fc
mov rbx, qword [rsp + 8]
mov al, r10b
mov rdi, qword [rsp + 0x10]
ret
Function at 0x1800035a0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
movaps xmmword [r11 - 0x48], xmm6
mov rax, qword [0x180035028]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov byte [rsp + 0x20], 0
xorps xmm0, xmm0
movups xmmword [r11 - 0x78], xmm0
movups xmmword [r11 - 0x68], xmm0
mov r8, qword [rcx + 0x10]
mov eax, 0x20
cmp r8, rax
cmovae r8, rax
lea esi, [rax - 0x10]
cmp qword [rcx + 0x18], rsi
jb 0x180003603
mov rcx, qword [rcx]
test r8, r8
je 0x180003641
test rcx, rcx
je 0x180003631
cmp r8, rax
ja 0x180003624
mov rdx, rcx
lea rcx, [rsp + 0x140]
call fcn.1800129d0
jmp 0x180003641
call fcn.1800195b8
mov dword [rax], 0x22
jmp 0x18000363c
call fcn.1800195b8
mov dword [rax], 0x16
call fcn.180016bd4
xorps xmm6, xmm6
movups xmmword [rsp + 0x130], xmm6
mov r8, qword [rbx + 0x10]
cmp r8, rsi
cmovae r8, rsi
cmp qword [rbx + 0x18], rsi
jb 0x180003660
mov rbx, qword [rbx]
test r8, r8
je 0x1800036a6
test rbx, rbx
je 0x180003696
cmp r8, rsi
ja 0x180003689
mov rdx, rbx
lea rcx, [rsp + 0x130]
call fcn.1800129d0
movups xmm6, xmmword [rsp + 0x130]
jmp 0x1800036a6
call fcn.1800195b8
mov dword [rax], 0x22
jmp 0x1800036a1
call fcn.1800195b8
mov dword [rax], 0x16
call fcn.180016bd4
mov r12, qword [rdi + 0x10]
mov eax, r12d
and eax, 0xf
mov ecx, eax
mov r13d, esi
sub r13d, eax
mov r15, rsi
sub r15, rcx
lea r8, [r15 + r12]
mov rbx, qword [r14 + 8]
mov rdx, qword [r14]
mov rcx, rbx
sub rcx, rdx
cmp r8, rcx
jae 0x1800036da
lea rbx, [rdx + r8]
jmp 0x180003709
jbe 0x18000370d
mov rax, qword [r14 + 0x10]
sub rax, rdx
cmp r8, rax
jbe 0x1800036f9
mov rdx, r8
mov rcx, r14
call fcn.180003bdc
mov rbx, qword [r14 + 8]
jmp 0x18000370d
sub r8, rcx
mov rcx, rbx
add rbx, r8
xor edx, edx
call fcn.1800125c0
mov qword [r14 + 8], rbx
mov rsi, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x18000371b
mov rdi, qword [rdi]
mov rcx, qword [r14]
sub rbx, rcx
test rsi, rsi
je 0x180003773
test rcx, rcx
jne 0x180003738
call fcn.1800195b8
mov dword [rax], 0x16
jmp 0x18000376e
test rdi, rdi
je 0x18000374f
cmp rbx, rsi
jb 0x18000374f
mov r8, rsi
mov rdx, rdi
call fcn.1800129d0
jmp 0x180003773
mov r8, rbx
xor edx, edx
call fcn.1800125c0
test rdi, rdi
je 0x18000372b
cmp rbx, rsi
jae 0x180003773
call fcn.1800195b8
mov dword [rax], 0x22
call fcn.180016bd4
mov rcx, qword [r14]
add rcx, r12
mov r8, r15
mov edx, r13d
call fcn.1800125c0
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x30]
call fcn.180003830
movdqu xmmword [rsp + 0x120], xmm6
mov rsi, qword [r14]
mov rax, qword [r14 + 8]
sub rax, rsi
mov edi, eax
lea rdx, [rsp + 0x120]
mov ebx, 1
test eax, eax
je 0x1800037f8
dec rdi
shr rdi, 4
add rdi, rbx
mov rcx, rsi
sub rdx, rsi
mov r8d, 0x10
mov al, byte [rdx + rcx]
xor byte [rcx], al
add rcx, rbx
sub r8, rbx
jne 0x1800037d2
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1800039d4
mov rdx, rsi
add rsi, 0x10
sub rdi, rbx
jne 0x1800037c6
mov byte [rsp + 0x20], bl
jmp 0x180003802
mov al, bl
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180010290
movaps xmm6, xmmword [rsp + 0x170]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x18000663c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x180035028]
xor rax, rsp
mov qword [rbp + 0x47], rax
movups xmm0, xmmword [rcx]
mov rbx, rdx
mov rdi, rcx
movups xmm1, xmmword [rcx + 0x10]
mov qword [rbp - 0x39], rdx
movups xmmword [rbp - 0x31], xmm0
mov word [rbp - 0x56], 0x3433
movups xmmword [rbp - 0x21], xmm1
mov dword [rbp - 0x4c], 0x666564
mov word [rbp - 0x59], 0x3130
mov word [rbp - 0x51], 0x3938
mov word [rbp - 0x4e], 0x6362
mov word [rbp - 0x53], 0x3736
mov byte [rbp - 0x4f], 0x61
mov byte [rbp - 0x57], 0x32
mov byte [rbp - 0x54], 0x35
call fcn.1800064e4
xor edx, edx
lea r8, [rbp - 0x31]
sub r8, rdi
lea r9d, [rdx + 8]
mov ecx, dword [rdi]
mov eax, ecx
shr rax, 0x1c
mov al, byte [rbp + rax - 0x59]
mov byte [rbp + rdx - 9], al
mov eax, ecx
shr rax, 0x18
and eax, 0xf
mov al, byte [rbp + rax - 0x59]
mov byte [rbp + rdx - 8], al
mov eax, ecx
shr rax, 0x14
and eax, 0xf
mov al, byte [rbp + rax - 0x59]
mov byte [rbp + rdx - 7], al
mov eax, ecx
shr rax, 0x10
and eax, 0xf
mov al, byte [rbp + rax - 0x59]
mov byte [rbp + rdx - 6], al
mov eax, ecx
shr rax, 0xc
and eax, 0xf
mov al, byte [rbp + rax - 0x59]
mov byte [rbp + rdx - 5], al
mov eax, ecx
shr rax, 8
and eax, 0xf
mov al, byte [rbp + rax - 0x59]
mov byte [rbp + rdx - 4], al
mov eax, ecx
shr rax, 4
and ecx, 0xf
and eax, 0xf
mov al, byte [rbp + rax - 0x59]
mov byte [rbp + rdx - 3], al
mov al, byte [rbp + rcx - 0x59]
mov byte [rbp + rdx - 2], al
add rdx, 8
mov eax, dword [r8 + rdi]
mov dword [rdi], eax
lea rdi, [rdi + 4]
sub r9, 1
jne 0x1800066bd
cmp rdx, 0x41
jae 0x1800067b1
xorps xmm0, xmm0
mov byte [rbp + rdx - 9], r9b
movups xmmword [rbx], xmm0
and qword [rbx + 0x10], r9
lea rax, [rbp - 9]
and qword [rbx + 0x18], r9
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180006777
lea rdx, [rbp - 9]
mov rcx, rbx
call fcn.180001a4c
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.180010290
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.180010428
int3

Function at 0x1800067b8
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rax, r8
xor ecx, ecx
mov rdi, rdx
mov r8, r9
mov rdx, rax
mov qword [rbx + 0x20], rcx
mov qword [rbx + 0x28], rcx
mov rcx, rbx
mov dword [rbx], 0x6a09e667
mov dword [rbx + 4], 0xbb67ae85
mov dword [rbx + 8], 0x3c6ef372
mov dword [rbx + 0xc], 0xa54ff53a
mov dword [rbx + 0x10], 0x510e527f
mov dword [rbx + 0x14], 0x9b05688c
mov dword [rbx + 0x18], 0x1f83d9ab
mov dword [rbx + 0x1c], 0x5be0cd19
call fcn.180006410
mov rdx, rdi
mov rcx, rbx
call fcn.18000663c
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x180007af4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0xb88]
sub rsp, 0xc80
mov rax, qword [0x180035028]
xor rax, rsp
mov qword [rbp + 0xb70], rax
mov rdi, rcx
mov qword [rsp + 0x58], rcx
and dword [rsp + 0x30], 0
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
and qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0xf
mov byte [rcx], 0
mov dword [rsp + 0x30], 1
mov ebx, 0x800
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1800125c0
mov dword [rsp + 0x68], ebx
mov edx, 0x10c
lea rcx, [rsp + 0x38]
call fcn.18000884c
nop
cmp qword [rax + 0x18], 0x10
jb 0x180007b85
mov rax, qword [rax]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, 0x101
mov rdx, rax
call fcn.180006f80
test eax, eax
sete bl
mov esi, 0x1000
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x180007be0
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, rsi
jb 0x180007bdb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007d23
call fcn.1800102b0
test bl, bl
je 0x180007cf2
mov edx, 0x113
lea rcx, [rsp + 0x38]
call fcn.18000884c
cmp qword [rax + 0x18], 0x10
jb 0x180007c01
mov rax, qword [rax]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x180007c64
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, rsi
jb 0x180007c5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007d1d
call fcn.1800102b0
test ebx, ebx
jne 0x180007ce7
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x770]
call fcn.1800125c0
mov r8d, dword [rsp + 0x68]
lea rdx, [rbp + 0x770]
lea rcx, [rsp + 0x70]
call fcn.180007a44
lea rax, [rbp + 0x770]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x180007c9d
cmp rbx, qword [rdi + 0x18]
ja 0x180007cd5
mov rsi, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180007cb9
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rbx
mov r8, rbx
lea rdx, [rbp + 0x770]
mov rcx, rsi
call fcn.1800129d0
mov byte [rsi + rbx], 0
jmp 0x180007ce7
lea r9, [rbp + 0x770]
mov rdx, rbx
mov rcx, rdi
call fcn.1800029a8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp + 0xb70]
xor rcx, rsp
call fcn.180010290
lea r11, [rsp + 0xc80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.180016bf4
int3
call fcn.180016bf4
int3
Function at 0x18000c5d4
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x18000c5eb
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000c627
mov edi, 1
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x18000c607
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18000c627
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x78
jl 0x18000c5fa
xor al, al
jmp 0x18000c629
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18000c788
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x2b0
mov rax, qword [0x180035028]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rbx, rcx
xor r12d, r12d
mov dil, r12b
call fcn.18000233c
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000ca00
xorps xmm0, xmm0
movups xmmword [rbp + 0x160], xmm0
mov qword [rbp + 0x170], r12
mov qword [rbp + 0x178], 7
mov word [rbp + 0x160], r12w
lea rdx, [rbp + 0x160]
mov rcx, rbx
call fcn.18000c634
lea r14, [rbp + 0x160]
mov r8, qword [rbp + 0x160]
cmp qword [rbp + 0x178], 8
cmovae r14, r8
lea rcx, [rbp + 0x160]
cmovae rcx, r8
mov rax, qword [rbp + 0x170]
lea r15, [rcx + rax*2]
lea rbx, [rbp + 0x160]
cmovae rbx, r8
cmp rbx, r15
je 0x18000c866
sub r14, rbx
movzx ecx, word [rbx]
call fcn.180019324
mov word [r14 + rbx], ax
add rbx, 2
cmp rbx, r15
jne 0x18000c850
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x24]
call fcn.1800125c0
mov dword [rsp + 0x20], 0x238
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.18000227c
mov r13d, 1
jmp 0x18000c9e2
xorps xmm0, xmm0
movups xmmword [rbp + 0x180], xmm0
mov qword [rbp + 0x190], r12
mov qword [rbp + 0x198], r12
lea rax, [rsp + 0x4c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r12w
jne 0x18000c8b9
lea rdx, [rsp + 0x4c]
lea rcx, [rbp + 0x180]
call fcn.180008728
nop
lea r14, [rbp + 0x180]
mov r8, qword [rbp + 0x198]
cmp r8, 8
setae cl
mov rdx, qword [rbp + 0x180]
cmovae r14, rdx
lea rax, [rbp + 0x180]
test cl, cl
cmovne rax, rdx
mov r9, qword [rbp + 0x190]
lea r15, [rax + r9*2]
lea rbx, [rbp + 0x180]
cmovne rbx, rdx
cmp rbx, r15
je 0x18000c94b
sub r14, rbx
movzx ecx, word [rbx]
call fcn.180019324
mov word [r14 + rbx], ax
add rbx, 2
cmp rbx, r15
jne 0x18000c920
mov r8, qword [rbp + 0x198]
mov r9, qword [rbp + 0x190]
mov rdx, qword [rbp + 0x180]
lea rcx, [rbp + 0x180]
cmp r8, 8
cmovae rcx, rdx
lea r8, [rbp + 0x160]
cmp qword [rbp + 0x178], 8
cmovae r8, qword [rbp + 0x160]
mov rdx, qword [rbp + 0x170]
cmp rdx, r9
jne 0x18000c9c9
test rdx, rdx
je 0x18000c998
sub r8, rcx
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x18000c9c9
add rcx, 2
sub rdx, r13
jne 0x18000c985
mov r8d, dword [rsp + 0x28]
call fcn.1800023f4
mov rbx, rax
test rax, rax
je 0x18000c9c9
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
movzx edi, dil
cmp eax, r13d
cmove edi, r13d
mov rcx, rbx
call fcn.1800020f8
nop
lea rcx, [rbp + 0x180]
call fcn.18000267c
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1800021bc
cmp eax, r13d
je 0x18000c898
mov rcx, rsi
call fcn.1800020f8
nop
lea rcx, [rbp + 0x160]
call fcn.18000267c
mov al, dil
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.180010290
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x38]
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 0x18000f014
Capabilities:
Check if file exists
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x180035028]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor esi, esi
xorps xmm0, xmm0
or rbx, 0xffffffffffffffff
mov qword [rbp + 0x17], rsi
mov r8, rbx
mov qword [rbp + 0x1f], rsi
mov rdi, rcx
movups xmmword [rbp + 7], xmm0
inc r8
cmp word [rcx + r8*2], si
jne 0x18000f058
mov rdx, rdi
lea rcx, [rbp + 7]
call fcn.180008728
cmp qword [rbp + 0x1f], 8
lea rdx, [rbp + 7]
mov r9, qword [rbp + 0x17]
xorps xmm0, xmm0
cmovae rdx, qword [rbp + 7]
movdqa xmm1, xmmword [0x180030fe0]
movups xmmword [rbp + 0x27], xmm0
mov word [rbp + 0x27], si
movdqu xmmword [rbp + 0x37], xmm1
test r9, r9
je 0x18000f0c9
lea rcx, [r9 - 1]
mov rax, rbx
cmp rcx, rbx
cmovb rax, rcx
lea r8, [rdx + rax*2]
jmp 0x18000f0ba
cmp r8, rdx
je 0x18000f0c9
sub r8, 2
cmp word [r8], 0x5c
jne 0x18000f0b1
sub r8, rdx
sar r8, 1
jmp 0x18000f0cc
mov r8, rbx
cmp r8, rbx
je 0x18000f114
cmp r9, r8
lea rdx, [rbp + 7]
xorps xmm0, xmm0
lea rcx, [rbp - 0x19]
cmovb r8, r9
xorps xmm1, xmm1
cmp qword [rbp + 0x1f], 8
movups xmmword [rbp - 0x19], xmm0
cmovae rdx, qword [rbp + 7]
movdqu xmmword [rbp - 9], xmm1
call fcn.180008728
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x27]
call fcn.18000da4c
lea rcx, [rbp - 0x19]
call fcn.18000267c
mov ebx, esi
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000f140
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 3
jl 0x18000f116
jmp 0x18000f154
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 0x27]
call fcn.18000d0e8
lea rcx, [rbp + 0x27]
call fcn.18000267c
lea rcx, [rbp + 7]
call fcn.18000267c
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.180010290
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x18000f9c0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18000fa44
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800275f0]
cmp byte [rcx + rax], 0
je 0x18000fa44
dec r8
sub rdx, 1
jne 0x18000fa2a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001fe0
Capabilities:
Delete directory
Delete file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rax - 0xf8]
sub rsp, 0x1e0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14002d8a0]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov rdx, rcx
mov r12b, 1
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x28]
call fcn.140007d60
nop
mov r8d, 1
lea rdx, [0x140026f20]
lea rcx, [rsp + 0x28]
call fcn.140006620
lea r8, [0x140026f24]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.14000a070
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rcx, qword [rsp + 0x50]
lea rdx, [rbp - 0x60]
call fcn.14000d21c
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400021ea
mov r13d, 4
cmp dword [rbp - 0x60], 0x10
je 0x1400021ce
lea r8, [rbp - 0x3c]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x78]
call fcn.14000a070
nop
lea rdx, str.delete_file_
lea rcx, [0x14002d190]
call fcn.140009e30
mov rcx, rax
lea rdx, [rbp - 0x3c]
call fcn.140009e30
mov rcx, rax
lea rdx, [0x140026e88]
call fcn.140009e30
mov rbx, rax
mov dl, 0xa
mov rcx, rax
call fcn.140005350
xor edi, edi
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x14000212c
mov rcx, qword [rcx + rbx + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp eax, 0xffffffff
cmove edi, r13d
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
test edi, edi
je 0x140002151
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x140002149
or edx, 4
xor r8d, r8d
call fcn.140001540
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400021bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.delete_file_
lea rcx, [0x14002d190]
call fcn.140009e30
mov rcx, rax
lea rdx, [rbp - 0x3c]
call fcn.140009e30
mov rcx, rax
lea rdx, str.__failed_error_
call fcn.140009e30
mov rcx, rax
mov edx, edi
call fcn.140005170
mov rcx, rax
lea rdx, [0x140026e88]
call fcn.140009e30
xor r12b, r12b
cmp qword [rbp - 0x70], 0x10
jb 0x1400021ce
mov rcx, qword [rsp + 0x78]
call fcn.14000d68c
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.14000d364
test eax, eax
je 0x1400020b1
mov rcx, rsi
call fcn.14000d488
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop
cmp qword [rsp + 0x68], 0x10
jb 0x140002214
mov rcx, qword [rsp + 0x50]
call fcn.14000d68c
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], 0
mov byte [rsp + 0x50], 0
cmp qword [rsp + 0x40], 0x10
jb 0x14000223d
mov rcx, qword [rsp + 0x28]
call fcn.14000d68c
movzx eax, r12b
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.14000c100
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
Function at 0x140004230
Capabilities:
Check if file exists

Disassembly:
push rbp
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rax, qword [0x14002d8a0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov r8d, 5
lea rdx, [0x140027134]
call fcn.140006a10
cmp rax, 0xffffffffffffffff
jne 0x140004291
cmp qword [rbx + 0x18], 0x10
jb 0x14000427f
mov rcx, qword [rbx]
jmp 0x140004282
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x140004291
jmp 0x140004360
mov r8d, 1
lea rdx, [0x14002713c]
mov rcx, rbx
call fcn.140006a10
cmp rax, 0xffffffffffffffff
je 0x140004360
mov r9, qword [rbx + 0x10]
sub r9, rax
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140005100
nop
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
mov r8d, 4
mov rbp, qword [rsp + 0x40]
cmp rbp, r8
cmovb r8, rbp
lea rdx, str..inf
call fcn.1400191e0
movsxd rcx, eax
test eax, eax
jne 0x14000430d
cmp rbp, 4
jb 0x14000434d
cmp rbp, 4
setne al
mov ecx, eax
test ecx, ecx
jne 0x14000434d
cmp qword [rsp + 0x48], 0x10
jb 0x140004323
mov rcx, qword [rsp + 0x30]
call fcn.14000d68c
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x30], 0
cmp qword [rbx + 0x18], 0x10
jb 0x140004349
mov rcx, qword [rbx]
call fcn.14000d68c
mov al, 1
jmp 0x140004371
cmp qword [rsp + 0x48], 0x10
jb 0x140004360
mov rcx, qword [rsp + 0x30]
call fcn.14000d68c
nop
cmp qword [rbx + 0x18], 0x10
jb 0x14000436f
mov rcx, qword [rbx]
call fcn.14000d68c
xor al, al
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], 0
mov byte [rbx], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000c100
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret
Function at 0x140004870
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1400048a1
lea rdx, str.load_module_kernel32_failed
lea rcx, [0x14002d190]
call fcn.140009e30
or eax, 0xffffffff
add rsp, 0x58
ret
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x20]
test rax, rax
je 0x1400048bf
call rax
jmp 0x1400048c5
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x20]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rdi
cmp ax, 9
je 0x140004963
cmp ax, 6
je 0x140004963
lea rdx, str.system_bit_is_32bits
lea rcx, [0x14002d190]
call fcn.140009e30
mov dl, 0xa
mov rcx, rax
mov rdi, rax
call fcn.140005350
mov rcx, qword [rdi]
xor ebx, ebx
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x14000492a
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x14000494f
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x140004947
or edx, 4
xor r8d, r8d
call fcn.140001540
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x50]
mov eax, 0x20
add rsp, 0x58
ret
lea rdx, str.system_bit_is_64bits
lea rcx, [0x14002d190]
call fcn.140009e30
mov dl, 0xa
mov rcx, rax
mov rdi, rax
call fcn.140005350
mov rcx, qword [rdi]
xor ebx, ebx
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x1400049a9
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x1400049ce
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x1400049c6
or edx, 4
xor r8d, r8d
call fcn.140001540
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x50]
mov eax, 0x40
add rsp, 0x58
ret