joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ec0e0
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 0x1400ec113
cmp ecx, edi
jge 0x1400ec103
mov rcx, rbx
call fcn.1400eb910
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 0x1400ec14d
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 0x1400ec130
mov dword [rbx + 0x10], eax
test eax, eax
je 0x1400ec16b
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 0x1400ec19a
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x1400ec184
xor dl, dl
jmp 0x1400ec18d
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x1400ec178
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 0x1400ec1f0
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 0x1400ec228
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 0x1400ec242
mov rcx, rbx
call fcn.1400ebab0
test eax, eax
je 0x1400ec1e3
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 0x1400f7f90
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.1400a5560
lea r15d, [rbp - 6]
cmp qword [rdi + 0x18], 0xf
jbe 0x1400f7ffc
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x1400f8002
mov r14, rdi
mov rcx, rdi
mov r13, qword [rsi]
add r13, rcx
cmp rdi, r13
je 0x1400f8101
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop dword [rax + rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x1400f80a6
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 0x1400f808d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400f8082
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400f809c
mov rcx, rbx
call fcn.1400a3e80
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x1400f8050
inc r14
cmp r14, r13
jne 0x1400f8020
cmp r15d, 0xfffffffa
jle 0x1400f8101
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 0x1400f80f9
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400f80ee
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400f8101
mov rcx, rbx
call fcn.1400a3e80
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x1400f8149
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400f8135
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400f812d
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x1400f8140
mov r9b, 0x3d
mov rcx, rbx
call fcn.1400a3e80
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x1400f8110
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 0x1400f8a20
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 0x1400f8a74
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400f8a50
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 0x1400f8aa0
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 0x1400f8b02
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400f8ad0
mov rax, rbx
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x20
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.1400f8aa0
test rax, rax
jne 0x1400f8b40
mov al, 1
add rsp, 0x20
pop rdi
ret
jns 0x1400f8b55
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
jne 0x1400f8b55
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 0x1400f8b97
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400f8b70
mov rsi, qword [rsp + 0x40]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
setg al
add rsp, 0x20
pop rdi
ret
Function at 0x1400f9020
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 0x1400f9051
cmp ax, 0x17
jne 0x1400f90cb
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 0x1400f90cb
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400f90b0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140067380
mov al, 1
jmp 0x1400f90cd
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 0x1400f9bf0
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 0x1400f9c60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400f9c30
test ebx, ebx
jle 0x1400f9c75
mov rcx, qword [rdi + 8]
call fcn.1400f8b20
test al, al
je 0x1400f9c75
mov al, 1
jmp 0x1400f9c77
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 0x1400f9c90
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 0x1400f9d09
mov rcx, qword [rcx + 0x30]
sub rdi, rax
lea rdx, [rax + rcx]
mov rcx, rbp
cmp rsi, rdi
ja 0x1400f9ced
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 0x1400f9d27
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 0x1400f9daf
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 0x1400f9d77
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400f9d50
mov r15, qword [rsp + 0x48]
test rdi, rdi
jle 0x1400f9d95
mov rdx, qword [rbx + 0x30]
mov rcx, rbp
cmp rdi, rsi
jg 0x1400f9d9a
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, rdi
jmp 0x1400f9dc0
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rax, rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rdi
jmp 0x1400f9dc0
xor r9d, r9d
mov r8, rsi
mov rdx, rbp
mov rcx, r14
call fcn.1400f8a20
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400f9de0
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 0x1400f9e19
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 0x1400f9e46
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400f9e22
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 0x1400f9ec0
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 0x1400f9f0a
mov edx, dword [rsp + 0xb0]
lea rcx, [rsp + 0x20]
mov r9, rbx
mov r8, rdi
call fcn.1400f9020
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
Function at 0x1400ffda0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
mov ecx, 8
call fcn.14010ab80
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, [0x140105a80]
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 0x1400ffe1e
cmp dword [rsp + 0x38], 0
je 0x1400ffe12
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 0x1400ffe12
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 0x140108720
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 [0x140153440]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
movzx esi, cl
mov rcx, rdi
lea rdx, [0x1401181e2]
xor r8d, r8d
xor bl, bl
call fcn.140067380
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 0x140108803
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 0x1401087f8
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], bl
jne 0x1401087e0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140067380
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.14010af80
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140108950
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.14010a140
cmp byte [rbx + 0x1c4], 0
je 0x140108995
cmp dword [rbx + 0x24], 0
jne 0x140108995
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 0x140108b20
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140153440]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
movzx eax, byte [0x1401562bc]
test al, al
jne 0x140108b7f
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 [0x1401562bc]
mov edx, 1
test eax, eax
cmove ecx, edx
mov byte [0x1401562bc], cl
movzx eax, cl
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14010af80
add rsp, 0x1d8
ret
Function at 0x140108bc0
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 [0x140153440]
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, [0x1401181e2]
xor r8d, r8d
mov r15, r9
call fcn.140067380
xor r8d, r8d
lea rdx, [0x1401181e2]
mov rcx, r15
call fcn.140067380
mov dword [r12], 0xa080
mov byte [r13], 0
cmp edi, 0xffffffff
je 0x140108e24
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 0x140108ced
lea r8, str.SimConnect.cfg
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x140108ced
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 0x140108cb3
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140067380
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.140108e50
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 0x140108d8a
lea r8, str.SimConnect.cfg
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x140108d8a
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 0x140108d50
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140067380
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.140108e50
lea rdx, [rbp + 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x140108e1c
lea r8, str.SimConnect.cfg
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x140108e1c
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 0x140108de0
mov r8, rbx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140067380
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.140108e50
mov rbx, qword [rsp + 0x2a8]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14010af80
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140109340
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140153440]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], rcx
mov rbx, rcx
lea rcx, [rsp + 0x28]
test edx, edx
jne 0x1401093b0
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 0x1401093a0
movzx eax, byte [r8 + rcx]
test al, al
je 0x1401093a0
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140109380
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
jmp 0x1401093c4
mov r9d, edx
lea r8, str.SimConnect._u
mov edx, 0x1a
call fcn.140108a60
cmp qword [rbx + 0x18], 0x10
mov r9, rbx
jb 0x1401093d1
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 0x14010940b
call fcn.1400670a0
mov eax, 3
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14010af80
add rsp, 0x70
pop rbx
ret
call fcn.1400670a0
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14010af80
add rsp, 0x70
pop rbx
ret

Function at 0x140109c10
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 [0x140153440]
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 0x140109d0b
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, [0x14011639c]
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 0x140109d05
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140109d05
mov rax, rcx
nop dword [rax]
cmp ebx, dword [rax + 4]
jne 0x140109cf1
cmp dword [rax + 0xc], 6
jne 0x140109cf1
cmp dword [rax + 8], 1
je 0x140109cfc
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140109ce0
jmp 0x140109cff
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.14010af80
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140109d40
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 0x140109e16
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 0x140109dd1
cmp ecx, 1
jne 0x140109e16
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 0x140109e16
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140109e07
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 0x140109e16
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x140109e16
mov rcx, rbx
call fcn.14010a090
add rsp, 0x40
pop rbx
ret