joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800ff9d0
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x1800ffa05
lea rdx, str.Couldnt_set_desired_mode
call fcn.1800e0cf0
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x1800ffa1c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.1800e0e70
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x1800ffa38
mov rcx, rdi
call fcn.1800ff910
jmp 0x1800ffb6f
cmp esi, 0x14
jne 0x1800ffb51
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xba0], 2
jne 0x1800ffab9
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800ffab9
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.1800f74c0
test eax, eax
jne 0x1800ffb6f
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1800ffaae
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1800ffab9
mov rcx, qword [rsp + 0x50]
call qword [fcn.1800cd5ce]
mov rdx, qword [rsi + 0xc08]
test rdx, rdx
jne 0x1800ffadd
cmp byte [rsi + 0xf0d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x18020b381]
test rbp, rbp
mov r9, r8
lea rax, [0x18019dd48]
cmovne r9, rbp
lea rcx, [0x1801ff980]
cmovne r8, rax
call fcn.1800f16d0
mov rcx, rbp
mov r14, rax
call qword [fcn.1800cd5ce]
test r14, r14
jne 0x1800ffb1c
lea ebx, [r14 + 0x1b]
jmp 0x1800ffb71
lea rcx, [rdi + 0xa00]
mov r8, r14
lea rdx, [0x18019da24]
call fcn.180116f90
mov rcx, r14
mov esi, eax
call qword [fcn.1800cd5ce]
test esi, esi
je 0x1800ffb45
mov ebx, esi
jmp 0x1800ffb71
mov dword [rdi + 0xab8], 0x1f
jmp 0x1800ffb71
cmp esi, 0x15
jne 0x1800ffb5c
lea r8d, [rsi - 8]
jmp 0x1800ffb65
cmp esi, 0x16
jne 0x1800ffb71
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.1800ff440
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x180105460
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x180105584
cmp r8d, 0xff
jne 0x1801054c1
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1801054ab
lea r8, [0x180000000]
mov r9, qword [r8 + r10*8 + 0x205c30]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.1800e0e70
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.1800e0e70
cmp r8d, 0xfb
jne 0x1801054d3
lea r9, str.WILL
jmp 0x180105511
cmp r8d, 0xfc
jne 0x1801054e5
lea r9, str.WONT
jmp 0x180105511
cmp r8d, 0xfd
jne 0x1801054f7
lea r9, [0x180206654]
jmp 0x180105511
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x18010556d
cmp r10d, 0x27
jg 0x180105544
lea r8, [0x180000000]
mov r8, qword [r8 + r10*8 + 0x206250]
test r8, r8
jne 0x180105554
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.1800e0e70
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x18010552b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.1800e0e70
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.1800e0e70
add rsp, 0x38
ret

Function at 0x1801058d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x18010592f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1800e0cf0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.180105460
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180105ae0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x180105c88
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 0x180105b45
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x180105b45
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x180105b45
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 0x180105b7c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x180105bd2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x180105bd2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x180105bd2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x180105bd2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x180105bd2
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.180105590
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 0x180105c34
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1800e0cf0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.180105960
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 0x180105c80
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1800e0cf0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1801073f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x180229ec0]
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 0x180107485
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 0x1801074e6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1800e0cf0
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.1800cbe10
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 0x1801075a1
sub ecx, 1
je 0x180107614
sub ecx, 1
je 0x180107550
cmp ecx, 1
je 0x180107533
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x18019da24]
call fcn.1800e0cf0
jmp 0x180107614
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.180107120
test eax, eax
je 0x180107614
jmp 0x1801074ba
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 0x180107614
sub rax, rsi
cmp rax, rbp
jae 0x180107614
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1800e0e70
jmp 0x180107614
cmp r8d, 4
jle 0x180107614
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 0x180107614
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1800e0c10
mov esi, eax
test eax, eax
je 0x1801075f3
mov edx, 5
mov rcx, rbx
call fcn.1801080e0
mov eax, esi
jmp 0x1801074ba
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1800eee00
mov rcx, r14
call fcn.1800ef0e0
test eax, eax
je 0x1801074b8
mov edx, 5
mov rcx, rbx
call fcn.1801080e0
mov eax, Ordinal_46
jmp 0x1801074ba
Function at 0x18011b810
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 0x18011b852
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 0x18011b899
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 0x18011b8f2
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 0x18011b8b0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x18011b933
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x18020b32b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x18020b32c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x18011b900
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 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Extract resource via kernel32 functions
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov edx, 0x64
mov dword [rsp + 0x40], 0
xor ecx, ecx
lea r8d, [rdx - 0x5a]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
movsxd rbx, eax
mov r9d, 4
mov rdx, rbx
mov r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call fcn.140001b30
lea r9, [rsp + 0x40]
mov r8d, 0x20
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400010b4
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rsi
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400036d8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140003504
Function at 0x401465
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x005b1d00]
mov dword [rax], 1
mov rax, qword [0x005b1d10]
mov dword [rax], 1
mov rax, qword [0x005b1d20]
mov dword [rax], 1
mov rax, qword [0x005b1cf0]
mov dword [rax], 1
mov rax, qword [0x005b1b20]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x4014c3
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x4014ef
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x401515
cmp eax, 0x20b
je 0x40153c
jmp 0x40156b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x401528
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x401570
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x401557
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x401570
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x596ba0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
lea rax, [rbp - 0x28]
mov qword [rbp - 0x58], rax
mov ecx, 2
call fcn.0059ebd0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 0x58]
mov ecx, 2
call fcn.0059ebd0
mov r8, rbx
mov rdx, qword [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x5977a6
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x005cad68]
test eax, eax
je 0x597834
lea rcx, [0x005cad40]
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x005cad70]
mov qword [rbp - 8], rax
jmp 0x59781b
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x59780f
cmp qword [rbp - 0x10], 0
je 0x59780f
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x5977d5
lea rcx, [0x005cad40]
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x597835
nop
add rsp, 0x30
pop rbp
ret

Function at 0x597940
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x597968
mov eax, 0
jmp 0x5979b6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x597991
mov eax, 0
jmp 0x5979b6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x5979b1
mov eax, 0
jmp 0x5979b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x5979bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x597a3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x597a31
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x597a31
mov rax, qword [rbp - 8]
jmp 0x597a4f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x597a04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x100014e68
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov ebx, ecx
mov esi, 1
xor ecx, ecx
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov r11d, dword [0x10002ef20]
cmp ebx, 2
cmovge r11d, esi
lea rdx, [0x10002ed10]
mov r8d, 0x104
xor ecx, ecx
mov dword [0x10002ef20], r11d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
mov edi, ebx
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x98]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [rsp + 0x98], esi
mov dword [rsp + 0x80], esi
mov r15, rax
jle 0x100014f3f
lea r14, [rax + 8]
mov r13, qword [r14]
cmp word [r13], 0x2f
je 0x100014efe
cmp word [r13], 0x2d
jne 0x100014f3a
mov r12d, ebx
mov rsi, rbx
lea rax, [0x100012a74]
mov edx, r12d
lea rcx, [r13 + 2]
imul rdx, rdx, 0x184
add rdx, rax
call fcn.10001df48
cmp eax, ebx
je 0x100014fba
inc r12d
inc rsi
cmp r12d, 7
jb 0x100014f04
mov esi, 1
mov ebp, 0x80040903
cmp r15, rbx
je 0x100014f4d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebp, ebx
mov eax, 0x80000000
cmovl edi, eax
cmp edi, ebx
jne 0x100014ff6
lea rcx, [0x100013510]
lea rax, [0x100015074]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
cmp eax, ebx
jne 0x100015053
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x427
jne 0x100014fa8
call fcn.1000150e0
movzx eax, di
or eax, 0x80070000
cmp edi, ebx
cmovle eax, edi
jmp 0x100015051
imul rsi, rsi, 0x184
lea rax, [0x100012a70]
add r14, 8
or edi, dword [rsi + rax]
mov eax, dword [rsp + 0x80]
mov esi, 1
add eax, esi
cmp eax, dword [rsp + 0x98]
mov dword [rsp + 0x80], eax
jge 0x100014f3f
jmp 0x100014eeb
bt edi, 0x1f
jae 0x100015003
call fcn.1000150e0
jmp 0x100015051
test sil, dil
je 0x10001500f
call fcn.1000151f8
jmp 0x100015051
test dil, 2
je 0x10001501c
call fcn.100015650
jmp 0x100015051
test edi, 0x70000000
je 0x10001502b
call fcn.100015818
jmp 0x100015051
test dil, 4
je 0x10001503f
lea rcx, [0x100013510]
call fcn.10001b40c
jmp 0x100015051
test dil, 8
je 0x100015053
lea rcx, [0x100013510]
call fcn.10001b06c
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100015650
Capabilities:
Delete registry key
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
sub rsp, 0x280
mov rax, qword [0x10002c180]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
lea r12, [0x100013510]
mov rsi, rax
test rax, rax
jne 0x1000156c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100014b48]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov edx, ebx
call fcn.10001e018
jmp 0x10001576b
mov r8d, 0x2c
mov rdx, r12
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x1000156fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100014b80]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov edx, ebx
call fcn.10001e018
jmp 0x100015754
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x10001574a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100014960]
mov rdx, r12
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8d, ebx
call fcn.10001e018
jmp 0x100015754
xor ebx, ebx
cmp dword [rsp + 0x3c], 1
setne bl
test rdi, rdi
je 0x100015762
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x100015777
mov rcx, r12
call fcn.10001b40c
mov rcx, r12
call fcn.10001add8
mov ebx, eax
cmp eax, 0x80070424
je 0x10001578c
test eax, eax
jne 0x1000157e6
lea r9, [0x100013540]
lea r8, [0x100014140]
lea rcx, [rsp + 0x60]
mov edx, 0x104
mov qword [rsp + 0x20], r12
call fcn.100015be0
mov ebx, eax
test eax, eax
jne 0x1000157e6
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x1000157e6
movzx ebx, ax
lea rcx, [0x1000143c0]
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov edx, ebx
call fcn.10001e018
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.10001dd30
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret
Function at 0x100015818
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x10002c180]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r8d, dword [0x10002ef20]
lea r9, str.VEN_14F1REARLINEOUTWAVE
lea rdx, [0x100013510]
lea rcx, [rsp + 0xd0]
mov dword [rsp + 0x20], 2
call fcn.10001a58c
mov ebx, 0x22
lea rcx, [rsp + 0x210]
lea rdx, [0x100013650]
mov r8, rbx
call fcn.1000234e0
lea rcx, [rsp + 0x238]
lea rdx, [0x100013650]
mov r8, rbx
call fcn.1000234e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edi, edi
mov edx, 0x7f00
mov rbx, rax
lea rax, [0x100015a44]
xor ecx, ecx
mov dword [rsp + 0x70], 0x50
mov dword [rsp + 0x74], 3
mov dword [rsp + 0x80], edi
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x84], edi
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rdi
call qword [sym.imp.USER32.dll_LoadCursorW]
lea esi, [rdi + 6]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x210]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xb0], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov eax, 0x80000000
mov dword [rsp + 0x38], edi
lea r8, [rsp + 0x238]
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x210]
mov r9d, 0xcf0000
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
lea r8, [rsp + 0xd0]
lea edx, [rdi - 0x15]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
lea edi, [rsi - 5]
lea r8d, [rsi + 0xa]
lea rcx, [rsp + 0x60]
mov edx, edi
mov word [rsp + 0x60], di
mov word [rsp + 0x62], si
mov dword [rsp + 0x64], pe_nt_image_headers64
mov qword [rsp + 0x68], rbx
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, [0x100015ba4]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea r11, [rsp + 0xd0]
lea r8, [rsp + 0xc0]
lea rcx, [rsp + 0xd0]
mov r9, rbx
mov edx, edi
mov qword [0x10002ef28], r11
call fcn.100018994
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
lea rcx, [rsp + 0xd0]
call fcn.10001a6f0
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.10001dd30
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret