joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a6f90
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400a7138
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400a6ff5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400a6ff5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a6ff5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400a702c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400a7082
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a7082
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a7082
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a7082
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400a7082
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400a6a40
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400a70e4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140082df0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400a6e10
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400a7130
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140082df0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400a88a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140155678]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400a8935
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400a8996
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140082df0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400bba80
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400a8a51
sub ecx, 1
je 0x1400a8ac4
sub ecx, 1
je 0x1400a8a00
cmp ecx, 1
je 0x1400a89e3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400c6884]
call fcn.140082df0
jmp 0x1400a8ac4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400a85d0
test eax, eax
je 0x1400a8ac4
jmp 0x1400a896a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400a8ac4
sub rax, rsi
cmp rax, rbp
jae 0x1400a8ac4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140082f70
jmp 0x1400a8ac4
cmp r8d, 4
jle 0x1400a8ac4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400a8ac4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140082d10
mov esi, eax
test eax, eax
je 0x1400a8aa3
mov edx, 5
mov rcx, rbx
call fcn.1400a9590
mov eax, esi
jmp 0x1400a896a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400917f0
mov rcx, r14
call fcn.140091ad0
test eax, eax
je 0x1400a8968
mov edx, 5
mov rcx, rbx
call fcn.1400a9590
mov eax, Ordinal_45
jmp 0x1400a896a
Function at 0x1400bb860
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400bb8a2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400bb8e9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400bb942
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400bb900
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400bb983
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140143ef2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140143ef3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400bb950
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400bc95c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400bc9a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400bc9a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400bc9a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400bc9a6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400bc9a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400bc9a8
xor al, al
add rsp, 0x28
ret
Function at 0x140850058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408501df
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 0x140850089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14085006f
add dl, dl
jne 0x140850096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408500f6
xor eax, eax
add dl, dl
jne 0x1408500a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408501ad
add dl, dl
jne 0x1408500b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408500c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408500d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408500dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408500ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14085007e
mov eax, 1
add dl, dl
jne 0x140850106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140850113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408500fb
sub eax, ebx
mov ebx, 1
jne 0x14085014c
mov ecx, 1
add dl, dl
jne 0x14085012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14085013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140850123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14085007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140850168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140850175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14085015d
cmp eax, 0x7d00
jae 0x14085019b
cmp eax, 0x500
jb 0x140850196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14085007e
cmp eax, 0x7f
ja 0x14085019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14085007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408501d2
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 0x14085007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400031d0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x440
mov rax, qword [0x140022200]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov r14, r8
mov r15, rdx
mov ebp, ecx
call fcn.140011b58
mov rbx, rax
call fcn.140011b3c
cmp rbx, 0x989680
jne 0x14000321c
imul rbx, rax, 0x64
jmp 0x14000323d
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
mov rbx, rax
imul rax, rcx, 0x3b9aca00
add rbx, rax
xor edi, edi
mov qword [rsp + 0x460], rsi
mov dword [rsp + 0x20], edi
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rdi, rax
test rax, rax
je 0x1400033d0
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140003387
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x20], ebp
jne 0x140003387
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
jne 0x140003387
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x230]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp qword [r15 + 0x10], 0
je 0x14000333d
cmp qword [r15 + 0x18], 8
mov r8, r15
jb 0x14000330e
mov r8, qword [r15]
lea rax, [rsp + 0x30]
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140003334
add rax, 2
test ecx, ecx
jne 0x140003320
test edx, edx
je 0x14000333d
xor r9b, r9b
jmp 0x140003340
mov r9b, 1
cmp qword [r14 + 0x10], 0
je 0x14000337c
cmp qword [r14 + 0x18], 8
mov r8, r14
jb 0x140003354
mov r8, qword [r14]
lea rax, [rsp + 0x230]
sub r8, rax
nop
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140003374
add rax, 2
test ecx, ecx
jne 0x140003360
test edx, edx
je 0x14000337c
xor al, al
jmp 0x14000337e
mov al, 1
test r9b, r9b
je 0x140003387
test al, al
jne 0x140003403
call fcn.140011b58
mov rsi, rax
call fcn.140011b3c
cmp rsi, 0x989680
jne 0x1400033a3
imul rax, rax, 0x64
jmp 0x1400033c1
cqo
idiv rsi
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rsi
add rax, rcx
sub rax, rbx
cmp rax, 0x5f5e100
jl 0x140003250
xor eax, eax
mov rsi, qword [rsp + 0x460]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140015260
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov rax, rdi
jmp 0x1400033d2
Function at 0x140003500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140022200]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov edx, 0x65
xor ecx, ecx
lea r8d, [rdx - 0x5b]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000355f
lea rdx, str.Failed_to_find_the_specified_resource.
lea rcx, [0x140023b40]
call fcn.14000ccb0
mov rcx, rax
call fcn.14000cf30
xor al, al
jmp 0x1400036f0
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140003591
lea rdx, str.Failed_to_load_the_resource.
lea rcx, [0x140023b40]
call fcn.14000ccb0
mov rcx, rax
call fcn.14000cf30
xor al, al
jmp 0x1400036f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x140022270]
cmp qword [0x140022288], 8
cmovae rdx, qword [0x140022270]
lea rcx, [rsp + 0x30]
call fcn.140009570
mov rcx, qword [rsp + 0x30]
movsxd rax, dword [rcx + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rax + 0x30], rsi
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], edx
cmp qword [rsp + 0xb8], 0
jne 0x14000362f
lea rdx, str.Failed_to_open_the_output_file.
lea rcx, [0x140023b40]
call fcn.14000ccb0
mov rcx, rax
call fcn.14000cf30
xor bl, bl
jmp 0x14000367e
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140006510
lea rcx, [rsp + 0x38]
call fcn.140009440
test rax, rax
jne 0x14000367c
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea r9, [rsp + 0x30]
add rcx, r9
mov edx, 6
mov eax, 2
cmp qword [rcx + 0x48], 0
cmovne edx, eax
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.140002a60
mov bl, 1
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x30], rsi
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x38]
call fcn.140006260
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rcx, qword [rsp + 0x30]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rsp + rdx + 0x2c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xd8], rax
lea rcx, [rsp + 0xd8]
call fcn.140013fdc
nop
movzx eax, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140015260
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400037c0
Capabilities:
Create service
Delete service
Start service

Disassembly:
push rdi
sub rsp, 0x70
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140003801
lea rdx, str.Failed_to_open_Service_Control_Manager.
lea rcx, [0x140023b40]
call fcn.14000ccb0
mov rcx, rax
call fcn.14000cf30
xor al, al
add rsp, 0x70
pop rdi
ret
cmp qword [0x140022288], 8
lea rax, [0x140022270]
mov qword [rsp + 0x80], rbx
lea rbx, [0x140022250]
cmovae rax, qword [0x140022270]
cmp qword [0x140022268], 8
mov qword [rsp + 0x88], rsi
jb 0x140003845
mov rdx, qword [0x140022250]
mov r8, rdx
jmp 0x14000384b
mov rdx, rbx
mov r8, rbx
xor ecx, ecx
mov r9d, 0xf01ff
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov rcx, rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x140003921
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x431
jne 0x140003902
cmp qword [0x140022268], 8
mov r8d, 0xf01ff
mov rcx, rdi
cmovae rbx, qword [0x140022250]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x140003921
lea rdx, str.Failed_to_open_the_existing_service.
lea rcx, [0x140023b40]
call fcn.14000ccb0
mov rcx, rax
call fcn.14000cf30
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1400039e8
lea rdx, str.Failed_to_create_service._Error_code:
lea rcx, [0x140023b40]
call fcn.14000ccb0
mov rcx, rax
mov edx, esi
call fcn.140006a50
jmp 0x1400038ea
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14000397f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_start_service._Error_code:
mov ebx, eax
lea rcx, [0x140023b40]
call fcn.14000ccb0
mov rcx, rax
mov edx, ebx
call fcn.140006a50
mov rcx, rax
call fcn.14000cf30
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1400039e8
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0xe
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.Driver_loaded_successfully.
lea rcx, [0x140023880]
call fcn.14000ccb0
mov rcx, rax
call fcn.14000cf30
mov rcx, rax
call fcn.14000cf30
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 7
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140005560
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
movzx r8d, byte [rdx]
mov r10, rcx
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r8, rax
mov rbx, rdx
movzx eax, byte [rdx + 1]
mov rdi, qword [r10 + 0x18]
mov r9, qword [r10 + 8]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 2]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 3]
imul r8, rcx
xor r8, rax
imul r8, rcx
and r8, qword [r10 + 0x30]
mov r11, r8
shl r11, 4
add r11, rdi
mov rcx, qword [r11 + 8]
cmp rcx, r9
je 0x140005655
mov eax, dword [rbx]
mov rdx, qword [r11]
cmp eax, dword [rcx + 0x10]
je 0x1400055ee
nop dword [rax]
cmp rcx, rdx
je 0x140005655
mov rcx, qword [rcx + 8]
cmp eax, dword [rcx + 0x10]
jne 0x1400055e0
test rcx, rcx
je 0x140005655
add r8, r8
mov rax, qword [rdi + r8*8]
cmp qword [r11 + 8], rcx
jne 0x140005619
cmp rax, rcx
jne 0x14000560f
mov qword [rdi + r8*8], r9
mov qword [r11 + 8], r9
jmp 0x140005625
mov r9, qword [rcx + 8]
mov qword [r11 + 8], r9
jmp 0x140005625
cmp rax, rcx
jne 0x140005625
mov rax, qword [rcx]
mov qword [rdi + r8*8], rax
mov rdx, qword [rcx]
dec qword [r10 + 0x10]
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov edx, 0x18
call fcn.140015280
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140005ad0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140005af2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140005b6c
mov rdi, r14
mov rcx, rbx
call fcn.140009550
test rax, rax
jle 0x140005b44
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140005b5c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140005b64
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140005b06
sub r14, rdi
jmp 0x140005c5b
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140005b83
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005b85
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005bba
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140005c58
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140005bf5
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140005c32
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140005c71
cmp rbp, rax
ja 0x140005c01
mov r8, rdi
test rdi, rdi
je 0x140005c58
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140005c5b
Function at 0x140006070
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140022200]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000609d
xor eax, eax
jmp 0x140006201
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400060d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400060d7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140006201
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400061f4
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000611a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140006145
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400061f9
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x1400061b4
sub eax, 1
je 0x1400061b4
cmp eax, 2
jne 0x1400061f4
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400061f9
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400061e2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400061f4
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x1400061f9
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140015260
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret