joyce8/EMBER2024-capa huggingface dataset:
Function at 0x141977058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1419771df
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 0x141977089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14197706f
add dl, dl
jne 0x141977096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419770f6
xor eax, eax
add dl, dl
jne 0x1419770a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419771ad
add dl, dl
jne 0x1419770b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419770c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419770d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419770dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1419770ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14197707e
mov eax, 1
add dl, dl
jne 0x141977106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141977113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1419770fb
sub eax, ebx
mov ebx, 1
jne 0x14197714c
mov ecx, 1
add dl, dl
jne 0x14197712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14197713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141977123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14197707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141977168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141977175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14197715d
cmp eax, 0x7d00
jae 0x14197719b
cmp eax, 0x500
jb 0x141977196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14197707e
cmp eax, 0x7f
ja 0x14197719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14197707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1419771d2
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 0x14197707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002430
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
movsxd rdi, edx
mov r14, r8
mov rbx, rcx
test edx, edx
js 0x140002573
lea r9d, [rdi*4]
mov eax, 0x55555556
imul r9d
mov eax, edx
add edx, 4
shr eax, 0x1f
add eax, edx
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r10, rax
mov r11, rax
test rax, rax
je 0x140002573
mov qword [rsp + 0x48], rsi
mov r9, rdi
xor esi, esi
test edi, edi
je 0x140002545
mov qword [rsp + 0x40], rbp
mov ecx, esi
mov qword [rsp + 0x50], r15
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea r15d, [rsi + 0x3d]
inc edi
nop word [rax + rax]
movzx edx, byte [rcx + rbx]
inc rcx
shl edx, 8
cmp rcx, r9
jge 0x1400024c5
movzx eax, byte [rcx + rbx]
add edx, eax
inc rcx
shl edx, 8
cmp rcx, r9
jge 0x1400024d6
movzx eax, byte [rcx + rbx]
add edx, eax
mov rax, rdx
add esi, 3
shr rax, 0x12
inc rcx
movzx eax, byte [rax + rbp]
mov byte [r11], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbp]
mov byte [r11 + 1], al
mov rax, rdx
shr rax, 6
and edx, 0x3f
and eax, 0x3f
cmp rcx, r9
movzx r8d, byte [rax + rbp]
mov byte [r11 + 2], r8b
mov eax, r8d
movzx edx, byte [rdx + rbp]
cmovg edx, r15d
cmp esi, edi
mov byte [r11 + 3], dl
cmovg eax, r15d
mov byte [r11 + 2], al
add r11, 4
cmp rcx, r9
jl 0x1400024b0
mov r15, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rax, 0xffffffffffffffff
mov byte [r11], 0
mov qword [r14], r10
nop dword [rax + rax]
inc rax
cmp byte [r10 + rax], 0
jne 0x140002560
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x140004030
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x78
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm1, xmm1
mov rsi, rdx
xorps xmm0, xmm0
lea rdx, [rsp + 0x38]
movups xmmword [rcx], xmm0
xor eax, eax
mov rbx, rcx
mov qword [rcx + 0x10], rax
mov rdi, r8
mov rcx, rsi
movups xmmword [rsp + 0x38], xmm1
movups xmmword [rsp + 0x48], xmm1
movups xmmword [rsp + 0x58], xmm1
call fcn.140054290
test eax, eax
js 0x140004213
lea rdx, [0x140095df4]
mov rcx, rsi
call fcn.140054080
mov r15, rax
test rax, rax
je 0x140004213
mov qword [rsp + 0x70], r14
movsxd r14, dword [rsp + 0x4c]
lea rsi, [r14 + 1]
cmp rsi, 0xf4240
jae 0x140004218
mov qword [rsp + 0xa0], rbp
xor ebp, ebp
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x24], rbp
test rdi, rdi
je 0x140004183
lea rcx, [rsi + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, rax
test rax, rax
je 0x140004221
mov rcx, qword [rdi]
add rax, 8
mov qword [rdx], rcx
mov qword [rdi], rdx
mov qword [rsp + 0x30], rax
test rsi, rsi
je 0x140004107
mov byte [rax], bpl
movups xmm0, xmmword [rsp + 0x20]
movsd xmm1, qword [rsp + 0x30]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14000412f
cmp dword [rbx + 8], ebp
jl 0x14000412f
movsxd rbp, dword [rbx + 4]
add rbp, rax
mov r9, r15
mov r8, r14
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rdx, rax
test rax, rax
jns 0x1400041b1
test rdi, rdi
je 0x1400041a3
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400041a3
mov rdx, qword [rbx + 0x10]
nop dword [rax]
lea rax, [rcx + 8]
cmp rax, rdx
mov rax, qword [rcx]
je 0x14000419a
mov rdi, rcx
mov rcx, rax
test rax, rax
jne 0x140004160
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
jmp 0x1400041e3
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140004221
jmp 0x1400040fa
mov qword [rdi], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
jmp 0x1400041e3
cmp qword [rbx + 0x10], 0
je 0x140004227
mov ecx, dword [rbx + 8]
test ecx, ecx
js 0x140004227
add eax, 0xf4240
cmp eax, 0x1e847f
ja 0x140004227
add edx, ecx
js 0x140004227
mov ecx, dword [rbx + 4]
add ecx, edx
cmp ecx, dword [rbx]
jg 0x140004227
mov rcx, rbx
mov dword [rbx + 8], edx
call fcn.140003540
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbp, qword [rsp + 0xa0]
mov rax, rbx
mov r14, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140088150
add rsp, 0x78
pop r15
pop rdi
pop rsi
pop rbx
ret
mov rax, rbx
jmp 0x1400041fc
mov rcx, rsi
call fcn.140002d70
int3
call fcn.14000e540
int3
lea r8, str.buf_inc_len_ret__read_size_
mov edx, 0x591
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_buffer.c
call fcn.14000e4c0
int3
Function at 0x14000e540
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.OpenVPN:_Out_of_Memory_n
call fcn.14000df00
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x14000ebc0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x1400c7984], 0
mov ebx, ecx
jne 0x14000ebe5
call fcn.14001b7e0
call fcn.140083f10
call fcn.140020390
call fcn.140055980
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140014f10
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0xc18]
mov rdi, rcx
test bl, 0xc0
je 0x140014f3d
mov rcx, qword [0x1400cfe58]
test rcx, rcx
je 0x1400150ab
call fcn.1400269c0
test bl, 2
je 0x140014f54
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140013c40
test bl, 8
je 0x140014f6b
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400143b0
test bl, 1
je 0x140014fd3
mov rcx, rdi
call fcn.140011fd0
mov rax, qword [rdi + 0x968]
mov ecx, dword [rax]
test ecx, ecx
jne 0x1400150a0
mov qword [rsp + 0x30], rsi
mov rsi, qword [rdi + 0xc30]
test rsi, rsi
jne 0x140014fa1
mov rsi, qword [rdi + 0xc20]
mov rbx, qword [rdi + 0xf18]
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call fcn.1400123e0
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400129c0
test bl, 4
je 0x1400150a0
mov rcx, rdi
call fcn.140012cf0
mov rax, qword [rdi + 0x968]
mov ecx, dword [rax]
test ecx, ecx
jne 0x1400150a0
movsxd rcx, dword [rdi + 0xf10]
test ecx, ecx
jle 0x140015007
add qword [rdi + 0xd28], rcx
cmp byte [rdi + 0xf50], 0
mov eax, ecx
je 0x140015036
test ecx, ecx
jle 0x140015036
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x140095df4]
call fcn.14000df00
mov eax, dword [rdi + 0xf10]
test eax, eax
jle 0x14001506c
cmp dword [rdi + 0x20], 0
jne 0x140015058
cmp byte [rdi + 0x938], 0
jne 0x140015058
lea rdx, [rdi + 0xf08]
mov rcx, rdi
call fcn.140013080
lea r8, [rdi + 0xf08]
mov edx, getservbyname
mov rcx, rdi
call fcn.1400138a0
cmp dword [rdi + 0xf10], 0
jle 0x140015089
mov dl, 1
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140011280
xor eax, eax
mov qword [rdi + 0xf38], rax
mov dword [rdi + 0xf40], eax
mov qword [rdi + 0xf48], rax
nop
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r8, str.management
mov edx, 0x82b
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_forward.c
call fcn.14000e4c0
int3
Function at 0x14001c210
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov edi, edx
mov rcx, qword [rcx + 0x640]
test rcx, rcx
je 0x14001c23f
call fcn.14000a900
test dil, 1
je 0x14001c330
mov rdi, qword [rbx + 0x658]
test rdi, rdi
je 0x14001c330
cmp dword [rbx + 0xb30], 0
jge 0x14001c330
mov edx, 0x8102
mov r8d, 0x180
mov rcx, rdi
call fcn.1400541b0
mov dword [rbx + 0xb30], eax
cmp eax, 0xffffffff
jne 0x14001c2af
cmp dword [0x1400cfe94], 1
jb 0x14001c330
mov ecx, 0xc000121
call fcn.14000e3d0
test al, al
je 0x14001c330
mov r8, rdi
lea rdx, str.Cannot_open___replay_persist_file__s_for_read_write
jmp 0x14001c322
mov r8d, reloc.WS2_32.dll_recv
mov qword [rbx + 0xb28], rdi
lea rdx, [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
movsxd rcx, eax
cmp rcx, 0x10
jne 0x14001c2f7
mov rax, qword [rsp + 0x20]
mov qword [rbx + 0xb48], rax
mov qword [rbx + 0xb38], rax
mov eax, dword [rsp + 0x28]
mov dword [rbx + 0xb50], eax
mov dword [rbx + 0xb40], eax
jmp 0x14001c330
cmp rcx, 0xffffffffffffffff
jne 0x14001c330
cmp dword [0x1400cfe94], 1
jb 0x14001c330
mov ecx, 0xc000121
call fcn.14000e3d0
test al, al
je 0x14001c330
mov r8, qword [rbx + 0xb28]
lea rdx, str.Read_error_on___replay_persist_file__s
mov ecx, 0xc000121
call fcn.14000e000
nop dword [rax]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140088150
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140020390
Capabilities:
Delete file

Disassembly:
mov rcx, qword [0x1400c79a8]
test rcx, rcx
jne fcn.140053fb0
ret
Function at 0x140024470
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
push rbx
push rdi
push r15
sub rsp, 0x70
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r15d, r15d
mov rdi, rcx
mov ebx, r15d
cmp qword [rcx + 0x2100], r15
je 0x140024660
mov rcx, qword [rcx + 0x2128]
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], r14
cmp rcx, 0xffffffffffffffff
je 0x1400245d3
xorps xmm0, xmm0
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [r11 - 0x68]
lea rdx, [r11 - 0x30]
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400245d3
cmp dword [rsp + 0x20], 0x10
jne 0x1400245d3
mov ecx, dword [rsp + 0x5c]
call qword [sym.imp.WS2_32.dll_ntohl]
movzx ecx, word [rsp + 0x5a]
mov r14d, eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rdi + 0x2100]
lea rdx, [0x14009a454]
movzx ebp, ax
call fcn.140054080
mov rsi, rax
test rax, rax
je 0x1400245d3
lea ecx, [r15 + 0x48]
mov qword [rsp + 0x28], 0x40
mov dword [rsp + 0x30], r15d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140024676
movups xmm0, xmmword [rsp + 0x28]
add rax, 8
mov qword [rbx], r15
mov qword [rsp + 0x38], rax
mov ecx, r14d
movsd xmm1, qword [rsp + 0x38]
movsd qword [rsp + 0x50], xmm1
mov byte [rax], r15b
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
lea rdx, [0x14008b3dc]
lea rcx, [rsp + 0x40]
call fcn.140002e40
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x1400245b1
cmp dword [rsp + 0x48], r15d
jl 0x1400245b1
movsxd r8, dword [rsp + 0x44]
add r8, rax
jmp 0x1400245b4
mov r8, r15
mov r9d, ebp
lea rdx, str._s_n_d_n
mov rcx, rsi
call fcn.14000df00
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
je 0x140024630
cmp dword [0x1400cfe94], 3
jb 0x140024602
mov ecx, 0x28000003
call fcn.14000e3d0
test al, al
je 0x140024602
mov r8, qword [rdi + 0x2100]
lea rdx, str.MANAGEMENT:_failed_to_write_peer_info_to_file__s
mov ecx, 0x28000003
call fcn.14000e000
mov dword [0x1400cfe40], 0xf
lea rax, str.management_connect_failed
mov qword [0x1400cfe48], rax
mov dword [0x1400cfe44], r15d
test rbx, rbx
je 0x140024644
nop word [rax + rax]
mov rdi, qword [rbx]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x140024630
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x98]
mov r14, qword [rsp + 0xa8]
nop dword [rax]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140088150
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
call fcn.14000e540
int3
Function at 0x140024680
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov dword [rax + 8], 1
mov rbp, rdx
mov qword [rax - 0x18], rsi
mov rdi, rcx
lea r8, [rax + 8]
movsxd rcx, dword [rcx + 0x2128]
mov ebx, esi
mov edx, 0x8004667e
mov qword [rax - 0x10], rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x1400246f2
mov ecx, 0x110
call fcn.14000e3d0
test al, al
je 0x1400246e6
lea rdx, str.Set_socket_to_non_blocking_mode_failed
mov ecx, 0x110
call fcn.14000e000
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
mov rcx, rdi
mov word [rdi + 0x21cc], bx
mov byte [rdi + 0x21ce], bl
mov dword [rdi + 0x21d0], esi
mov word [rdi + 0x2170], bx
mov dword [rdi + 0x2174], esi
mov dword [rdi + 0x2118], 3
call fcn.140024400
cmp dword [0x1400cfe94], 3
jb 0x14002477e
mov ecx, 0x28000003
call fcn.14000e3d0
test al, al
je 0x14002477e
mov rax, qword [rdi + 0xe8]
lea r9, [rsp + 0x20]
mov r8d, 2
lea rdx, [0x14009b168]
mov rcx, qword [rax + 0x20]
call fcn.140064eb0
mov r9, rax
lea rdx, str.MANAGEMENT:__s__s
mov r8, rbp
mov ecx, 0x28000003
call fcn.14000e000
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x20]
mov rcx, qword [rdi + 0x2180]
call fcn.140003c30
cmp byte [rdi + 0xf1], 0
je 0x14002479c
cmp byte [rdi + 0x2171], 0
je 0x1400247b6
mov rcx, rdi
call fcn.140021910
cmp byte [rdi + 0xf1], 0
je 0x1400247c5
cmp byte [rdi + 0x2171], 0
jne 0x1400247c5
lea rdx, str.ENTER_PASSWORD:
mov rcx, rdi
call fcn.140021a50
cmp qword [rdi + 0x2128], 0xffffffffffffffff
je 0x1400247f7
mov rax, qword [rdi + 0x2180]
test rax, rax
je 0x1400247ed
cmp qword [rax], 0
je 0x1400247ed
mov dword [rdi + 0x2118], 3
jmp 0x1400247f7
mov dword [rdi + 0x2118], 2
test rsi, rsi
je 0x140024814
nop dword [rax]
mov rdi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, rdi
test rdi, rdi
jne 0x140024800
test rbx, rbx
je 0x14002483b
nop dword [rax]
mov rcx, qword [rbx + 0x10]
mov rdi, qword [rbx]
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x140024820
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140024850
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov dword [rcx + 0x2118], 1
cmp qword [rcx + 0x2120], 0xffffffffffffffff
mov ebx, esi
mov qword [rsp + 0x38], rbx
mov rdi, rcx
mov qword [rsp + 0x30], rsi
mov qword [rcx + 0x2128], 0xffffffffffffffff
jne 0x1400249b2
mov rax, qword [rcx + 0xe8]
test rax, rax
je 0x140024a0b
cmp dword [rax + 8], 1
jne 0x140024a24
mov r8d, dword [rax + 0xc]
lea edx, [rsi + 1]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdx, qword [rdi + 0xe8]
lea r9, str.MANAGEMENT
mov qword [rdi + 0x2120], rax
mov rcx, rax
mov byte [rsp + 0x20], bl
mov r8d, dword [rdx + 4]
call fcn.140062930
mov rcx, qword [rdi + 0x2120]
lea edx, [rsi + 1]
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14002490d
mov ecx, 0x110
call fcn.14000e3d0
test al, al
je 0x14002494f
lea rdx, str.MANAGEMENT:_listen___failed
jmp 0x140024945
movsxd rcx, dword [rdi + 0x2120]
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x14002495b
mov ecx, 0x110
call fcn.14000e3d0
test al, al
je 0x14002494f
lea rdx, str.Set_socket_to_non_blocking_mode_failed
mov ecx, 0x110
call fcn.14000e000
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
cmp dword [0x1400cfe94], 3
jb 0x1400249b2
mov ecx, 0x28000003
call fcn.14000e3d0
test al, al
je 0x1400249b2
mov rax, qword [rdi + 0xe8]
lea r9, [rsp + 0x30]
mov r8d, 2
lea rdx, [0x14009b168]
mov rcx, qword [rax + 0x20]
call fcn.140064eb0
mov r8, rax
lea rdx, str.MANAGEMENT:_TCP_Socket_listening_on__s
mov ecx, 0x28000003
call fcn.14000e000
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140024400
test rsi, rsi
je 0x1400249d4
nop
mov rdi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, rdi
test rdi, rdi
jne 0x1400249c0
test rbx, rbx
je 0x1400249fb
nop dword [rax]
mov rcx, qword [rbx + 0x10]
mov rdi, qword [rbx]
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x1400249e0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea r8, str.addrinfo
mov edx, 0x3f6
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, str.addrinfo__ai_socktype__SOCK_STREAM
mov edx, 0x3f7
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
Function at 0x140025380
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea r8, [0x14008b699]
mov rcx, qword [rcx + 0x2180]
mov edi, 0x400
mov edx, edi
xor ebp, ebp
call fcn.140003de0
mov rax, qword [rbx + 0x2180]
test rax, rax
je 0x140025502
mov rax, qword [rax]
test rax, rax
je 0x140025502
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x140025502
mov r8d, dword [rax + 8]
cmp r8d, 1
jl 0x140025502
movsxd rdx, dword [rax + 4]
cmp r8d, edi
cmovg r8d, edi
add rdx, rcx
mov rcx, qword [rbx + 0x2128]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov ebp, eax
test eax, eax
js 0x1400254a8
mov rdi, qword [rbx + 0x2180]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140025502
cmp qword [rcx + 0x10], 0
je 0x14002554b
mov edx, dword [rcx + 8]
test edx, edx
js 0x14002554b
cmp edx, eax
jl 0x14002554b
add dword [rcx + 4], eax
sub edx, eax
mov dword [rcx + 8], edx
js 0x140025455
test edx, edx
jne 0x140025502
mov rsi, qword [rdi]
test rsi, rsi
je 0x140025502
mov rcx, qword [rsi + 0x10]
mov qword [rsp + 0x30], r14
mov r14, qword [rsi + 0x18]
test rcx, rcx
je 0x140025479
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rax
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
dec dword [rdi + 0x10]
test r14, r14
mov qword [rdi], r14
mov r14, qword [rsp + 0x30]
jne 0x140025502
mov qword [rdi + 8], 0
jmp 0x140025502
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x2733
je 0x140025502
cmp eax, 0x2726
je 0x140025502
cmp dword [0x1400cfe94], 3
jb 0x1400254f8
mov ecx, 0x28000003
call fcn.14000e3d0
test al, al
je 0x1400254f8
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
lea r8, str.send
mov ecx, 0x28000003
mov r9, rax
lea rdx, str.MANAGEMENT:_TCP__s_error:__s
call fcn.14000e000
xor edx, edx
mov rcx, rbx
call fcn.140024a40
cmp qword [rbx + 0x2128], 0xffffffffffffffff
je 0x140025534
mov rax, qword [rbx + 0x2180]
test rax, rax
je 0x14002552a
cmp qword [rax], 0
je 0x14002552a
mov dword [rbx + 0x2118], 3
jmp 0x140025534
mov dword [rbx + 0x2118], 2
mov rbx, qword [rsp + 0x38]
mov eax, ebp
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
lea r8, str.buf_advance_buf__n_
mov edx, 0x559
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_buffer.c
call fcn.14000e4c0
int3
Function at 0x140035e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rdx + 0xb18]
mov rbx, rdx
mov rdi, rcx
mov r8d, dword [rax]
cmp r8d, 0xa
jne 0x140035e78
mov edx, dword [rdx + 0x518]
test edx, edx
je 0x140035e78
mov rax, qword [rbx + 0xb18]
mov dword [rax], edx
mov rcx, qword [rbx + 0xb18]
lea rax, [rbx + 0x74]
xor esi, esi
lea rdx, str.client_instance
cmp byte [rax], sil
mov r8d, 0x26000003
cmove rax, rsi
mov qword [0x1400cfe80], rax
call fcn.1400608e0
xor r8d, r8d
mov qword [0x1400cfe80], rsi
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14002ea50
Function at 0x140053fb0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x30
mov rsi, rcx
mov dword [rsp + 0x28], 0
mov r8, rcx
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
mov r9d, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbp, eax
mov rcx, rbp
add rcx, rcx
add rcx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14005406e
mov qword [rsp + 0x40], rdi
mov r9d, 0xffffffff
lea rdi, [rax + 8]
mov dword [rsp + 0x28], ebp
mov r8, rsi
mov qword [rsp + 0x20], rdi
xor edx, edx
mov qword [rax], 0
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
nop
mov rdi, qword [rbx]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x140054040
mov rdi, qword [rsp + 0x40]
test esi, esi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
setne al
add rsp, 0x30
pop rsi
ret
call fcn.14000e540
int3