joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140059650
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea rdx, [rsp + 0x40]
call fcn.1400555b0
mov rcx, rax
call fcn.14001f0a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x40]
test eax, eax
setne bl
mov eax, dword [rcx]
test eax, eax
je 0x140059699
cmp eax, 0xffffffff
je 0x1400596a7
sub eax, 1
mov dword [rcx], eax
jne 0x1400596a7
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
test bl, bl
jne 0x1400596c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], 2
mov rcx, qword [rsp + 0x40]
mov qword [rdi], rcx
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400596e0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, rdx
mov rdi, rcx
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rsi, r8
call fcn.1400555b0
mov rcx, rax
call fcn.14001f0a0
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov rbx, rax
call fcn.1400555b0
mov rcx, rax
call fcn.14001f0a0
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rcx, qword [rsp + 0x58]
test eax, eax
setne bl
mov eax, dword [rcx]
test eax, eax
je 0x140059752
cmp eax, 0xffffffff
je 0x140059760
sub eax, 1
mov dword [rcx], eax
jne 0x140059760
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14005977c
cmp eax, 0xffffffff
je 0x14005978a
sub eax, 1
mov dword [rcx], eax
jne 0x14005978a
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
test bl, bl
jne 0x1400597a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], 2
mov rcx, qword [rsp + 0x58]
mov qword [rsi], rcx
mov rsi, qword [rsp + 0x48]
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400597c0
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.14005b9a0
mov rcx, rax
call fcn.14001f0a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rsp + 0x38]
test eax, eax
setne bl
mov eax, dword [rcx]
test eax, eax
je 0x140059805
cmp eax, 0xffffffff
je 0x140059813
sub eax, 1
mov dword [rcx], eax
jne 0x140059813
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
movzx eax, bl
add rsp, 0x20
pop rbx
ret
Function at 0x1400598e0
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x50], rbx
mov rbp, rdx
mov qword [rsp + 0x58], r14
xor sil, sil
mov r14, rcx
xor edi, edi
call fcn.1400552e0
test al, al
je 0x14005998a
mov ecx, 0x8001
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, ebx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.140055010
mov rdx, qword [rax]
mov rcx, qword [rdx + 0x10]
movzx ecx, word [rdx + rcx]
call fcn.14001e720
mov ebx, 1
lea ecx, [rax - 0x41]
shl ebx, cl
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x14005996a
cmp eax, 0xffffffff
je 0x140059978
sub eax, 1
mov dword [rcx], eax
jne 0x140059978
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
and ebx, edi
setne sil
neg ebx
sbb edi, edi
and edi, 0x14
jmp 0x140059a64
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.1400555b0
mov dword [rsp + 0x20], 7
lea rax, str._UNC
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
movaps xmm0, xmmword [rsp + 0x20]
lea rcx, [rsp + 0x60]
mov ebx, 1
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, ebx
call fcn.14001e0c0
test al, al
je 0x140059a3b
mov rax, qword [rsp + 0x60]
lea r8d, [rbx + 6]
mov r9d, ebx
mov rcx, qword [rax + 0x10]
movzx edx, word [rax + rcx]
lea rcx, [rsp + 0x60]
call fcn.14001a080
mov r8d, eax
test eax, eax
jle 0x140059a25
mov rax, qword [rsp + 0x60]
inc r8d
mov r9d, ebx
mov rcx, qword [rax + 0x10]
movzx edx, word [rax + rcx]
lea rcx, [rsp + 0x60]
call fcn.14001a080
test eax, eax
jle 0x140059a25
mov rcx, qword [rsp + 0x60]
mov edx, dword [rcx + 4]
dec edx
cmp eax, edx
jne 0x140059a40
lea rcx, [rsp + 0x60]
call fcn.140059d70
test al, al
je 0x140059a3b
mov edi, 0x10
movzx esi, bl
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x140059a56
cmp eax, 0xffffffff
je 0x140059a64
sub eax, ebx
mov dword [rcx], eax
jne 0x140059a64
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test sil, sil
je 0x140059a98
mov dword [rbp + 0x10], edi
test dil, 0x10
mov ecx, 0x20000
mov eax, 0x40000
cmovne ecx, eax
or ecx, dword [rbp + 4]
bts ecx, 0x16
mov dword [rbp + 4], ecx
or dword [rbp], 0x560000
movzx eax, sil
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005bb40
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov eax, dword [rcx + 0x38]
mov r13, r8
mov rsi, qword [rcx + 0x18]
mov rbx, rdx
mov rdi, rcx
test eax, eax
jne 0x14005bb72
lea edx, [rax + 5]
jmp 0x14005bc2b
test rbx, rbx
jne 0x14005bb94
test r13, r13
jne 0x14005bb94
lea edx, [rbx + 0x57]
lea rcx, [rsp + 0x90]
call fcn.14004d310
lea edx, [rbx + 8]
jmp 0x14005bc3d
xor r14d, r14d
lea r15d, [r14 + 4]
test r9b, 1
je 0x14005bba7
lea ebp, [r14 + 1]
jmp 0x14005bbbb
test al, 2
je 0x14005bbb2
mov ebp, 2
jmp 0x14005bbbb
test al, 1
mov ebp, r14d
cmovne ebp, r15d
cmp qword [rcx + 0x80], r14
jne 0x14005bc86
mov rax, qword [rcx + 0x78]
cmp rax, 0xffffffffffffffff
jne 0x14005bbf6
mov rcx, qword [rcx + 0x70]
test rcx, rcx
je 0x14005bbef
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
cmp rax, 0xffffffffffffffff
jne 0x14005bbf6
mov edx, 5
jmp 0x14005bc2b
test byte [rdi + 0x38], 2
mov r8d, 2
mov qword [rsp + 0x28], r14
mov rcx, rax
cmovne r8d, r15d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 0x80], rax
test rax, rax
jne 0x14005bc86
lea edx, [rax - 1]
lea rcx, [rsp + 0x90]
call fcn.14004d310
mov edx, 0xd
mov r8, rax
mov rcx, rsi
call fcn.140054dd0
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx]
test eax, eax
je 0x14005bc72
cmp eax, 0xffffffff
je 0x14005bd8a
sub eax, 1
mov dword [rcx], eax
jne 0x14005bd8a
mov rcx, qword [rsp + 0x90]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140014460
jmp 0x14005bd8a
mov qword [rsp + 0x98], r12
lea rcx, [rsp + 0x30]
mov r12, rbx
sar r12, 0x20
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x58]
mov r14d, ebx
dec eax
and r14d, eax
je 0x14005bcb2
not eax
and ebx, eax
mov rcx, qword [rdi + 0x80]
lea rax, [r14 + r13]
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov r8d, r12d
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, qword [rsp + 0x98]
test rax, rax
je 0x14005bd08
lea rbx, [r14 + rax]
lea rcx, [rdi + 0x88]
mov qword [rsp + 0x90], rbx
lea rdx, [rsp + 0x90]
call fcn.14005aa20
mov dword [rax], r14d
mov rax, rbx
jmp 0x14005bd8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0xffffffff
lea rcx, [rsp + 0x90]
cmp eax, 5
je 0x14005bd2c
call fcn.14004d310
mov edx, 8
jmp 0x14005bd36
call fcn.14004d310
mov edx, 0xd
mov r8, rax
mov rcx, rsi
call fcn.140054dd0
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx]
test eax, eax
je 0x14005bd63
cmp eax, 0xffffffff
je 0x14005bd72
sub eax, 1
mov dword [rcx], eax
jne 0x14005bd72
mov rcx, qword [rsp + 0x90]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140014460
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x80], 0
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x14005c280
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0x9c], 1
je 0x140056722
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0x9c], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14005c280
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, qword [rcx + 0x18]
mov rsi, rcx
mov rcx, qword [rcx + 0x70]
mov rbp, r8
mov r14, rdx
test rcx, rcx
jne 0x14005c387
cmp dword [rsi + 0x98], 0xffffffff
jne 0x14005c40d
mov rcx, qword [rsi + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x14005c404
mov rbx, r8
lea r9, [rsp + 0x60]
mov r8d, 0x2000000
xor r12d, r12d
cmp rbx, r8
mov qword [rsp + 0x20], r12
mov edi, r12d
cmovl r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005c33e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14005c336
add rdi, rax
sub rbx, rax
cmp rdi, rbp
jge 0x14005c336
mov rcx, qword [rsi + 0x78]
lea rdx, [rdi + r14]
mov r8d, 0x2000000
mov qword [rsp + 0x20], r12
cmp rbx, r8
lea r9, [rsp + 0x60]
cmovl r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14005c2f5
test rdi, rdi
je 0x14005c33e
mov rax, rdi
jmp 0x14005c41b
mov edx, 0xffffffff
lea rcx, [rsp + 0x78]
call fcn.14004d310
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140054dd0
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x14005c3f5
cmp eax, 0xffffffff
je 0x14005c404
sub eax, 1
mov dword [rcx], eax
jne 0x14005c404
mov rcx, qword [rsp + 0x78]
jmp 0x14005c3f5
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
cmp rax, 0xffffffffffffffff
je 0x14005c40d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
add eax, 0xfffffffe
cmp eax, 1
ja 0x14005c40d
mov rcx, qword [rsi + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x14005c40d
mov edx, 0xffffffff
lea rcx, [rsp + 0x60]
call fcn.14004d480
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140054dd0
mov rcx, qword [rsp + 0x60]
mov edx, dword [rcx]
test edx, edx
je 0x14005c3f5
cmp edx, 0xffffffff
je 0x14005c404
sub edx, 1
mov dword [rcx], edx
jne 0x14005c404
mov rcx, qword [rsp + 0x60]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140014460
mov rax, 0xffffffffffffffff
jmp 0x14005c41b
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.140056740
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14005c900
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 8]
mov rsi, rcx
lea rcx, [rsp + 0x20]
call fcn.140054e10
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.1400555b0
mov rcx, rax
call fcn.14001f0a0
lea rcx, [rdi + 0x20]
mov rbx, rax
lea rdx, [rsp + 0x50]
call fcn.1400555b0
mov rcx, rax
call fcn.14001f0a0
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
setne bl
mov eax, dword [rcx]
test eax, eax
je 0x14005c981
cmp eax, 0xffffffff
je 0x14005c98f
sub eax, 1
mov dword [rcx], eax
jne 0x14005c98f
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x14005c9ab
cmp eax, 0xffffffff
je 0x14005c9b9
sub eax, 1
mov dword [rcx], eax
jne 0x14005c9b9
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x14005c9d5
cmp eax, 0xffffffff
je 0x14005c9e3
sub eax, 1
mov dword [rcx], eax
jne 0x14005c9e3
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14005c9ff
cmp eax, 0xffffffff
je 0x14005ca0d
sub eax, 1
mov dword [rcx], eax
jne 0x14005ca0d
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
test bl, bl
jne 0x14005ca65
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 2
lea rcx, [rsp + 0x50]
mov r8d, eax
call fcn.14004d4b0
lea r8, [rsp + 0x50]
mov edx, 0xa
mov rcx, rsi
call fcn.140054dd0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x14005ca57
cmp eax, 0xffffffff
je 0x14005ca65
sub eax, 1
mov dword [rcx], eax
jne 0x14005ca65
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov rsi, qword [rsp + 0x68]
movzx eax, bl
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14005cba0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rax + 0x78]
cmp rbx, 0xffffffffffffffff
jne 0x14005cd08
cmp dword [rax + 0x98], ebx
jne 0x14005ccda
cmp qword [rax + 0x70], 0
jne 0x14005ccda
lea rbx, [rax + 0x20]
mov rcx, rbx
call fcn.1400553b0
test al, al
jne 0x14005ccc8
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140055010
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140031710
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x14005cc28
cmp eax, 0xffffffff
je 0x14005cc36
sub eax, 1
mov dword [rcx], eax
jne 0x14005cc36
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
mov edx, 3
lea rcx, [rsp + 0x20]
call fcn.140031b00
lea rcx, [rsp + 0x20]
test al, al
je 0x14005ccc3
mov rdx, rsi
call fcn.140031e30
movzx ebx, al
test al, al
jne 0x14005cca6
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14002d530
mov r8, rax
mov edx, 0xc
mov rcx, rdi
call fcn.140054dd0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x14005cc98
cmp eax, 0xffffffff
je 0x14005cca6
sub eax, 1
mov dword [rcx], eax
jne 0x14005cca6
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140014460
lea rcx, [rsp + 0x20]
call fcn.1400317f0
movzx eax, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.1400317f0
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
cmp rbx, 0xffffffffffffffff
jne 0x14005cd08
mov rcx, qword [rax + 0x70]
test rcx, rcx
je 0x14005ccf3
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
jmp 0x14005ccf9
mov ecx, dword [rax + 0x98]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005ccc8
mov rax, qword [rdi]
mov rcx, rdi
mov qword [rsp + 0x48], rbp
call qword [rax + 0x30]
mov r8, qword [rdi]
mov rdx, rsi
mov rcx, rdi
mov rbp, rax
call qword [r8 + 0x38]
test al, al
je 0x14005cd4e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14005cd4e
mov rax, qword [rdi]
cmp rbp, rsi
mov rcx, rdi
cmovl rsi, rbp
mov rdx, rsi
call qword [rax + 0x38]
mov al, 1
jmp 0x14005cd5c
mov rax, qword [rdi]
mov rdx, rbp
mov rcx, rdi
call qword [rax + 0x38]
xor al, al
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x412f80
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x0046f1e0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x0046f2d8]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x413001
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x0046f2d8]
jmp 0x41301d
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x0046f2d8], r11
mov qword [0x0046f278], rax
mov rax, qword [0x0046d048]
mov qword [0x0046f150], r11
mov qword [0x0046f260], rdi
mov dword [0x0046f140], 0xc0000409
mov dword [0x0046f144], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x0046d040]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00456648]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x0046d048]
jne 0x4541e9
rol rcx, 0x10
test cx, 0xffff
jne 0x4541e5
ret
ror rcx, 0x10
jmp 0x412f80

Function at 0x4130a0
Capabilities:
Delete service

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov rsi, rdx
xor ebx, ebx
xor edx, edx
xor ecx, ecx
lea r8d, [rbx + 2]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rdi, rax
jne 0x4130d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x41312c
mov r8d, 0xf01ff
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rsi, rax
jne 0x413105
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41312c
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x41311a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x48]
je 0x413188
sub ebx, 5
je 0x413179
sub ebx, 0x41f
je 0x41316a
cmp ebx, 0xc
je 0x41315b
mov eax, 0x119
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
mov eax, 0x117
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
mov eax, 0x11a
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
mov eax, 0x115
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
Function at 0x416050
Capabilities:
Get file size

Disassembly:
mov r11, rsp
sub rsp, 0x1b8
mov rax, qword [0x0046d048]
mov qword [rsp + 0x190], rax
mov rax, qword [0x00456988]
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rbp, rcx
lea rcx, [rsp + 0x60]
mov qword [r11 + 0x20], rsi
mov qword [rcx], rax
mov rax, qword [str.z5p6i7ea8p9n0]
mov qword [r11 - 8], rdi
mov qword [rcx + 8], rax
mov eax, dword [0x00456998]
mov edx, 0x16
mov dword [rcx + 0x10], eax
movzx eax, word [0x0045699c]
mov qword [r11 - 0x10], r12
mov word [rcx + 0x14], ax
lea rcx, [rsp + 0x60]
call fcn.0040b220
lea rdx, [rsp + 0x80]
mov r8d, 0x104
mov esi, dword [rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor r12d, r12d
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 3]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x40]
call fcn.00420e40
mov rcx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x1c8]
sub edi, dword [rax + 0x10]
lea rax, [0x004555a0]
mov qword [rsp + 0x48], r12
sub edi, esi
mov rsi, qword [rsp + 0x1d8]
mov dword [rsp + 0x50], r12d
sub edi, 0x10
test rcx, rcx
mov dword [rsp + 0x58], r12d
mov r12, qword [rsp + 0x1a8]
mov dword [rbp + 0xa8], edi
mov rdi, qword [rsp + 0x1b0]
mov rbp, qword [rsp + 0x1d0]
mov qword [rsp + 0x40], rax
je 0x41618b
call fcn.00429ab0
mov rcx, qword [rsp + 0x190]
call fcn.004541d0
add rsp, 0x1b8
ret
Function at 0x420c10
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov r11, rsp
sub rsp, 0x218
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 8], r12
mov qword [r11 - 0x10], r13
mov rax, qword [0x0046d048]
mov qword [rsp + 0x1f0], rax
mov r13d, ecx
lea rcx, [r11 - 0x168]
call fcn.00420e40
add r13d, dword [rax + 0x10]
lea rax, [0x004555a0]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb8]
xor r12d, r12d
mov qword [rsp + 0xb8], r12
mov dword [rsp + 0xc0], r12d
mov dword [rsp + 0xc8], r12d
test rcx, rcx
je 0x420c99
call fcn.00429ab0
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
sub ebx, r13d
sub ebx, 0x10
lea rcx, [rsp + 0x50]
call fcn.0043f2c0
nop
mov r8d, ebx
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.0043f320
movsxd rbx, ebx
lea rdx, [rbx + rdi + 0x10]
mov r8d, r13d
lea rcx, [rsp + 0x50]
call fcn.0043f320
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.0043f3f0
lea r11, [rsp + 0xb0]
mov rax, qword [rbx + rdi]
mov qword [r11], rax
mov rax, qword [rbx + rdi + 8]
mov qword [r11 + 8], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xb0]
lea rax, [rsp + 0xd0]
mov rcx, qword [r11]
cmp rcx, qword [rax]
jne 0x420dc5
mov rcx, qword [r11 + 8]
cmp rcx, qword [rax + 8]
je 0x420dcd
sbb eax, eax
sbb eax, 0xffffffff
mov r12d, eax
test r12d, r12d
jne 0x420dd9
lea eax, [r12 + 1]
jmp 0x420ddb
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
call fcn.004541d0
mov rbx, qword [rsp + 0x220]
mov rbp, qword [rsp + 0x228]
mov rsi, qword [rsp + 0x230]
mov rdi, qword [rsp + 0x238]
mov r12, qword [rsp + 0x210]
mov r13, qword [rsp + 0x208]
add rsp, 0x218
ret