joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ecde0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov edi, ecx
and edi, 7
je 0x1400ece13
cmp ecx, edi
jge 0x1400ece03
mov rcx, rbx
call fcn.1400ec610
mov eax, dword [rbx + 0x14]
mov ecx, edi
shr eax, cl
sub dword [rbx + 0x10], edi
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor edi, edi
mov eax, ecx
test ecx, ecx
jle 0x1400ece4d
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r8d, cl
nop word [rax + rax]
shr ecx, 8
inc edi
mov byte [rdx], r8b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r8d, cl
test eax, eax
jg 0x1400ece30
mov dword [rbx + 0x10], eax
test eax, eax
je 0x1400ece6b
mov r8d, 0x10a8
lea rdx, str.E:ReposSimHapticlibsimgui_stb_image.h
lea rcx, str.a__num_bits__0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rcx, edi
cmp rcx, 4
jge 0x1400ece9a
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x1400ece84
xor dl, dl
jmp 0x1400ece8d
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x1400ece78
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
je 0x1400ecef0
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx]
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x1400ecf28
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x1400ecf42
mov rcx, rbx
call fcn.1400ec7b0
test eax, eax
je 0x1400ecee3
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f8ee0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
lea rsi, [rdx + 0x10]
mov rdx, qword [rsi]
call fcn.1400a7010
lea r15d, [rbp - 6]
cmp qword [rdi + 0x18], 0xf
jbe 0x1400f8f4c
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x1400f8f52
mov r14, rdi
mov rcx, rdi
mov r13, qword [rsi]
add r13, rcx
cmp rdi, r13
je 0x1400f9051
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop dword [rax + rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x1400f8ff6
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400f8fdd
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400f8fd2
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400f8fec
mov rcx, rbx
call fcn.1400a58e0
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x1400f8fa0
inc r14
cmp r14, r13
jne 0x1400f8f70
cmp r15d, 0xfffffffa
jle 0x1400f9051
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rax, ebp
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400f9049
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400f903e
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400f9051
mov rcx, rbx
call fcn.1400a58e0
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x1400f9099
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400f9085
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400f907d
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x1400f9090
mov r9b, 0x3d
mov rcx, rbx
call fcn.1400a58e0
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x1400f9060
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400f9970
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov r14, rcx
nop word [rax + rax]
mov r9d, edi
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x1400f99c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400f99a0
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400f99f0
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x240
mov qword [rsp + 0x38], rcx
lea edi, [rcx + 1]
mov dword [rsp + 0x30], 1
mov dword [rax + 0x10], edx
mov dword [rax + 0x14], r8d
nop word [rax + rax]
lea rax, [rsp + 0x258]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1400f9a52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400f9a20
mov rax, rbx
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret

Function at 0x1400f9a70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rdi
sub rsp, 0x20
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.1400f99f0
test rax, rax
jne 0x1400f9a90
mov al, 1
add rsp, 0x20
pop rdi
ret
jns 0x1400f9aa5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
jne 0x1400f9aa5
xor al, al
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rsi
lea rsi, [rsp + 0x38]
nop dword [rax]
nop dword [rax + rax]
mov r9d, 2
mov rdx, rsi
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x1400f9ae7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400f9ac0
mov rsi, qword [rsp + 0x40]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
setg al
add rsp, 0x20
pop rdi
ret
Function at 0x1400f9f70
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x1400f9fa1
cmp ax, 0x17
jne 0x1400fa01b
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x1400fa01b
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400fa000
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140067390
mov al, 1
jmp 0x1400fa01d
xor al, al
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400fab40
Capabilities:
Get socket status

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [rcx + 8]
mov rdi, rcx
mov r8, qword [rcx + 0x28]
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x38], rax
lea esi, [rax + 1]
mov dword [rsp + 0x30], 1
mov dword [r11 + 8], edx
mov dword [r11 + 0xc], r8d
nop word [rax + rax]
lea rax, [rsp + 0x250]
xor r9d, r9d
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x1400fabb0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400fab80
test ebx, ebx
jle 0x1400fabc5
mov rcx, qword [rdi + 8]
call fcn.1400f9a70
test al, al
je 0x1400fabc5
mov al, 1
jmp 0x1400fabc7
xor al, al
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400fabe0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x50]
mov eax, 0x7fffffff
cmp r8, rax
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
cmova rsi, rax
mov rax, qword [rcx + 0x48]
cmp rax, rdi
jae 0x1400fac59
mov rcx, qword [rcx + 0x30]
sub rdi, rax
lea rdx, [rax + rcx]
mov rcx, rbp
cmp rsi, rdi
ja 0x1400fac3d
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rsi
mov rax, rsi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rdi
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
jne 0x1400fac77
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
mov qword [rsp + 0x40], r14
mov r14, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rsi, 0x1000
jae 0x1400facff
mov qword [rsp + 0x48], r15
mov r15, qword [rbx + 0x30]
nop dword [rax]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
test eax, eax
jns 0x1400facc7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400faca0
mov r15, qword [rsp + 0x48]
test rdi, rdi
jle 0x1400face5
mov rdx, qword [rbx + 0x30]
mov rcx, rbp
cmp rdi, rsi
jg 0x1400facea
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, rdi
jmp 0x1400fad10
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rax, rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rdi
jmp 0x1400fad10
xor r9d, r9d
mov r8, rsi
mov rdx, rbp
mov rcx, r14
call fcn.1400f9970
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x1400fad69
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x1400fad96
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400fad72
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400fae10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rcx, qword [rcx + 8]
mov rbx, r8
mov rdi, rdx
mov dword [rax + 8], 0x80
lea r8, [rax + 8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400fae5a
mov edx, dword [rsp + 0xb0]
lea rcx, [rsp + 0x20]
mov r9, rbx
mov r8, rdi
call fcn.1400f9f70
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
Function at 0x140100cf0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
mov ecx, 8
call fcn.14010bac0
mov qword [rax], rbx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1401069d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140100d6e
cmp dword [rsp + 0x38], 0
je 0x140100d62
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140100d62
add rsp, 0x50
pop rbx
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140109670
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140154440]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
movzx esi, cl
mov rcx, rdi
lea rdx, [0x140119222]
xor r8d, r8d
xor bl, bl
call fcn.140067390
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftMicrosoft_GamesKittyHawk
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140109753
mov rcx, qword [rsp + 0x38]
lea rax, str.SimConnect_Port_IPv6
test sil, sil
mov dword [rsp + 0x30], shutdown
lea rdx, str.SimConnect_Port_IPv4
cmovne rdx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140109748
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], bl
jne 0x140109730
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140067390
mov bl, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14010bec0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1401098a0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.14010b090
cmp byte [rbx + 0x1c4], 0
je 0x1401098e5
cmp dword [rbx + 0x24], 0
jne 0x1401098e5
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x40]
mov edx, 6
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbx + 0x18], 2
add rsp, 0x30
pop rbx
ret

Function at 0x140109a70
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140154440]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
movzx eax, byte [0x14015729c]
test al, al
jne 0x140109acf
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x198
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov cx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
movzx ecx, byte [0x14015729c]
mov edx, 1
test eax, eax
cmove ecx, edx
mov byte [0x14015729c], cl
movzx eax, cl
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14010bec0
add rsp, 0x1d8
ret
Function at 0x140109b10
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140154440]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r12, qword [rbp + 0x210]
mov r14, r8
mov r13, qword [rbp + 0x218]
mov rsi, rdx
mov edi, ecx
mov dword [rdx], 1
mov rcx, r14
lea rdx, [0x140119222]
xor r8d, r8d
mov r15, r9
call fcn.140067390
xor r8d, r8d
lea rdx, [0x140119222]
mov rcx, r15
call fcn.140067390
mov dword [r12], 0xa080
mov byte [r13], 0
cmp edi, 0xffffffff
je 0x140109d74
xor r9d, r9d
mov qword [rsp + 0x2a8], rbx
lea rax, [rbp + 0x80]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x2e]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov rbx, 0xffffffffffffffff
test eax, eax
js 0x140109c3d
lea r8, str.SimConnect.cfg
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x140109c3d
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov r8, rbx
mov byte [rsp + 0x40], 0
inc r8
cmp byte [rax + r8], 0
jne 0x140109c03
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140067390
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], r12
mov r9, r14
mov r8, rsi
mov qword [rsp + 0x20], r15
mov edx, edi
call fcn.140109da0
xor r9d, r9d
lea rax, [rbp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 5]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x140109cda
lea r8, str.SimConnect.cfg
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x140109cda
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov r8, rbx
mov byte [rsp + 0x40], 0
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140109ca0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140067390
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], r12
mov r9, r14
mov r8, rsi
mov qword [rsp + 0x20], r15
mov edx, edi
call fcn.140109da0
lea rdx, [rbp + 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x140109d6c
lea r8, str.SimConnect.cfg
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x140109d6c
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140109d30
mov r8, rbx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140067390
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], r12
mov r9, r14
mov r8, rsi
mov qword [rsp + 0x20], r15
mov edx, edi
call fcn.140109da0
mov rbx, qword [rsp + 0x2a8]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14010bec0
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14010a290
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140154440]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], rcx
mov rbx, rcx
lea rcx, [rsp + 0x28]
test edx, edx
jne 0x14010a300
lea r8, str.SimConnect
mov edx, 0x1a
lea rax, [rsp + 0x28]
sub r8, rax
nop word [rax + rax]
lea rax, [rdx + 0x7fffffe4]
test rax, rax
je 0x14010a2f0
movzx eax, byte [r8 + rcx]
test al, al
je 0x14010a2f0
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14010a2d0
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
jmp 0x14010a314
mov r9d, edx
lea r8, str.SimConnect._u
mov edx, 0x1a
call fcn.1401099b0
cmp qword [rbx + 0x18], 0x10
mov r9, rbx
jb 0x14010a321
mov r9, qword [rbx]
mov r8d, 0x1e
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov rcx, rbx
test eax, eax
jne 0x14010a35b
call fcn.1400670b0
mov eax, 3
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14010bec0
add rsp, 0x70
pop rbx
ret
call fcn.1400670b0
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14010bec0
add rsp, 0x70
pop rbx
ret

Function at 0x14010ab60
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x210
mov rax, qword [0x140154440]
xor rax, rsp
mov qword [rsp + 0x200], rax
movzx esi, cl
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x198
xor dil, dil
call sub.VCRUNTIME140.dll_memset
mov ebx, 2
lea rdx, [rsp + 0x60]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14010ac5b
test sil, sil
mov qword [rsp + 0x20], 0
mov eax, reloc.WS2_32.dll_socket
mov dword [rsp + 0x30], 1
cmovne ebx, eax
mov dword [rsp + 0x34], 6
lea rax, [0x1401173dc]
mov dword [rsp + 0x2c], ebx
xorps xmm0, xmm0
mov dword [rsp + 0x28], 4
xorps xmm1, xmm1
lea rcx, str.127.0.0.1
cmovne rcx, rax
lea r9, [rsp + 0x20]
xor edx, edx
lea r8, [rsp + 0x28]
movdqu xmmword [rsp + 0x38], xmm0
movdqu xmmword [rsp + 0x48], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14010ac55
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14010ac55
mov rax, rcx
nop dword [rax]
cmp ebx, dword [rax + 4]
jne 0x14010ac41
cmp dword [rax + 0xc], 6
jne 0x14010ac41
cmp dword [rax + 8], 1
je 0x14010ac4c
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14010ac30
jmp 0x14010ac4f
mov dil, 1
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, dil
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.14010bec0
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14010ac90
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x40
xor r8d, r8d
lea r9, [rcx + 0x28]
cmp dword [rcx + 0x18], 2
mov rbx, rcx
mov dword [r9], r8d
jne 0x14010ad66
mov eax, dword [rcx + 0x1a8]
lea rdx, [rcx + 0x1c8]
add eax, dword [rcx + 0x58]
xorps xmm0, xmm0
sub eax, dword [rcx + 0x68]
movups xmmword [rdx], xmm0
xor ecx, ecx
mov dword [rsp + 0x50], r8d
mov qword [rdx + 0x10], rcx
mov dword [rbx + 0x200], eax
mov rax, qword [rbx + 0x68]
mov qword [rbx + 0x208], rax
lock inc dword [rbx + 0x260]
mov ecx, dword [rbx + 0x24]
test ecx, ecx
je 0x14010ad21
cmp ecx, 1
jne 0x14010ad66
mov r8d, dword [rbx + 0x200]
xor r9d, r9d
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x20], rdx
mov rdx, qword [rbx + 0x208]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14010ad66
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14010ad57
mov rcx, qword [rbx + 0x10]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], r8
mov r8d, 1
mov qword [rsp + 0x28], rdx
lea rdx, [rbx + 0x200]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x14010ad66
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x14010ad66
mov rcx, rbx
call fcn.14010afe0
add rsp, 0x40
pop rbx
ret