joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001830
Capabilities:
Modify service
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14003f0a0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edx, edx
mov rbx, rcx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140001881
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_open_service_manager._Error_code:__d_n
call fcn.140001610
jmp 0x14000197e
cmp qword [rbx + 0x18], 8
mov rdx, rbx
mov qword [rsp + 0xa8], rsi
jb 0x140001896
mov rdx, qword [rbx]
mov r8d, 0x22
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x1400018d4
cmp qword [rbx + 0x18], 8
jb 0x1400018b7
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str.Failed_to_open__s_service._Error_code:__d_n
mov r8d, eax
call fcn.140001610
jmp 0x14000196d
lea r8, [rsp + 0x60]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
xor eax, eax
mov edx, 0xffffffff
mov qword [rsp + 0x50], rax
mov r9d, edx
mov qword [rsp + 0x48], rax
mov rcx, rsi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
lea r8d, [rax + 4]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov rcx, qword [rbx + 0x18]
test eax, eax
jne 0x14000194c
cmp rcx, 8
jb 0x140001932
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str.Failed_to_disable__s_service._Error_code:__d_n
mov r8d, eax
call fcn.140001610
jmp 0x140001964
cmp rcx, 8
jb 0x140001955
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, str._s_service_disabled_successfully._n
call fcn.140001610
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000a4c0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
Function at 0x1400019a0
Capabilities:
Set registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x78
mov rax, qword [0x14003f0a0]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp qword [rcx + 0x18], 8
mov rbx, r8
mov rdi, rdx
jb 0x1400019c6
mov rcx, qword [rcx]
lea rax, [rsp + 0x64]
mov rdx, rcx
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140001a20
mov edx, eax
lea rcx, str.Failed_to_open_or_create_registry_key._Error_code:__d_n
call fcn.140001610
jmp 0x140001ac7
mov qword [rsp + 0x70], rsi
call fcn.140014774
cmp qword [rbx + 0x18], 8
mov rsi, rax
jb 0x140001a37
mov rbx, qword [rbx]
mov r8d, 0xa
mov dword [rax], 0
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.1400113e8
cmp rbx, qword [rsp + 0x58]
je 0x140001ae8
cmp dword [rsi], 0x22
je 0x140001adb
cmp qword [rdi + 0x18], 8
mov dword [rsp + 0x60], eax
jb 0x140001a6e
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140001aab
mov edx, eax
lea rcx, str.Failed_to_set_registry_value._Error_code:__d_n
call fcn.140001610
jmp 0x140001ab7
lea rcx, str.Registry_value_set_successfully._n
call fcn.140001610
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000a4c0
add rsp, 0x78
pop rdi
pop rbx
ret
lea rcx, str.stoi_argument_out_of_range
call fcn.140009454
int3
lea rcx, str.invalid_stoi_argument
call fcn.14000940c
int3
Function at 0x140003810
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xf0
mov rax, qword [0x14003f0a0]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbx, rdx
mov rdi, rcx
lea rdx, [0x140039078]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xorps xmm0, xmm0
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x60], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rdx, rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x28], 0x8000000
movups xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0x20], ecx
movups xmmword [rsp + 0xb0], xmm0
mov dword [rsp + 0x70], 0x68
movups xmmword [rsp + 0x80], xmm0
mov word [rsp + 0xb0], cx
movups xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0xac], 1
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14000a4c0
mov rbx, qword [rsp + 0x110]
add rsp, 0xf0
pop rdi
ret
Function at 0x140005d70
Capabilities:
Create thread
Delete file
Get common file path

Disassembly:
push rbx
sub rsp, 0x480
mov rax, qword [0x14003f0a0]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor eax, eax
lea r8, [0x140005ba0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x140005e7b
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140005ea0
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140005e7b
lea rcx, [rsp + 0x30]
call fcn.1400052c0
cmp qword [rsp + 0x48], 0x10
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x50]
mov edx, 0x104
cmovae rax, qword [rsp + 0x30]
lea r8, str._s_S
lea rcx, [rsp + 0x260]
mov qword [rsp + 0x20], rax
call fcn.140003c50
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140005e7b
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e76
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005e96
call fcn.14000a4e0
xor eax, eax
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14000a4c0
add rsp, 0x480
pop rbx
ret
call fcn.140014b38
int3
Function at 0x140006650
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x20
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400066c4
mov rcx, qword [0x140041a28]
lea r9, str.A71A_TYHk_A7TY
test rcx, rcx
mov qword [rsp + 0x30], rbx
lea r8, str.SYSTEMCurrentControlSetServices_wsPerformance
mov edx, 0x104
cmovne r9, rcx
mov rcx, rax
call fcn.140004fc0
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
add rsp, 0x20
pop rdi
ret
Function at 0x14000b2e4
Capabilities:
Parse pe header

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

Function at 0x140018ab4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400188b0
Function at 0x14001ec7c
Capabilities:
Get file size

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

Function at 0x14001f528
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000ab30
sub rsp, rax
mov rax, qword [0x14003f0a0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001d5fc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001f577
mov rax, rbp
jmp 0x14001f67f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x414a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001fa10
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x414a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001f67b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001f67b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001fa10
test rax, rax
js 0x14001f67b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001f67b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001f66d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001f66d
cmp byte [rcx], 0xd
jne 0x14001f653
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001f662
cmp byte [rcx + 1], 0xa
jne 0x14001f662
inc rcx
jmp 0x14001f662
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3fb70]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001f635
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001f67f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000a4c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022c04
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 0x140022c8b
mov rsi, rbx
cmp word [rax], bp
je 0x140022c4a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140022c34
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140022c30
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001c340
mov rdi, rax
test rax, rax
je 0x140022c78
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000c410
mov rbp, rdi
xor ecx, ecx
call fcn.14001ad74
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 0x140025b60
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.14001bfe0
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 0x140025c01
cmp ebx, dword [rsp + 0x30]
je 0x140025bfa
test esi, esi
je 0x140025bfa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140025bd5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140025be2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140025bbf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140025be6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140025c03
mov eax, 1
jmp 0x140025c03
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140027a64
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, [0x1400414a0]
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 0x140027abb
cmp word [rdx], r13w
jne 0x140027abb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140027ac0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140027be5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140027c06
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140027af9
mov rdx, r9
mov word [rbx], cx
jmp 0x140027b20
cmp r9, r8
jae 0x140027b30
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 0x140027ada
jmp 0x140027be5
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 0x140027bda
cmp dword [rsp + 0x80], esi
je 0x140027bda
lea r8, [0x1400414a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140027bb2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140027b82
mov word [rbx], r13w
jmp 0x140027be2
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 0x140027b8f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140027be2
cmp word [rsp + 0x70], r13w
jne 0x140027bbf
cmp rbx, r14
je 0x140027b7c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001fa18
cmp word [rsp + 0x70], r13w
je 0x140027be5
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, [0x1400414a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140027bdf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140027be5
Function at 0x14002a970
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.14001fa18
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001fa18
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002aac0
cmp rax, 0xffffffffffffffff
je 0x14002aac0
xor edi, edi
test rbp, rbp
jle 0x14002aa6b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001acfc
mov rbx, rax
test rax, rax
jne 0x14002a9f8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002aa61
mov edx, 0x8000
mov ecx, r14d
call fcn.140018b30
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.14001e37c
cmp eax, 0xffffffff
je 0x14002aa41
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002aa08
mov edx, r15d
mov ecx, r14d
call fcn.140018b30
jmp 0x14002aa61
cmp byte [rsi + 0x38], dil
je 0x14002aa58
cmp dword [rsi + 0x34], 5
jne 0x14002aa58
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002aa61
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001ad74
jmp 0x14002aad4
jns 0x14002aad4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001fa18
cmp rax, 0xffffffffffffffff
jne 0x14002aa8c
cmp byte [rsi + 0x30], dil
je 0x14002aad4
mov edi, dword [rsi + 0x2c]
jmp 0x14002aad4
mov ecx, r14d
call fcn.14002360c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002aad4
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 0x14002aad4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002aacd
mov eax, dword [rsi + 0x2c]
jmp 0x14002aad2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001fa18
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 0x14002b310
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002b338
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002b338
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001910
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x20
movsx eax, byte [rcx]
mov rbx, rcx
test al, al
je 0x140001989
cmp byte [rcx + 1], 0x3a
jne 0x14000197c
mov r8d, eax
movzx eax, word [0x1400267e8]
mov word [rsp + 0x30], ax
movzx eax, byte [0x1400267ea]
mov byte [rsp + 0x32], al
lea eax, [r8 - 0x20]
movzx ecx, al
lea edx, [r8 - 0x61]
cmp edx, 0x19
movzx eax, r8b
cmova ecx, eax
mov byte [rsp + 0x30], cl
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x140001973
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
add rbx, 2
cmp byte [rbx], 0
je 0x140001989
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400124e8
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140001a40
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140035964], 0
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
jne 0x140001a9d
lea rcx, str.ADVAPI32.DLL
mov dword [0x140035964], 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140035968], rax
test rax, rax
je 0x140001a9d
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140035970], rax
jmp 0x140001aa4
mov rax, qword [0x140035970]
mov rdx, rbx
mov rcx, rdi
test rax, rax
je 0x140001ac7
xor r9d, r9d
mov r8d, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
Function at 0x140001ae0
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1400344c8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r15d, ecx
xor r13d, r13d
mov rcx, qword [0x140036c18]
mov ebp, r13d
call fcn.140001910
lea rcx, [0x1400267e4]
call fcn.1400124e8
mov qword [rsp + 0x2a0], rsi
lea r14, str.vim.bat
mov qword [rsp + 0x2a8], rdi
lea r12, [0x140035140]
mov r8, qword [r14]
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0x208
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x140035550]
mov rcx, r12
lea rdx, [0x140026440]
call qword [sym.imp.SHELL32.dll_FindExecutableW]
cmp rax, 0x20
jbe 0x140001cac
mov qword [rsp + 0x38], r13
lea r8, [0x140035550]
mov qword [rsp + 0x30], r13
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0x410
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [r12 + rax], r13b
jne 0x140001bc0
inc eax
movsxd rcx, eax
call fcn.14000f950
mov rdi, rax
test rax, rax
je 0x140001d70
mov rdx, rdi
mov rax, r12
sub rdx, r12
nop dword [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140001bf0
lea rdx, [0x140026bc8]
mov rcx, rdi
mov esi, r13d
call fcn.14000715c
mov rbx, rax
test rax, rax
je 0x140001cac
mov r8, rax
lea rcx, [rsp + 0x50]
mov edx, 0x208
call fcn.140007098
test rax, rax
je 0x140001c6c
mov r8d, 0x1c
lea rdx, str.rem__uninstall_key:_vim90_
lea rcx, [rsp + 0x50]
call fcn.140010170
test eax, eax
je 0x140001c67
mov r8, rbx
lea rcx, [rsp + 0x50]
mov edx, 0x208
call fcn.140007098
test rax, rax
jne 0x140001c33
jmp 0x140001c6c
mov esi, 1
mov rcx, rbx
call fcn.140006a9c
test esi, esi
je 0x140001cac
inc ebp
mov rdx, rdi
test r15d, r15d
je 0x140001c98
lea rcx, str.removing__s_n
call fcn.1400019e0
mov rcx, rdi
call fcn.140007500
jmp 0x140001ca4
lea rcx, str.___the_batch_file__s_n
call fcn.1400019e0
mov rcx, rdi
call fcn.14000f93c
add r14, 0x248
lea rax, str.gVim_Easy_9.0
cmp r14, rax
jl 0x140001b46
movsx eax, byte [0x140036c20]
lea rcx, [0x140036c20]
test al, al
je 0x140001d35
cmp byte [0x140036c21], 0x3a
jne 0x140001d30
mov r8d, eax
movzx eax, word [0x1400267e8]
mov word [rsp + 0x40], ax
movzx eax, byte [0x1400267ea]
mov byte [rsp + 0x42], al
lea eax, [r8 - 0x20]
movzx ecx, al
lea edx, [r8 - 0x61]
cmp edx, 0x19
movzx eax, r8b
cmova ecx, eax
mov byte [rsp + 0x40], cl
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x140001d35
cmp byte [0x140036c22], r13b
lea rcx, [0x140036c22]
je 0x140001d35
call fcn.1400124e8
mov rdi, qword [rsp + 0x2a8]
mov eax, ebp
mov rsi, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400028a0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, str.ERROR:_out_of_memory_n
call fcn.1400019e0
mov ecx, 1
call fcn.14000fc60
int3