joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040040
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x140119950]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x10], 0
je 0x1400400ce
mov eax, dword [rsp]
shr eax, 8
mov ecx, dword [rsp]
and ecx, 0xff
mov rdx, qword [rsp + 8]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x18]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x140040072
mov eax, dword [rsp]
not eax
add rsp, 0x28
ret

Function at 0x1400400e0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x140119950]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x38], 0
je 0x1400401e4
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x18], 0
je 0x1400401df
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 2], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 2]
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 0x23
jne 0x1400401b4
cmp qword [rsp + 0x38], 2
jb 0x1400401b4
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1400401b4
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1400401b4
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp + 1]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x140040127
jmp 0x140040276
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 3], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 3]
mov byte [rsp], al
movzx eax, byte [rsp]
test eax, eax
je 0x140040276
movzx eax, byte [rsp]
cmp eax, 0x23
jne 0x14004024c
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14004024c
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14004024c
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x1400401e4
mov eax, dword [rsp + 4]
not eax
add rsp, 0x28
ret
Function at 0x14008d540
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14008d566
mov dword [rsp + 0x20], 1
jmp 0x14008d56e
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14009b010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x3c18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
movss xmm0, dword [rax + 0x3c20]
movss dword [rsp + 0x24], xmm0
mov rax, qword [rsp + 0x50]
movss xmm0, dword [rsp + 0x24]
divss xmm0, dword [rax + 0x14]
movss dword [rsp + 0x3c], xmm0
xorps xmm2, xmm2
xorps xmm1, xmm1
mov rcx, qword [rsp + 0x70]
call fcn.140009df0
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x30], rax
jae 0x14009b15f
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xa
jne 0x14009b121
movss xmm1, dword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax]
call fcn.140068f30
mov rax, qword [rsp + 0x70]
movss dword [rax], xmm0
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
mov rax, qword [rsp + 0x70]
movss dword [rax + 4], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
movzx eax, byte [rsp + 0xa0]
test eax, eax
je 0x14009b11c
jmp 0x14009b15f
jmp 0x14009b092
cmp dword [rsp + 0x28], 0xd
jne 0x14009b12d
jmp 0x14009b092
movzx edx, word [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.140093400
mulss xmm0, dword [rsp + 0x3c]
movss dword [rsp + 0x40], xmm0
movss xmm0, dword [rsp + 0x20]
addss xmm0, dword [rsp + 0x40]
movss dword [rsp + 0x20], xmm0
jmp 0x14009b092
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [rax]
jbe 0x14009b17e
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
movss dword [rax], xmm0
cmp qword [rsp + 0x98], 0
je 0x14009b1ba
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
movaps xmm2, xmm0
movss xmm1, dword [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140009df0
mov rax, qword [rax]
mov rcx, qword [rsp + 0x98]
mov qword [rcx], rax
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [0x1401382d8]
ja 0x14009b1d7
mov rax, qword [rsp + 0x70]
xorps xmm0, xmm0
ucomiss xmm0, dword [rax + 4]
jne 0x14009b1f1
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
mov rax, qword [rsp + 0x70]
movss dword [rax + 4], xmm0
cmp qword [rsp + 0x90], 0
je 0x14009b20c
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1400c2730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
and eax, 7
test eax, eax
je 0x1400c2762
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
and eax, 7
mov edx, eax
mov rcx, qword [rsp + 0x50]
call fcn.1400c1d40
nop
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x10], 0
jle 0x1400c27bd
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x14]
and eax, 0xff
movsxd rcx, dword [rsp + 0x20]
mov byte [rsp + rcx + 0x28], al
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x14]
shr eax, 8
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x14], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
sub eax, 8
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x10], eax
jmp 0x1400c276a
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x10], 0
jge 0x1400c27d9
lea rcx, str.zlib_corrupt
call fcn.1400b5090
jmp 0x1400c291d
cmp dword [rsp + 0x20], 4
jge 0x1400c27ff
mov rcx, qword [rsp + 0x50]
call fcn.1400c1c30
movsxd rcx, dword [rsp + 0x20]
mov byte [rsp + rcx + 0x28], al
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x1400c27d9
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rsp + rax + 0x28]
imul eax, eax, 0x100
mov ecx, 1
imul rcx, rcx, 0
movzx ecx, byte [rsp + rcx + 0x28]
add eax, ecx
mov dword [rsp + 0x24], eax
mov eax, 1
imul rax, rax, 3
movzx eax, byte [rsp + rax + 0x28]
imul eax, eax, 0x100
mov ecx, 1
imul rcx, rcx, 2
movzx ecx, byte [rsp + rcx + 0x28]
add eax, ecx
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x24]
xor eax, 0xffff
cmp dword [rsp + 0x2c], eax
je 0x1400c286f
lea rcx, [0x140134198]
call fcn.1400b5090
jmp 0x1400c291d
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
cmp rax, qword [rcx + 8]
jbe 0x1400c2898
lea rcx, str.read_past_buffer
call fcn.1400b5090
jmp 0x1400c291d
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x50]
cmp rax, qword [rcx + 0x28]
jbe 0x1400c28d1
mov r8d, dword [rsp + 0x24]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsp + 0x50]
call fcn.1400c1fd0
test eax, eax
jne 0x1400c28d1
xor eax, eax
jmp 0x1400c291d
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x50]
mov rdi, qword [rcx + 0x18]
mov rsi, qword [rdx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x18], rax
mov eax, 1
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x1400cd590
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x48]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
add rsp, 0x38
ret
Function at 0x1400fe300
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov ebx, dword [rcx + 0x14]
mov rsi, rcx
call fcn.1400fe030
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.1400fe030
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
test al, al
je 0x1400fe48b
xor eax, eax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r14
cmp ebx, 2
mov qword [rsp + 0x20], r15
lea r14, [rsp + 0x40]
setne al
lea r15, [rsp + 0x40]
add r14, rax
xor rax, 1
add r15, rax
movzx edi, byte [r14]
movzx eax, byte [r15]
shl edi, 8
or edi, eax
lea eax, [rdi - 0xdc00]
cmp eax, 0x3ff
ja 0x1400fe395
lea rcx, [rsi + 0x18]
mov edx, 0xfffd
call fcn.1400fe0d0
jmp 0x1400fe47c
lea eax, [rdi - 0xd800]
mov qword [rsp + 0x48], rbp
cmp eax, 0x3ff
ja 0x1400fe469
mov rcx, rsi
call fcn.1400fe030
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.1400fe030
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
lea rbp, [rsi + 0x18]
test al, al
je 0x1400fe449
nop
movzx eax, byte [r15]
movzx ebx, byte [r14]
shl ebx, 8
or ebx, eax
lea eax, [rbx - 0xdc00]
cmp eax, 0x3ff
jbe 0x1400fe450
lea rbp, [rsi + 0x18]
mov edx, 0xfffd
mov rcx, rbp
call fcn.1400fe0d0
lea eax, [rbx - 0xd800]
cmp eax, 0x7ff
ja 0x1400fe46d
mov rcx, rsi
mov edi, ebx
call fcn.1400fe030
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.1400fe030
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
test al, al
jne 0x1400fe3e0
mov edx, 0xfffd
jmp 0x1400fe46f
and edi, 0x3ff
and ebx, 0x3ff
shl edi, 0xa
or edi, ebx
add edi, 0x10000
jmp 0x1400fe46d
lea rbp, [rsi + 0x18]
mov edx, edi
mov rcx, rbp
call fcn.1400fe0d0
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
Function at 0x14010684c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140106886
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14010688b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1401068d4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140113ba0]
cmp byte [rcx + rax], 0
je 0x1401068d4
dec r8
sub rdx, 1
jne 0x1401068ba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1401083c4
Capabilities:
Parse pe header

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

Function at 0x14016e535
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rdi, r8
movsx r10d, dl
dec rax
rol r10, 0xf9
mov rbp, r9
push r10
neg dx
lea rcx, [r10 - 0x4cd3036e]
pop rsi
jg 0x14015f7c9
mov r8, qword [r9 + rsi - 0x472340ba]
lea rax, [rsi*4 + 0x1aa2be1c]
lea r9, [rsi + r9 - 0x472340b2]
movsx edx, sil
jmp 0x14013bbf7
mov qword [rsp], 0x6c282903
lea rsp, [rsp + 0x10]
mov qword [rbp + riz - 0x10], rsp
call fcn.14013cfb6
mov esi, 0x472340ba
jmp 0x14014ca0e
Function at 0x140004cf0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140004dd0
mov rcx, rax
call fcn.14000a1d0
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140004d50
xor al, al
jmp 0x140004dc1
mov rcx, qword [rsp + 0xa0]
call fcn.14001e810
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, str.name
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140004db4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x140004dc1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x90
pop rdi
ret

Function at 0x14000b040
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14000b06b
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000b072
mov al, 1
jmp 0x14000b1ca
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.14000d420
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.14000d420
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.14000d460
movzx eax, al
test eax, eax
je 0x14000b0c9
xor al, al
jmp 0x14000b1ca
mov qword [rsp + 0x68], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call fcn.14000f030
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000b138
cmp dword [rsp + 0x30], 1
je 0x14000b144
cmp dword [rsp + 0x30], 3
je 0x14000b1b8
jmp 0x14000b1c8
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x14000b18f
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.14001fa00
cmp qword [rsp + 0x48], rax
je 0x14000b18f
xor al, al
jmp 0x14000b1ca
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000b1a9
mov dword [rsp + 0x34], 1
jmp 0x14000b1b1
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14000b1ca
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000b1ca
xor al, al
add rsp, 0xa8
ret
Function at 0x14000df30
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
call fcn.14000d420
mov dword [rsp + 0x50], eax
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x50]
call fcn.14000d460
movzx eax, al
test eax, eax
je 0x14000df74
lea rcx, [rsp + 0xd8]
call fcn.14000ddb0
jmp 0x14000e1d6
mov rcx, qword [rsp + 0xd0]
call fcn.14000e3e0
test rax, rax
je 0x14000dfe0
mov rcx, qword [rsp + 0xd0]
call fcn.14000e3e0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0xd0]
call fcn.14000d430
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
jae 0x14000dfe0
lea rcx, [rsp + 0xd8]
call fcn.14000eba0
mov byte [rsp + 0x42], al
mov rcx, qword [rsp + 0xd0]
call fcn.14000bda0
movzx ecx, byte [rsp + 0x42]
mov byte [rax], cl
mov eax, dword [rsp + 0xd8]
jmp 0x14000e1d6
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 0x80], 0
jne 0x14000dffc
call fcn.14000d420
jmp 0x14000e1d6
mov rcx, qword [rsp + 0xd0]
call fcn.14000be00
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 0x68], 0
jne 0x14000e072
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xd8]
call fcn.14000eba0
mov byte [rsp + 0x43], al
mov rdx, qword [rsp + 0x68]
movzx ecx, byte [rsp + 0x43]
call fcn.1400071c0
movzx eax, al
test eax, eax
je 0x14000e060
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x48], eax
jmp 0x14000e069
call fcn.14000d420
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
jmp 0x14000e1d6
mov qword [rsp + 0x88], 0x20
lea rcx, [rsp + 0xd8]
call fcn.14000eba0
mov byte [rsp + 0x40], al
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x41]
mov rdx, qword [rsp + 0xd0]
add rdx, 0x74
lea r8, [rsp + 0x78]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call fcn.14000deb0
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x14000e116
cmp dword [rsp + 0x44], 1
je 0x14000e116
cmp dword [rsp + 0x44], 3
je 0x14000e195
jmp 0x14000e1d1
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x14000e16a
mov rax, qword [rsp + 0xd0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x90]
call fcn.14001fa00
cmp qword [rsp + 0x58], rax
je 0x14000e16a
call fcn.14000d420
jmp 0x14000e1d6
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x80], rax
je 0x14000e18e
mov eax, dword [rsp + 0xd8]
jmp 0x14000e1d6
call fcn.14000d420
jmp 0x14000e1d6
mov rax, qword [rsp + 0xd0]
mov rdx, qword [rax + 0x80]
movzx ecx, byte [rsp + 0x40]
call fcn.1400071c0
movzx eax, al
test eax, eax
je 0x14000e1c2
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x4c], eax
jmp 0x14000e1cb
call fcn.14000d420
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
jmp 0x14000e1d6
call fcn.14000d420
add rsp, 0xc8
ret
Function at 0x140011f80
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140011fa4
xor eax, eax
jmp 0x140011fd2
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x140011fcd
xor eax, eax
jmp 0x140011fd2
mov rax, qword [rsp + 8]
add rsp, 0x18
ret
Function at 0x140014db0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [0x14003d190]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140014ddd
xor al, al
jmp 0x140014f45
mov r8, qword [rsp + 0xb0]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x70]
call fcn.140014f50
nop
lea rcx, [rsp + 0x70]
call fcn.14000c9d0
mov rdx, rax
lea rcx, [rsp + 0x90]
call sub.ntdll.dll_RtlInitUnicodeString
mov r8, qword [rsp + 0xb0]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x50]
call fcn.140014f50
nop
lea rcx, [rsp + 0x50]
call fcn.14000c9d0
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140014ea4
cmp dword [rsp + 0x24], 2
jne 0x140014e80
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x50]
call fcn.140009c50
nop
lea rcx, [rsp + 0x70]
call fcn.140009c50
movzx eax, byte [rsp + 0x20]
jmp 0x140014f45
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x50]
call fcn.140009c50
nop
lea rcx, [rsp + 0x70]
call fcn.140009c50
movzx eax, byte [rsp + 0x21]
jmp 0x140014f45
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x90]
call qword [rsp + 0x48]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x50]
call fcn.14000c9d0
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140014f26
mov byte [rsp + 0x22], 0
lea rcx, [rsp + 0x50]
call fcn.140009c50
nop
lea rcx, [rsp + 0x70]
call fcn.140009c50
movzx eax, byte [rsp + 0x22]
jmp 0x140014f45
mov byte [rsp + 0x23], 1
lea rcx, [rsp + 0x50]
call fcn.140009c50
nop
lea rcx, [rsp + 0x70]
call fcn.140009c50
movzx eax, byte [rsp + 0x23]
add rsp, 0xa8
ret

Function at 0x140015020
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x240
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14001506b
cmp dword [rsp + 0x24], 0x105
jbe 0x140015094
lea rdx, [0x14003d26c]
mov rcx, qword [rsp + 0x250]
call fcn.140008780
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x250]
jmp 0x1400150de
lea rcx, [rsp + 0x30]
call fcn.14001e334
movzx eax, word [rsp + rax*2 + 0x2e]
cmp eax, 0x5c
jne 0x1400150b9
lea rcx, [rsp + 0x30]
call fcn.14001e334
xor ecx, ecx
mov word [rsp + rax*2 + 0x2e], cx
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x250]
call fcn.140008780
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret