joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400041a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov ebx, ecx
test rdx, rdx
je 0x1400041d6
call fcn.1400038f0
mov r9d, 0x10010
mov word [rsp + 0x20], ax
lea r8, [0x140018d88]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxExW]
cmp qword [0x1400234f0], 0
je case.default.0x1400041f1
call fcn.140004690
mov ecx, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add dl, byte [rax + 6]
add byte [rcx], al
add byte fs:[rdx], cl
add byte [rbx - 0x1000000], bh
inc dword [rdx]
add byte [rcx], al
add dword [rax], eax
invalid
inc dword [rax]
add byte [rax], al
add byte [rax], cl
add byte [rax], al
add byte [rax + 0xa], al
enter 0x890, 0
invalid

Function at 0x140004430
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rdi
sub rsp, 0x280
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp qword [0x140023548], 0
lea rbp, [0x140018d88]
mov rbx, rdx
movzx edi, cx
jne 0x140004495
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [0x140023548], rax
test rax, rax
je 0x140004530
mov rbx, qword [rsp + 0x2a8]
mov qword [rsp + 0x278], rsi
lea rsi, [rsp + 0x2b0]
call fcn.140001950
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x60]
xor esi, esi
mov r9, rbx
mov r8d, 0xff
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
cmp eax, ecx
je 0x140004528
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
lea ecx, [rsi + 2]
lea rax, [rsp + 0x50]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], esi
xor r9d, r9d
mov word [rsp + 0x28], cx
movzx edx, di
mov rcx, qword [0x140023548]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rsi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140016590
add rsp, 0x280
pop rdi
pop rbp
pop rbx
ret
Function at 0x140005480
Capabilities:
Send data
Send data on socket

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x8c8]
cmp rcx, 0xffffffffffffffff
je 0x1400055d9
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x48], r14
xor r14d, r14d
cmp qword [rdi + 0x900], r14
je 0x1400054d2
mov rcx, qword [rdi + 0x8f8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x8c8]
mov qword [rdi + 0x8f8], r14
mov qword [rdi + 0x900], r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rdi + 0x8c8], 0xffffffffffffffff
mov dword [rdi + 0x910], r14d
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rdi + 0x908]
test rbx, rbx
je 0x1400055bf
movsxd r8, dword [rbx + 0x18]
mov edx, 0x78
mov rcx, qword [rbx + 0x10]
call sub.VCRUNTIME140.dll_memset
cmp dword [rbx + 0x28], 1
jne 0x14000552e
mov dword [rbx + 0x28], r14d
jmp 0x140005500
mov rcx, qword [rbx + 8]
cmp rcx, rbx
jne 0x140005540
mov qword [rdi + 0x908], r14
jmp 0x1400055a7
mov rax, qword [rbx]
mov qword [rax + 8], rcx
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rsi, qword [rbx + 8]
mov qword [rdi + 0x908], rsi
test rsi, rsi
je 0x1400055a7
mov r8d, dword [rsi + 0x18]
test r8d, r8d
je 0x1400055a7
mov rdx, qword [rsi + 0x10]
xor r9d, r9d
mov rcx, qword [rdi + 0x8c8]
call qword [sym.imp.WS2_32.dll_send]
movsxd rbp, eax
cmp ebp, 1
jl 0x1400055a7
mov edx, dword [rsi + 0x18]
cmp ebp, edx
je 0x1400055a2
mov rcx, qword [rsi + 0x10]
sub edx, ebp
movsxd r8, edx
lea rdx, [rcx + rbp]
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [rsi + 0x18]
sub edx, ebp
mov dword [rsi + 0x18], edx
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140005500
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov r14, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140005e30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140005e8b
lea edx, [rax + 1]
mov dword [rbx + 0x910], eax
lea r8d, [rax + 6]
lea ecx, [rax + 2]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x8c8], rax
cmp rax, 0xffffffffffffffff
jne 0x140005ea6
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140016590
add rsp, 0x1d0
pop rbx
ret
mov rdx, qword [rbx + 0xd60]
mov r9d, 0x33
mov r8d, 0x8002
mov rcx, rax
call qword [sym.imp.WS2_32.dll_WSAAsyncSelect]
test eax, eax
jne 0x140005e8b
mov rcx, qword [rbx + 0x8c8]
lea rdx, [rbx + 0x8d0]
lea r8d, [rax + 0x10]
call qword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add rax, 0xf
mov qword [rbx + 0x8e0], rax
mov eax, 1
jmp 0x140005e8d

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx + 0x908]
test rbx, rbx
je 0x140005f62
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x140005f62
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
mov rcx, qword [rcx + 0x8c8]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
cmp edi, 1
jl 0x140005f5d
mov edx, dword [rbx + 0x18]
cmp edi, edx
je 0x140005f58
mov rcx, qword [rbx + 0x10]
sub edx, edi
movsxd r8, edx
lea rdx, [rcx + rdi]
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [rbx + 0x18]
sub edx, edi
mov dword [rbx + 0x18], edx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x140005f70
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [rcx + 0x908]
mov rsi, rcx
test rbx, rbx
jne 0x140005f96
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
movsxd r8, dword [rbx + 0x18]
mov edx, 0x78
mov rcx, qword [rbx + 0x10]
call sub.VCRUNTIME140.dll_memset
cmp dword [rbx + 0x28], 1
jne 0x140005fc5
mov dword [rbx + 0x28], 0
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rcx, qword [rbx + 8]
cmp rcx, rbx
jne 0x140005fdb
mov qword [rsi + 0x908], 0
jmp 0x14000604c
mov rax, qword [rbx]
mov qword [rsp + 0x30], rdi
mov qword [rax + 8], rcx
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rdi, qword [rbx + 8]
mov qword [rsi + 0x908], rdi
test rdi, rdi
je 0x140006047
mov r8d, dword [rdi + 0x18]
test r8d, r8d
je 0x140006047
mov rdx, qword [rdi + 0x10]
xor r9d, r9d
mov rcx, qword [rsi + 0x8c8]
call qword [sym.imp.WS2_32.dll_send]
movsxd rsi, eax
cmp esi, 1
jl 0x140006047
mov edx, dword [rdi + 0x18]
cmp esi, edx
je 0x140006042
mov rcx, qword [rdi + 0x10]
sub edx, esi
movsxd r8, edx
lea rdx, [rcx + rsi]
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [rdi + 0x18]
sub edx, esi
mov dword [rdi + 0x18], edx
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x38]
mov eax, 1
add rsp, 0x20
pop rsi
ret

Function at 0x1400060e0
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor esi, esi
lea rax, [rsp + 0x60]
mov rbx, rdx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8d, [rsi + 6]
mov rdi, rcx
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x14000616a
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14000616a
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx], rax
test rax, rax
je 0x14000616d
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rsi
lea r8d, [rsi + 1]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rcx, rdi
xor edx, edx
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov rcx, qword [rbx]
test eax, eax
jne 0x140006182
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx], rsi
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, dword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov byte [rax + rcx], sil
mov eax, dword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400061a0
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov edi, edx
mov rsi, rcx
test edx, edx
jne 0x1400061e0
mov edx, 1
mov ecx, edx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rbx], rax
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea rax, [rsp + 0x48]
xor r9d, r9d
mov r8d, 0x40000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x140006240
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140006240
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx], rax
test rax, rax
je 0x140006247
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x20], rcx
mov r8d, 0x40000001
mov rcx, rsi
mov edx, edi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x1400061cb
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx], 0
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140006350
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400063ef
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 3
jne 0x1400063e6
mov ebp, 0x5c
mov rcx, rdi
mov edx, ebp
call sub.VCRUNTIME140.dll_wcsrchr
mov rsi, rax
test rax, rax
je 0x1400063eb
mov rcx, rdi
mov word [rax], bx
call fcn.140006350
mov word [rsi], bp
test eax, eax
je 0x1400063eb
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
je 0x1400063ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400063cf
mov ebx, 1
mov eax, ebx
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp eax, 2
je 0x1400063ad
xor eax, eax
jmp 0x1400063d1
shr eax, 4
and eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1400068e0
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov dword [rsp + 0x70], 0
lea rax, [rsp + 0x68]
mov word [rsp + 0x74], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x140006978
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140016590
add rsp, 0x80
pop rbx
ret

Function at 0x140006fb0
Capabilities:
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov edi, edx
mov dword [rsp + 0x20], 0xf0000000
mov esi, 1
xor r8d, r8d
mov r9d, esi
xor edx, edx
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000700c
mov rcx, qword [rbx]
lea rax, [rbx + 8]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140007037
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Error_in_md_ctx_init:_status___lu
mov ecx, esi
mov r8d, eax
mov ebx, eax
call fcn.140004430
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140007050
Capabilities:
Hash data via wincrypt

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x140007092
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
lea rdx, str.Error_in_md_update:_status___lu
mov r8d, eax
mov ebx, eax
call fcn.140004430
mov eax, ebx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400070a0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test rcx, rcx
je 0x140007125
mov r8d, 4
lea rdx, str.http
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x140007125
mov qword [rsp + 0x40], rdi
lea rdx, str.open
mov edi, 1
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov r8, rbx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
ja 0x140007118
mov r9, rax
lea rdx, str.launch_url:_ShellExecute___s__returned_error:__d
mov r8, rbx
mov ecx, edi
call fcn.140004430
mov rdi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov eax, edi
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140007410
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rbx, rdx
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
lea r8, [0x140019b10]
mov edx, 0x100
lea rcx, [rsp + 0x230]
call fcn.1400021e0
lea rdx, [rsp + 0x230]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140016590
mov rbx, qword [rsp + 0x460]
add rsp, 0x440
pop rdi
ret
Function at 0x140008d00
Capabilities:
Read file on windows

Disassembly:
push r13
push r14
push r15
sub rsp, 0x50
mov r14, rcx
xor r13d, r13d
add rcx, 0x950
mov dword [rsp + 0x70], r13d
mov dword [rsp + 0x80], r13d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov rcx, qword [r14 + 0x940]
lea rdx, [r14 + 0x950]
mov r15, rax
lea r9, [r14 + 0x920]
lea rax, [0x140007ef0]
mov r8d, 0x3fe
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test r15, r15
je 0x140008f4e
lea r8, [rsp + 0x70]
mov rcx, r15
lea rdx, str.0x_08x_n
call fcn.14000c560
cmp eax, 1
je 0x140008d90
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rsp, 0x50
pop r15
pop r14
pop r13
ret
mov qword [rsp + 0x40], rsi
lea rsi, [r15 + 0x16]
cmp dword [rsp + 0x70], r13d
jne 0x140008e0a
lea rdx, str._nProcess_ID
mov rcx, rsi
call sub.VCRUNTIME140.dll_wcsstr
test rax, rax
je 0x140008e0a
lea r8, [rsp + 0x80]
mov rcx, rsi
lea rdx, str.0x_08x
call fcn.14000c560
cmp eax, 1
jne 0x140008e0a
mov r8d, dword [rsp + 0x80]
test r8d, r8d
je 0x140008e0a
xor edx, edx
mov ecx, 0x401
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, r15
mov qword [r14 + 0x918], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r14
pop r13
ret
movzx ecx, word [rsi]
mov edx, 8
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswctype]
test eax, eax
je 0x140008e47
movzx ecx, word [rsi + 2]
add rsi, 2
mov edx, 8
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswctype]
test eax, eax
jne 0x140008e30
mov r12d, 0x20
nop dword [rax]
movzx eax, word [rsi]
test ax, ax
je 0x140008ee2
mov rdi, rsi
mov rbx, r13
mov ebp, r13d
cmp ax, 0xd
je 0x140008e71
cmp ax, 0xa
jne 0x140008e78
mov word [rdi], r12w
mov eax, r12d
test rbx, rbx
je 0x140008e85
movzx ecx, ax
cmp ebp, 0x50
jg 0x140008eaa
mov dx, 8
movzx ecx, ax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswctype]
test eax, eax
movzx eax, word [rdi + 2]
movzx ecx, ax
cmovne rbx, rdi
add rdi, 2
inc ebp
test ax, ax
jne 0x140008e65
test cx, cx
mov rdi, r13
cmovne rdi, rbx
test rdi, rdi
je 0x140008ec1
mov word [rdi], r13w
add rdi, 2
xor r9d, r9d
lea rdx, str.IService_
mov r8, rsi
mov rcx, r14
call fcn.14000bde0
mov rsi, rdi
test rdi, rdi
jne 0x140008e50
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rsp + 0x70]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
sub eax, 0x20000000
je 0x140008f1b
cmp eax, 1
jne 0x140008f49
mov r9d, eax
lea r8, str.OpenVPN_not_started_due_to_previous_errors
jmp 0x140008f25
xor r9d, r9d
lea r8, str.Check_the_log_file_for_details
lea rdx, str.IService_
mov rcx, r14
call fcn.14000bde0
xor edx, edx
mov dword [r14 + 0x8a0], 8
mov rcx, r14
call fcn.140009420
mov rsi, qword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r14
pop r13
ret
Function at 0x14000a060
Capabilities:
Create pipe
Write and execute a file
Write file on windows
Write pipe

Disassembly:
mov rax, qword [rcx + 0xd60]
test rax, rax
je 0x14000a081
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, rax
jmp qword [sym.imp.USER32.dll_PostMessageW]
jmp fcn.14000a100
Function at 0x14000d8d0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov edx, 0x112
mov rbx, rcx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jne 0x14000d91b
lea r8, [0x140022c7c]
mov edx, 0x112
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edx, 0x114
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jne 0x14000d94b
lea r8, [0x140022ea4]
mov edx, 0x114
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edx, 0x113
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jne 0x14000d97b
lea r8, [0x140022e84]
mov edx, 0x113
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov r9d, 0x104
lea r8, [rsp + 0x30]
mov rcx, rbx
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_GetDlgItemTextW]
mov r8d, 0x104
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jg 0x14000d9cc
mov r8d, 0x104
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x14000d9e7
lea rdx, str.Specified_config_directory_is_not_an_absolute_path
jmp 0x14000daae
mov r9d, 0x104
lea r8, [rsp + 0x30]
mov rcx, rbx
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_GetDlgItemTextW]
mov r8d, 0x104
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jg 0x14000da38
mov r8d, 0x104
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
xor r9d, r9d
test eax, eax
je 0x14000da53
lea rdx, str.Specified_log_directory_is_not_an_absolute_path
jmp 0x14000dab1
lea r8, [rsp + 0x20]
mov edx, 0x11d
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItemInt]
cmp dword [rsp + 0x20], 0
je 0x14000daa7
dec eax
cmp eax, 0xee47
ja 0x14000daa7
xor r9d, r9d
lea r8, [rsp + 0x20]
mov edx, 0x11f
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItemInt]
cmp dword [rsp + 0x20], 0
je 0x14000da9e
test eax, eax
js 0x14000da9e
mov eax, 1
jmp 0x14000dac2
lea rdx, str.Specified_mute_interval_is_not_valid__must_be_a_positive_integer_
jmp 0x14000daae
lea rdx, str.Specified_port_is_not_valid__must_be_in_the_range_1_to_61000_
xor r9d, r9d
lea r8, str.Option_error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140016590
add rsp, 0x460
pop rbx
ret
Function at 0x14000dae0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x660
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rsp + 0x650], rax
mov rbx, rdx
mov r8d, 0x104
mov rdx, rcx
lea rcx, [rsp + 0x230]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor eax, eax
lea rdx, [rsp + 0x440]
mov r8d, 0x104
mov word [rsp + 0x436], ax
lea rcx, [rsp + 0x230]
mov word [rsp + 0x226], ax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jg 0x14000db7a
mov r8d, 0x104
lea rdx, [rsp + 0x440]
lea rcx, [rsp + 0x230]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov r8d, 0x104
lea rdx, [rsp + 0x440]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jg 0x14000dbb3
mov r8d, 0x104
lea rdx, [rsp + 0x440]
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, qword [rsp + 0x650]
xor rcx, rsp
call fcn.140016590
add rsp, 0x660
pop rbx
ret

Function at 0x14000dda0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x248
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x1400225e4]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jg 0x14000ddf0
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x1400225e4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x140022c7c]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jg 0x14000de27
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x140022c7c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x140022ea4]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jg 0x14000de5e
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x140022ea4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x1400232b8]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jg 0x14000de95
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x1400232b8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x1400230b0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jg 0x14000decc
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x1400230b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140016590
add rsp, 0x248
ret