joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400169d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x14004a0e8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x60], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140016a55
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140016a55
call fcn.1400150c0
mov ebx, eax
jmp 0x140016b80
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140016a76
call fcn.1400150c0
jmp 0x140016b6f
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140016a99
call fcn.1400150c0
jmp 0x140016b6f
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140016abb
mov ebx, 0x8007000e
jmp 0x140016b71
mov ecx, eax
test eax, eax
je 0x140016af3
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140016bb8
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140016af3
lfence
lea rcx, [rsp + 0x60]
call fcn.140014f30
jmp 0x140016afd
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x140016b10
cmp qword [rsp + 0x60], 0
jne 0x140016b1f
mov ebx, 0x8007000e
jmp 0x140016b71
lfence
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140016b4c
call fcn.1400150c0
jmp 0x140016b6f
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.1400164d0
mov ebx, eax
test rdi, rdi
je 0x140016b80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140016b97
lea rcx, [rsp + 0x60]
call fcn.140015600
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14001eb90
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
lfence
mov ecx, 0x80070216
call fcn.140004120
int3
Function at 0x14001fbb0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001fbfa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001fbfa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001fbfa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001fbfa
cmp dword [rcx + 0x84], 0xe
jbe 0x14001fbfa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001fbfc
xor al, al
add rsp, 0x28
ret
Function at 0x14002dd68
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 0x14002ddef
mov rsi, rbx
cmp word [rax], bp
je 0x14002ddae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002dd98
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002dd94
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140029c70
mov rdi, rax
test rax, rax
je 0x14002dddc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140021450
mov rbp, rdi
xor ecx, ecx
call fcn.14002a3c0
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 0x14001d6c0
Capabilities:
Log keystrokes via polling

Disassembly:
lea eax, [rdx - 0x100]
cmp eax, 9
ja 0x140005ffe
mov al, 1
ret
jmp method.QAxWidget.1.virtual_376
push rdi
sub rsp, 0x20
mov edi, r8d
sub edx, 0x100
je 0x14001d6f3
sub edx, 4
je 0x14001d761
dec edx
jne 0x14001d6eb
cmp r8d, 0x12
sete al
add rsp, 0x20
pop rdi
ret
xor al, al
add rsp, 0x20
pop rdi
ret
cmp r8d, 9
je 0x14001d761
cmp r8d, 0x2e
je 0x14001d761
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x30], rbx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 1
xor ebx, ebx
test ax, ax
cmovs ebx, ecx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14001d72f
or ebx, 2
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14001d742
or ebx, 4
test ebx, ebx
je 0x14001d753
xor ebx, ebx
lea eax, [rdi - 0x25]
cmp eax, 3
seta bl
test ebx, ebx
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1400246c0
Capabilities:
Accept command line arguments

Disassembly:
push rdi
push r15
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x1400246f5
or rax, 0xffffffffffffffff
add rsp, 0x78
pop r15
pop rdi
ret
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0x90], rbx
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x60], r14
movsxd rcx, eax
mov eax, 8
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.140023ca4
xor ebx, ebx
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
jle 0x1400247fa
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r13
mov r13, rdi
mov r12, r14
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r13 + r12]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov r9d, r15d
xor edx, edx
xor ecx, ecx
mov r8, rbp
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.140023ca4
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov r9d, r15d
mov r8, rbp
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov rsi, rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
mov eax, dword [rsp + 0x40]
inc r14d
lea r12, [r12 + 8]
cmp r14d, eax
jl 0x140024770
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x98]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.140006010
mov esi, eax
cmp dword [rsp + 0x40], ebx
jle 0x140024839
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x140024839
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jl 0x140024820
mov rcx, r14
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x90]
mov eax, esi
mov rsi, qword [rsp + 0xa0]
add rsp, 0x78
pop r15
pop rdi
ret
Function at 0x140001298
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
xor ebx, ebx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
je 0x140001321
mov ebx, esi
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [rdi + 8]
mov rcx, rax
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14000131a
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x140001333
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, 0x1f
test edi, edi
cmove edi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x140001333
xor ebx, ebx
jmp 0x140001333
mov edi, 0xe
jmp 0x140001333
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, 0x1f
test edi, edi
cmove edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140001364
lea rcx, [0x140001090]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001610
Capabilities:
Check mutex on windows
Enumerate gui resources
Set current directory

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, 0x30
mov rbp, r8
mov r14, rcx
lea r8, [0x1400010f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
test rax, rax
je 0x14000167c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xb7
cmp eax, ebx
jne 0x14000167c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
lea rcx, [0x14000144c]
call qword [sym.imp.USER32.dll_EnumWindows]
jmp 0x140001706
call fcn.14000137c
mov rsi, rax
test rax, rax
je 0x1400016f0
call fcn.140001298
lea rdx, [0x1400010d8]
mov rcx, rsi
call fcn.14000193c
cmp qword [rsi + 0x10], 0
lea rbx, [0x1400011a8]
mov rcx, rbx
cmovne rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, [0x140001190]
mov rcx, rsi
call fcn.14000193c
cmp qword [rsi + 0x10], 0
mov r8, rbp
cmovne rbx, qword [rsi + 0x10]
mov rcx, r14
mov rdx, rbx
call fcn.1400014c4
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
jmp 0x1400016f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rdi, rdi
je 0x140001706
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop r14
ret
Function at 0x140001cbc
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 [0x1400035e8], rbx
je 0x140001d23
cmp rax, rbx
jne 0x140001d16
mov ebx, 1
mov esi, ebx
jmp 0x140001d28
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001cfb
mov ebx, 1
mov eax, dword [0x1400035f0]
cmp eax, ebx
jne 0x140001d40
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x140001da5
mov eax, dword [0x1400035f0]
test eax, eax
jne 0x140001d9a
mov dword [0x1400035f0], ebx
lea r15, [0x140001038]
lea rdi, [0x140001020]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140001d8c
test eax, eax
jne 0x140001d90
mov rcx, qword [rdi]
test rcx, rcx
je 0x140001d81
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140001d6a
test eax, eax
je 0x140001da0
mov eax, 0xff
jmp 0x140001ef1
mov dword [0x140003024], ebx
mov edi, 0x1f
mov eax, dword [0x1400035f0]
cmp eax, ebx
jne 0x140001dcc
lea rdx, [0x140001018]
lea rcx, [0x140001008]
call sub.msvcrt.dll__initterm
mov dword [0x1400035f0], 2
test esi, esi
jne 0x140001dda
mov rax, r14
xchg qword [0x1400035e8], rax
cmp qword [0x1400035f8], r14
je 0x140001e05
lea rcx, [0x1400035f8]
call fcn.140002170
test eax, eax
je 0x140001e05
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400035f8]
call rax
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140001e1e
mov eax, 0xff
jmp 0x140001ef1
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x140001ea2
cmp word [rcx], r14w
je 0x140001e37
test edx, edx
jne 0x140001ea2
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x140001e4d
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140001e37
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.140001610
mov dword [0x140003020], eax
cmp dword [0x140003040], r14d
jne 0x140001e8b
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003024], r14d
jne 0x140001ea0
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003020]
jmp 0x140001ef1
cmp word [rcx], 0x22
jne 0x140001eb6
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 0x140001e27
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.140159000
add rsp, 0x28
jmp 0x140001cbc
Function at 0x140002060
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400020ac
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400020a4
cmp dword [rcx + 0x3c], edx
jl 0x1400020a4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400020a4
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 0x1400020ac
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1400022f4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140ed8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ed81df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140ed8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ed806f
add dl, dl
jne 0x140ed8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ed80f6
xor eax, eax
add dl, dl
jne 0x140ed80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ed81ad
add dl, dl
jne 0x140ed80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ed80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ed80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ed80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ed80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ed807e
mov eax, 1
add dl, dl
jne 0x140ed8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ed8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ed80fb
sub eax, ebx
mov ebx, 1
jne 0x140ed814c
mov ecx, 1
add dl, dl
jne 0x140ed812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ed813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ed8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ed807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ed8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ed8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ed815d
cmp eax, 0x7d00
jae 0x140ed819b
cmp eax, 0x500
jb 0x140ed8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ed807e
cmp eax, 0x7f
ja 0x140ed819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ed807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ed81d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140ed807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401100
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rdi
xor r9d, r9d
push rsi
push rbx
mov rbp, rdx
mov r8d, 1
mov edx, 0x80000000
sub rsp, 0x58
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x4011ab
xor edx, edx
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov ebx, eax
je 0x4011ab
mov ecx, eax
call sub.msvcrt.dll_malloc
mov rcx, rsi
mov rdi, rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8d, ebx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov rcx, rsi
je 0x40119d
cmp ebx, dword [rsp + 0x4c]
jne 0x40119d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp], ebx
mov rax, rdi
jmp 0x4011ad
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call sub.msvcrt.dll_free
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x4011c0
Capabilities:
Delete service
Unload driver

Disassembly:
push rdi
push rsi
mov esi, ecx
push rbx
sub rsp, 0x30
call fcn.00401010
or eax, esi
je 0x401290
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rbx, rax
je 0x401290
mov r8d, 0xf01ff
lea rdx, str.WinD64inject
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x40129a
test esi, esi
je 0x401230
mov rcx, rax
mov rsi, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call rsi
mov rcx, rbx
call rsi
mov eax, 1
jmp 0x401292
lea rcx, str.Service_deleted.
call sub.msvcrt.dll_puts
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
mov esi, eax
mov rdi, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call rdi
mov rcx, rbx
call rdi
lea rax, str.RegistryMachineSystemCurrentControlSetServicesWinD64
lea rcx, [rsp + 0x20]
mov word [rsp + 0x20], 0x74
mov word [rsp + 0x22], 0x76
mov qword [rsp + 0x28], rax
call sub.ntdll.dll_NtUnloadDriver
test esi, esi
jne 0x4012cd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop dword [rax]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
jne 0x401290
lea rax, str.RegistryMachineSystemCurrentControlSetServicesWinD64
lea rcx, [rsp + 0x20]
mov word [rsp + 0x20], 0x74
mov word [rsp + 0x22], 0x76
mov qword [rsp + 0x28], rax
call sub.ntdll.dll_NtUnloadDriver
jmp 0x401280
lea rcx, str.WinD64_uninstalled.
call sub.msvcrt.dll_puts
mov eax, esi
jmp 0x401292
Function at 0x4013d0
Capabilities:
Create service
Get common file path
Persist via windows service
Start service

Disassembly:
push rdi
push rsi
xor edx, edx
push rbx
xor ecx, ecx
mov r8d, 0xf003f
sub rsp, 0x280
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
je 0x4014ca
lea rbx, [rsp + 0x70]
mov rsi, rax
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, eax
lea rdx, str.WinD64.exe__X
lea rcx, [rbx + rax*2]
call sub.ntdll.dll_wcscpy
lea rax, str.Base
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov r9d, 0xf01ff
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
lea r8, str.WinD64_injector_service
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
lea rdx, str.WinD64inject
mov dword [rsp + 0x20], 0x10
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
mov rdi, rax
je 0x4014da
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
lea rcx, str.WinD64_installed_successfuly.
mov ebx, 1
call sub.msvcrt.dll_puts
mov rcx, rdi
mov rdi, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call rdi
mov rcx, rsi
call rdi
mov eax, ebx
add rsp, 0x280
pop rbx
pop rsi
pop rdi
ret
lea rcx, str.Unable_to_initialize_boot_service.
call sub.msvcrt.dll_puts
xor eax, eax
jmp 0x4014bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x4014f7
lea rcx, str.WinD64_installation_failed._Use_debug_version_to_find_out_why.
xor ebx, ebx
call sub.msvcrt.dll_puts
jmp 0x4014ac
mov r8d, 0xf01ff
lea rdx, str.WinD64inject
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x4014e7
mov rdi, rax
jmp 0x40148d

Function at 0x4015d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rdi
push rsi
mov rsi, rdx
push rbx
lea rdx, [0x00403240]
mov rbx, rcx
sub rsp, 0x250
call sub.ntdll.dll_wcscpy
mov rcx, rbx
call sub.ntdll.dll_wcslen
movzx r8d, word [rsi]
mov edx, eax
test r8w, r8w
je 0x40165d
lea rcx, [rsi + 2]
mov r10, rsi
cmp r8w, 0x5c
cmove r10, rcx
add rcx, 2
movzx r8d, word [rcx - 2]
test r8w, r8w
jne 0x401607
movzx ecx, word [r10]
cmp cx, 0x2e
je 0x40165d
test cx, cx
je 0x40165d
cdqe
lea r8, [rbx + rax*2]
xor eax, eax
jmp 0x401646
cmp cx, 0x2e
je 0x40165d
mov word [r8 + rax], cx
movzx ecx, word [r10 + rax + 2]
add edx, 1
add rax, 2
test cx, cx
jne 0x401640
xor eax, eax
movsxd rdx, edx
xor ecx, ecx
mov word [rbx + rdx*2], ax
mov rdx, rbx
call sub.ntdll.dll_RtlCreateRegistryKey
xor edx, edx
test eax, eax
js 0x4016ec
lea rdi, [rsp + 0x40]
lea r8, str.___s
mov r9, rsi
mov edx, 0x104
mov rcx, rdi
call fcn.004015a0
lea eax, [rax + rax + 2]
lea r8, str.ImagePath
mov r9d, 1
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], eax
call sub.ntdll.dll_RtlWriteRegistryValue
lea rax, [rsp + 0x3c]
lea r8, str.Type
mov rdx, rbx
mov dword [rsp + 0x28], 4
mov r9d, 4
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c], 1
call sub.ntdll.dll_RtlWriteRegistryValue
mov edx, 1
add rsp, 0x250
mov eax, edx
pop rbx
pop rsi
pop rdi
ret
Function at 0x401ea0
Capabilities:
Unload driver

Disassembly:
sub rsp, 0x38
call fcn.00401010
test eax, eax
jne 0x401eb2
add rsp, 0x38
ret
lea rax, str.RegistryMachineSystemCurrentControlSetServicesWinD64
lea rcx, [rsp + 0x20]
mov word [rsp + 0x20], 0x74
mov word [rsp + 0x22], 0x76
mov qword [rsp + 0x28], rax
call sub.ntdll.dll_NtUnloadDriver
xor edx, edx
mov ecx, 1
call fcn.004019a0
test rax, rax
je 0x401eee
call fcn.004013d0
jmp 0x401ead
lea rcx, str.Failed_to_initialize_driver.
call sub.msvcrt.dll_puts
xor eax, eax
jmp 0x401ead