joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800711ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180071202
mov al, 1
jmp 0x180071262
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180071213
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180071260
mov ecx, dword [rcx + 0x18]
nop
call fcn.18007b758
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180071260
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180071260
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180071260
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180071262
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180076b44
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, [0x1800b1470]
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 0x180076b9b
cmp word [rdx], r13w
jne 0x180076b9b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180076ba0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180076cc5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180076ce6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180076bd9
mov rdx, r9
mov word [rbx], cx
jmp 0x180076c00
cmp r9, r8
jae 0x180076c10
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 0x180076bba
jmp 0x180076cc5
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 0x180076cba
cmp dword [rsp + 0x80], esi
je 0x180076cba
lea r8, [0x1800b1470]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180076c92
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180076c62
mov word [rbx], r13w
jmp 0x180076cc2
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 0x180076c6f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180076cc2
cmp word [rsp + 0x70], r13w
jne 0x180076c9f
cmp rbx, r14
je 0x180076c5c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800777ac
cmp word [rsp + 0x70], r13w
je 0x180076cc5
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, [0x1800b1470]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180076cbf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180076cc5
Function at 0x18007af9c
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 0x18007afcc
xor eax, eax
jmp 0x18007b08f
mov rbp, rbx
cmp word [rax], si
je 0x18007aff1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18007afd8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18007afd4
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.1800796b4
movsxd r14, eax
test eax, eax
jne 0x18007b02f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18007afc5
mov rcx, r14
call fcn.180075898
mov rdi, rax
test rax, rax
jne 0x18007b048
xor ecx, ecx
call fcn.18007458c
jmp 0x18007b024
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.1800796b4
test eax, eax
jne 0x18007b079
mov rcx, rdi
call fcn.18007458c
jmp 0x18007b083
xor ecx, ecx
call fcn.18007458c
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 0x18007de04
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.1800716f0
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 0x18007dea5
cmp ebx, dword [rsp + 0x30]
je 0x18007de9e
test esi, esi
je 0x18007de9e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18007de79
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18007de86
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18007de63
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18007de8a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18007dea7
mov eax, 1
jmp 0x18007dea7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180082124
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.1800777ac
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800777ac
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180082274
cmp rax, 0xffffffffffffffff
je 0x180082274
xor edi, edi
test rbp, rbp
jle 0x18008221f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180074b78
mov rbx, rax
test rax, rax
jne 0x1800821ac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180082215
mov edx, 0x8000
mov ecx, r14d
call fcn.180081fa8
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.180074024
cmp eax, 0xffffffff
je 0x1800821f5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800821bc
mov edx, r15d
mov ecx, r14d
call fcn.180081fa8
jmp 0x180082215
cmp byte [rsi + 0x38], dil
je 0x18008220c
cmp dword [rsi + 0x34], 5
jne 0x18008220c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180082215
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18007458c
jmp 0x180082288
jns 0x180082288
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800777ac
cmp rax, 0xffffffffffffffff
jne 0x180082240
cmp byte [rsi + 0x30], dil
je 0x180082288
mov edi, dword [rsi + 0x2c]
jmp 0x180082288
mov ecx, r14d
call fcn.18007b758
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180082288
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 0x180082288
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180082281
mov eax, dword [rsi + 0x2c]
jmp 0x180082286
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800777ac
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 0x180082d60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180082d88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180082d88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001640
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14009f8a0], rbx
je 0x1400016a7
cmp rax, rbx
jne 0x14000169a
mov ebx, 1
mov esi, ebx
jmp 0x1400016ac
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000167f
mov ebx, 1
mov eax, dword [0x14009f8a8]
cmp eax, ebx
jne 0x1400016c4
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000173a
mov eax, dword [0x14009f8a8]
test eax, eax
jne 0x14000172f
mov dword [0x14009f8a8], ebx
lea r15, [0x14008a328]
lea rdi, [0x14008a310]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140001721
test eax, eax
jne 0x140001725
cmp qword [rdi], r14
je 0x140001716
movabs r10, 0xd30527475e523070
mov rax, qword [rdi]
mov rcx, qword [0x14008a2c0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400016ee
test eax, eax
je 0x140001735
mov eax, 0xff
jmp 0x14000189a
mov dword [0x14009eb14], ebx
mov edi, 0x1f
mov eax, dword [0x14009f8a8]
cmp eax, ebx
jne 0x140001761
lea rdx, [0x14008a308]
lea rcx, [0x14008a2d0]
call sub.msvcrt.dll__initterm
mov dword [0x14009f8a8], 2
test esi, esi
jne 0x14000176f
mov rax, r14
xchg qword [0x14009f8a0], rax
cmp qword [0x14009f8c0], r14
je 0x1400017ac
lea rcx, [0x14009f8c0]
call fcn.140002110
test eax, eax
je 0x1400017ac
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14009f8c0]
mov r9, qword [0x14008a2c0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400017c5
mov eax, 0xff
jmp 0x14000189a
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000184b
test ax, ax
je 0x1400017e0
test edx, edx
jne 0x14000184b
sub ax, bx
cmp ax, di
ja 0x1400017f6
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400017e0
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400289f8
mov dword [0x14009eb10], eax
cmp dword [0x14009eb30], r14d
jne 0x140001834
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14009eb14], r14d
jne 0x140001849
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14009eb10]
jmp 0x14000189a
cmp ax, 0x22
jne 0x14000185f
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400017ce
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140134000
add rsp, 0x28
jmp 0x140001640
Function at 0x140001ffc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002048
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002040
cmp dword [rcx + 0x3c], edx
jl 0x140002040
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002040
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140002048
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000607c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x250
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, qword [rsp + 0x2a0]
mov rsi, r9
mov ebx, r8d
mov rbp, rdx
mov rcx, qword [0x14009b020]
lea r15, [0x14009b020]
lea r12, [0x14008ba10]
cmp rcx, r15
je 0x1400060e9
test byte [rcx + 0x1c], 4
je 0x1400060e9
cmp byte [rcx + 0x19], 5
jb 0x1400060e9
mov rcx, qword [rcx + 0x10]
mov edx, 0xed
mov r8, r12
call fcn.1400042fc
lea rcx, str.Inbox
test ebx, ebx
lea rax, str.SentItems
mov r9, rbp
cmove rax, rcx
lea r8, [0x14008b500]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x104
call fcn.140004280
mov ebx, eax
test eax, eax
jns 0x140006167
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x14000614d
test byte [rcx + 0x1c], 4
je 0x14000614d
cmp byte [rcx + 0x19], 2
jb 0x14000614d
mov rcx, qword [rcx + 0x10]
mov edx, 0xee
mov r9d, eax
mov r8, r12
call fcn.140004328
mov eax, ebx
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x140006253
movzx ebx, bx
jmp 0x140006253
mov rdx, rsi
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140006246
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xb7
jne 0x140006212
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x1400061c4
test byte [rcx + 0x1c], 4
je 0x1400061c4
cmp byte [rcx + 0x19], 5
jb 0x1400061c4
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x38]
lea r9, [rsp + 0x30]
mov r8, r12
call fcn.1400044cc
lea rdx, [rsp + 0x30]
call fcn.14000b7b4
test eax, eax
jne 0x14000620e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140006253
test byte [rcx + 0x1c], 4
je 0x140006253
cmp byte [rcx + 0x19], 2
jb 0x140006253
mov rcx, qword [rcx + 0x10]
mov edx, 0xf0
mov r9d, eax
mov r8, r12
call fcn.140004668
jmp 0x140006253
xor eax, eax
jmp 0x14000624b
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140006253
test byte [rcx + 0x1c], 4
je 0x140006253
cmp byte [rcx + 0x19], 2
jb 0x140006253
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
mov edx, 0xf1
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.14000c558
jmp 0x140006253
mov eax, 1
xor ebx, ebx
cmp dword [rdi], ebx
je 0x140006253
mov dword [rdi], eax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400018f0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008824
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x290
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, r8
mov rdi, rdx
xor ebp, ebp
mov rcx, qword [0x14009b020]
lea r12, [0x14009b020]
cmp rcx, r12
je 0x140008885
test byte [rcx + 0x1c], 4
je 0x140008885
cmp byte [rcx + 0x19], 5
jb 0x140008885
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008ba10]
mov edx, 0xfa
call fcn.1400042fc
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000890f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x1400088e5
test byte [rcx + 0x1c], 4
je 0x1400088e5
cmp byte [rcx + 0x19], 3
jb 0x1400088e5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008ba10]
mov edx, 0xfb
mov qword [rsp + 0x20], rdi
mov r9d, eax
call fcn.14000c6bc
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400018f0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [rsp + 0x4c]
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x50]
shl rcx, 0x20
or rcx, rax
add rbp, rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14000890f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x12
je 0x140008981
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x140008981
test byte [rcx + 0x1c], 4
je 0x140008981
cmp byte [rcx + 0x19], 2
jb 0x140008981
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008ba10]
mov edx, 0xfc
mov qword [rsp + 0x20], rdi
mov r9d, eax
call fcn.14000c6bc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test eax, eax
jne 0x1400089c9
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x1400089c9
test byte [rcx + 0x1c], 4
je 0x1400089c9
cmp byte [rcx + 0x19], 2
jb 0x1400089c9
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008ba10]
mov edx, 0xfd
mov qword [rsp + 0x20], rdi
mov r9d, ebx
call fcn.14000c6bc
cmp ebx, 0x12
jne 0x1400088e5
mov qword [r14], rbp
xor eax, eax
jmp 0x1400088e7
Function at 0x14000bcc0
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, r8d
mov rsi, rdx
xor edi, edi
mov rcx, qword [0x14009b020]
lea r14, [0x14009b020]
cmp rcx, r14
je 0x14000bd26
test byte [rcx + 0x1c], 4
je 0x14000bd26
cmp byte [rcx + 0x19], 5
jb 0x14000bd26
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008ba10]
mov edx, 0xea
call fcn.1400042fc
lea rcx, str.Inbox
test ebx, ebx
lea rax, str.SentItems
mov r9, rsi
cmove rax, rcx
lea r8, [0x14008b500]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x104
call fcn.140004280
mov ebx, eax
test eax, eax
jns 0x14000bda3
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x14000bd8e
test byte [rcx + 0x1c], 4
je 0x14000bd8e
cmp byte [rcx + 0x19], 2
jb 0x14000bd8e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008ba10]
mov edx, 0xeb
mov r9d, eax
call fcn.140004328
mov eax, ebx
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x14000bd9f
movzx ebx, bx
mov eax, ebx
jmp 0x14000bdfe
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14000bdfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x14000bdfc
test byte [rcx + 0x1c], 4
je 0x14000bdfc
cmp byte [rcx + 0x19], 2
jb 0x14000bdfc
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
mov edx, 0xec
mov dword [rsp + 0x20], eax
lea r8, [0x14008ba10]
call fcn.14000c558
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400018f0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14000cc3c
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov rcx, qword [0x14009b020]
lea r14, [0x14009b020]
cmp rcx, r14
je 0x14000cc88
test byte [rcx + 0x1c], 4
je 0x14000cc88
cmp byte [rcx + 0x19], 5
jb 0x14000cc88
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008bae0]
mov edx, 0x20
call fcn.1400042fc
mov r9d, 2
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.14006ec14
xor ebx, ebx
mov rsi, rax
test rax, rax
jne 0x14000ccfd
mov rax, qword [0x14009b020]
cmp rax, r14
je 0x14000cd5e
test byte [rax + 0x1c], 4
je 0x14000cd5e
cmp byte [rax + 0x19], 3
jb 0x14000cd5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea edx, [rsi + 0x21]
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, [0x14008bae0]
mov rcx, qword [rcx + 0x10]
call fcn.1400045e8
jmp 0x14000cd5e
lea rdx, str.NTUserName
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x14000cd4f
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x14000cd4f
test byte [rcx + 0x1c], 4
je 0x14000cd4f
cmp byte [rcx + 0x19], 3
jb 0x14000cd4f
mov rcx, qword [rcx + 0x10]
lea r9, str.NTUserName
mov edx, 0x22
mov dword [rsp + 0x20], eax
lea r8, [0x14008bae0]
call fcn.14000c558
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.14006e2f4
test eax, eax
jne 0x14000cdb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x14000cdb3
test byte [rcx + 0x1c], 4
je 0x14000cdb3
cmp byte [rcx + 0x19], 2
jb 0x14000cdb3
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008bae0]
mov edx, 0x23
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.14000c558
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x14000eca8
Capabilities:
Compare security identifiers

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, 0x20
mov rdi, r8
mov rbp, rdx
mov r14, rcx
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x14000ecfe
test byte [rcx + 0x1c], 4
je 0x14000ecfe
cmp byte [rcx + 0x19], 5
jb 0x14000ecfe
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008bae0]
mov edx, 0x44
call fcn.1400042fc
mov rbx, qword [r14]
mov rbx, qword [rbx]
cmp rbx, qword [r14]
je 0x14000ed31
mov rsi, qword [rbx + 0x10]
mov rcx, rbp
mov rdx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
je 0x14000ed01
test rdi, rdi
je 0x14000ed2c
mov qword [rdi], rbx
mov rax, rsi
jmp 0x14000ed33
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140014fb0
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0x28
mov r10d, dword [rcx + 0x24]
test edx, r10d
jne 0x140014fc1
xor eax, eax
jmp 0x140014ffd
lea eax, [r10 - 4]
test eax, 0xfffffffb
je 0x140014ff8
test r8d, r8d
jne 0x140014ff8
cmp r10d, 2
jne 0x140014fde
mov rcx, qword [rcx + 0x248]
mov rdx, qword [rcx + 0x198]
mov rcx, r9
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
je 0x140014fbd
mov eax, 1
add rsp, 0x28
ret

Function at 0x140023fa4
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rcx, qword [0x14009b020]
lea r14, [0x14009b020]
cmp rcx, r14
je 0x140023fed
test byte [rcx + 0x1c], 4
je 0x140023fed
cmp byte [rcx + 0x19], 5
jb 0x140023fed
mov rcx, qword [rcx + 0x10]
lea r8, str._j_
mov edx, 0x2b
call fcn.1400042fc
mov r9d, 0x2001f
lea rdx, str.SoftwareMicrosoftFaxReceipts
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.14006ec14
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x140024065
mov rax, qword [0x14009b020]
cmp rax, r14
je 0x14002416c
test byte [rax + 0x1c], 4
je 0x14002416c
cmp byte [rax + 0x19], 2
jb 0x14002416c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea edx, [rdi + 0x2c]
mov r9d, eax
lea r8, str._j_
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
jmp 0x14002416c
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14007c848
mov rbx, rax
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x140024139
test eax, eax
je 0x1400240ef
test rbx, rbx
lea r8, [0x14008b4d8]
mov rcx, rdi
cmovne r8, rbx
call fcn.14007e364
test eax, eax
jne 0x140024139
mov rax, qword [0x14009b020]
cmp rax, r14
je 0x1400240ef
test byte [rax + 0x1c], 4
je 0x1400240ef
cmp byte [rax + 0x19], 2
jb 0x1400240ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea r8, str._j_
mov edx, 0x2d
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
lea rdx, str.Password
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x140024139
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x140024139
test byte [rcx + 0x1c], 4
je 0x140024139
cmp byte [rcx + 0x19], 2
jb 0x140024139
mov rcx, qword [rcx + 0x10]
lea r8, str._j_
mov edx, 0x2e
mov r9d, eax
call fcn.1400046fc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test rbx, rbx
je 0x14002416c
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x140024151
add rcx, rcx
xor eax, eax
mov rdi, rbx
rep stosb byte [rdi], al
mov rcx, rbx
call fcn.140069d30
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret