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

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140126040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x14003bd10
cmp al, 0x25
jne 0x14003bd04
cmp byte [r8 + 1], al
jne 0x14003bd10
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x14003bcf7
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x14003be74
cmp byte [r8 + 1], dl
je 0x14003be74
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x14003bd4d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x14003bd75
sub dl, 0x61
cmp dl, 0x19
ja 0x14003bd67
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x14003bd75
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x14003bd30
jmp 0x14003bd78
inc r9
cmp r8, r9
jae 0x14003bdaf
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x14003bda4
bt rdx, rax
jb 0x14003bdaa
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x14003bd90
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.140003a30
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x14003bde8
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x14003bde0
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x14003be66
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x14003be0a
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x14003be18
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x14003be54
movsd xmm2, qword [0x14011cd10]
nop
cmp al, 0x39
ja 0x14003be54
movzx eax, al
inc rdx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x14003be30
cmp r9b, 0x2d
jne 0x14003be6f
xorps xmm1, xmmword [0x14011cf80]
movaps xmm0, xmm1
jmp 0x14003be77
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14003be77
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140051cc0
add rsp, 0x90
pop rbx
ret
Function at 0x14003f3a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14003f401
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14003f3c0
mov ecx, dword [r9]
jmp 0x14003f4eb
cmp ecx, 0x4e0
jb 0x14003f4eb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14003f420
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14003f470
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x1400429a0
Capabilities:
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140126040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
movaps xmm1, xmm2
lea rcx, [rsp + 0x30]
mov rsi, r9
mov rdi, rdx
call fcn.14003f920
cmp qword [rax + 0x18], 0xf
jbe 0x1400429da
mov rax, qword [rax]
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x50]
mov r8, rax
mov dword [rsp + 0x20], 0x20
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140042a3b
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042a36
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042a36
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005207c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
cvtsd2ss xmm0, xmm0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140051cc0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004e850
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14004e878
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14004e89e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004e8a0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14004e8f9
test ecx, ecx
jle 0x14004e8d9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14004e8f9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14004e8f9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x14004e920
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14004e951
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14004e96f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14004e98b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004e98d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004e9c9
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14004ea5e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14004ea04
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14004ea3e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14004ea5e
cmp rbx, rax
ja 0x14004ea10
test rbx, rbx
je 0x14004ea5e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14004eec0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140126040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14004eeed
xor eax, eax
jmp 0x14004f059
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14004ef27
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14004ef27
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14004f059
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14004f04c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14004ef6a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14004ef95
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14004f051
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14004f004
sub eax, 1
je 0x14004f004
cmp eax, 2
jne 0x14004f04c
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14004f051
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14004f032
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14004f04c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14004f051
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140051cc0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14004f460
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140126040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14004f533
cmp byte [rcx + 0x71], 0
je 0x14004f533
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004f52f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14004f4f4
sub eax, 1
je 0x14004f4f8
cmp eax, 2
jne 0x14004f52f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140051cc0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14004f526
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14004f52f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004f4dc
xor al, al
jmp 0x14004f4dc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140051cc0
add rsp, 0x60
pop rbx
ret

Function at 0x1400510c0
Capabilities:
Create udp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x220
mov rax, qword [0x140126040]
xor rax, rsp
mov qword [rsp + 0x210], rax
xor eax, eax
mov byte [r11 - 0x48], 0
mov edi, edx
mov qword [r11 - 0x47], rax
mov ebx, ecx
mov word [r11 - 0x3f], ax
mov ecx, 0x202
mov byte [r11 - 0x3d], al
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov r8d, ebx
lea rdx, [0x140054d2c]
lea rcx, [rsp + 0x1f0]
call fcn.140051400
mov r8d, edi
lea rdx, [0x140054d2c]
lea rcx, [rsp + 0x200]
call fcn.140051400
lea r8, [rsp + 0x1f0]
mov edx, 0xc
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14011cc30]
mov edx, 0xc
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [rsp + 0x200]
mov edx, 0xc
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov edi, 2
mov edx, edi
mov ecx, edi
lea r8d, [rdi + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
mov ecx, 0x1f90
mov qword [rsp + 0x38], 0
mov rbx, rax
mov word [rsp + 0x30], di
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.192.168.1.50
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x34], eax
mov r8, 0xffffffffffffffff
lea rax, [rsp + 0x1e0]
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400511e0
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], socket
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x1e0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140051cc0
mov rbx, qword [rsp + 0x240]
add rsp, 0x220
pop rdi
ret
Function at 0x140051240
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x230
mov rax, qword [0x140126040]
xor rax, rsp
mov qword [rsp + 0x220], rax
xor eax, eax
mov byte [r11 - 0x58], 0
mov ecx, 0x202
mov qword [r11 - 0x57], rax
lea rdx, [rsp + 0x40]
mov word [r11 - 0x4f], ax
mov byte [r11 - 0x4d], al
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r8d, r8d
lea rdx, [0x140054d2c]
lea rcx, [rsp + 0x1f0]
call fcn.140051400
xor r8d, r8d
lea rdx, [0x140054d2c]
lea rcx, [rsp + 0x200]
call fcn.140051400
mov r8d, 1
lea rdx, [0x140054d2c]
lea rcx, [rsp + 0x210]
call fcn.140051400
lea r8, [rsp + 0x1f0]
mov edx, 0xc
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14011cc30]
mov edx, 0xc
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [rsp + 0x200]
mov edx, 0xc
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14011cc30]
mov edx, 0xc
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [rsp + 0x210]
mov edx, 0xc
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov edi, 2
mov edx, edi
mov ecx, edi
lea r8d, [rdi + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
mov ecx, 0x1f90
mov qword [rsp + 0x38], 0
mov rbx, rax
mov word [rsp + 0x30], di
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.192.168.1.50
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x34], eax
mov r8, 0xffffffffffffffff
lea rax, [rsp + 0x1e0]
inc r8
cmp byte [rax + r8], 0
jne 0x1400513a6
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], socket
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x1e0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140051cc0
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret

Function at 0x140051464
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14005149e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400514a3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400514ec
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140054880]
cmp byte [rcx + rax], 0
je 0x1400514ec
dec r8
sub rdx, 1
jne 0x1400514d2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400529b4
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400078f2
xor eax, eax
jmp 0x1400079d8
cmp qword [rcx + 0x68], 0
je 0x140007903
call fcn.1400079f4
jmp 0x1400079d8
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000791a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000791c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000794e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140021a90
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400079d2
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140007985
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400079ae
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140010b40
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400079d2
cmp rsi, rbx
ja 0x14000798c
test rsi, rsi
je 0x1400079d2
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140010b40
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140009988
Capabilities:
Parse pe header

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

Function at 0x14001333c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013138
Function at 0x140018400
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140009230
sub rsp, rax
mov rax, qword [0x140036040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140016fe0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001844f
mov rax, rbp
jmp 0x140018557
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x38720]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140019520
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x38720]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140018553
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140018553
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140019520
test rax, rax
js 0x140018553
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140018553
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140018545
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140018545
cmp byte [rcx], 0xd
jne 0x14001852b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001853a
cmp byte [rcx + 1], 0xa
jne 0x14001853a
inc rcx
jmp 0x14001853a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x36470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001850d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140018557
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140008be0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140018778
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001878e
mov al, 1
jmp 0x1400187ee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001879f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400187ec
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001ced4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400187ec
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400187ec
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400187ec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400187ee
xor al, al
add rsp, 0x20
pop rbx
ret