joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800229a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1800303c0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rbx, rcx
lea rcx, [rsp + 0x48]
call fcn.180011fe0
cmp qword [rax + 0x18], 0x10
jb 0x1800229e2
mov rax, qword [rax]
lea rcx, [rsp + 0x38]
mov rdx, rax
mov qword [rsp + 0x20], rcx
call fcn.180010f50
cmp qword [rsp + 0x60], 0x10
movsxd rdi, eax
jb 0x180022a09
mov rcx, qword [rsp + 0x48]
call fcn.180014934
test rdi, rdi
jne 0x180022bc1
lea rcx, [rbp + 0x91]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x90], dil
call fcn.180017520
mov rdi, qword [rsp + 0x38]
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x7a], 0x736c61
mov word [rsp + 0x78], 0x7668
mov dword [rsp + 0x71], 0x6c6c64
mov dword [rsp + 0x6d], 0x2e323369
mov word [rsp + 0x6b], 0x7061
mov word [rsp + 0x68], 0x6441
mov byte [rsp + 0x6a], 0x76
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180022bb7
lea rdx, [rsp + 0x48]
mov rcx, rax
mov dword [rsp + 0x54], 0x41784565
mov dword [rsp + 0x50], 0x756c6156
mov word [rsp + 0x4b], 0x7551
mov word [rsp + 0x48], 0x6552
mov word [rsp + 0x4d], 0x7265
mov byte [rsp + 0x4f], 0x79
mov byte [rsp + 0x4a], 0x67
mov byte [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180022bb7
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x90]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call rax
test eax, eax
jne 0x180022bb7
cmp dword [rsp + 0x40], eax
jbe 0x180022bb7
lea rcx, [rbp - 0x7f]
xor edx, edx
mov r8d, 0x103
mov byte [rbp - 0x80], al
call fcn.180017520
lea r9, [rsp + 0x30]
lea rcx, [rbp - 0x80]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov word [rsp + 0x30], 0x6425
mov byte [rsp + 0x32], 0
mov qword [rsp + 0x20], rbx
call fcn.18001477c
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x68], 0x776c6853
mov dword [rsp + 0x6c], 0x2e697061
mov word [rsp + 0x71], 0x6c6c
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x70], 0x64
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180022bb7
lea rdx, [rsp + 0x48]
mov rcx, rax
mov dword [rsp + 0x4d], 0x414972
mov word [rsp + 0x4b], 0x7453
mov word [rsp + 0x48], 0x7453
mov byte [rsp + 0x4a], 0x72
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180022bb7
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x90]
call rax
test rax, rax
je 0x180022bb7
mov rcx, qword [rsp + 0x38]
call fcn.180010ea0
mov rax, rbx
jmp 0x180022bca
mov rcx, qword [rsp + 0x38]
call fcn.180010ea0
mov rcx, rbx
call qword [0x18005ca20]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.180013b20
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x180022c70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x1800303c0]
xor rax, rsp
mov qword [rbp + 0x418], rax
mov r14d, r8d
mov r8d, ecx
mov rsi, rdx
call fcn.180010b30
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180022dc7
mov rcx, rax
call fcn.180010650
cmp eax, 0xffffffff
je 0x180022def
mov qword [rsp + 0x548], rdi
mov dword [rsp + 0x50], 0x100001
xor edi, edi
lea rcx, [rbp + 0x408]
mov byte [rbp + 0x3f7], 0x61
mov byte [rbp + 0x3ff], 0x74
mov byte [rbp + 0x3f2], 0x74
mov byte [rbp + 0x3fc], 0x74
mov dword [rbp + 0x3f8], 0x6e6f4364
mov word [rbp + 0x3f0], 0x6547
mov word [rbp + 0x3fd], 0x7865
mov dword [rbp + 0x3f3], 0x65726854
mov byte [rbp + 0x400], 0
mov dword [rbp + 0x40f], 0x6c642e32
mov word [rbp + 0x413], 0x6c
mov dword [rbp + 0x409], 0x656e7265
mov word [rbp + 0x40d], 0x336c
mov byte [rbp + 0x408], 0x4b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp + 0x3f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180022dea
lea rdx, [rsp + 0x20]
mov rcx, rbx
call rax
test eax, eax
je 0x180022dea
mov rcx, qword [rbp + 0x18]
cmp rcx, rsi
jb 0x180022dea
lea rax, [rsi + r14]
cmp rcx, rax
jae 0x180022dea
mov rcx, rbx
call fcn.180010d50
cmp edi, 3
jge 0x180022db4
call fcn.180010460
mov rcx, rbx
call fcn.180010650
inc edi
jmp 0x180022cdb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, qword [rsp + 0x548]
mov rcx, qword [rbp + 0x418]
xor rcx, rsp
call fcn.180013b20
mov rbx, qword [rsp + 0x550]
add rsp, 0x520
pop r14
pop rsi
pop rbp
ret
mov rax, rbx
jmp 0x180022dbf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180022dc7

Function at 0x180022e10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1800303c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea r8, [0x18005ca60]
mov rbx, rcx
xor eax, eax
mov rcx, r8
nop word [rax + rax]
cmp qword [rcx], rbx
je 0x180022e52
inc eax
add rcx, 8
cmp eax, 0x40
jb 0x180022e40
jmp 0x180022ecc
mov qword [r8 + rax*8], 0
test edx, edx
je 0x180022ec6
lea rcx, [rbp - 0x20]
mov word [rbp - 0x2a], 0x466c
mov word [rbp - 0x2d], 0x7574
mov dword [rbp - 0x28], 0x656572
mov word [rbp - 0x30], 0x6956
mov byte [rbp - 0x2e], 0x72
mov byte [rbp - 0x2b], 0x61
mov dword [rbp - 0x19], 0x6c642e32
mov word [rbp - 0x15], 0x6c
mov dword [rbp - 0x1f], 0x656e7265
mov word [rbp - 0x1b], 0x336c
mov byte [rbp - 0x20], 0x4b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180022ec6
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call rax
dec dword [0x18005c960]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180013b20
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x1400279dc
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b104
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b104
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027b2c
cmp rax, 0xffffffffffffffff
je 0x140027b2c
xor edi, edi
test rbp, rbp
jle 0x140027ad7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001da18
mov rbx, rax
test rax, rax
jne 0x140027a64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027acd
mov edx, 0x8000
mov ecx, r14d
call fcn.140018a68
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001bde0
cmp eax, 0xffffffff
je 0x140027aad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027a74
mov edx, r15d
mov ecx, r14d
call fcn.140018a68
jmp 0x140027acd
cmp byte [rsi + 0x38], dil
je 0x140027ac4
cmp dword [rsi + 0x34], 5
jne 0x140027ac4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027acd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400197c8
jmp 0x140027b40
jns 0x140027b40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b104
cmp rax, 0xffffffffffffffff
jne 0x140027af8
cmp byte [rsi + 0x30], dil
je 0x140027b40
mov edi, dword [rsi + 0x2c]
jmp 0x140027b40
mov ecx, r14d
call fcn.140017594
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027b40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027b40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027b39
mov eax, dword [rsi + 0x2c]
jmp 0x140027b3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b104
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140028c30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028c58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028c58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001b50
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4c6190
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4c5ad2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ea108]
test eax, eax
je 0x2fc4c5b6a
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ea110]
mov qword [rbp - 8], rax
jmp 0x2fc4c5b4e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c5b42
cmp qword [rbp - 0x10], 0
je 0x2fc4c5b42
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c5b08
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c5b6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c5c70
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c5c98
mov eax, 0
jmp 0x2fc4c5ce6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c5cc1
mov eax, 0
jmp 0x2fc4c5ce6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c5ce1
mov eax, 0
jmp 0x2fc4c5ce6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c5cec
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 0x2fc4c5d6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c5d61
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 0x2fc4c5d61
mov rax, qword [rbp - 8]
jmp 0x2fc4c5d7f
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 0x2fc4c5d34
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140011500
Capabilities:
Hash data using crc32b

Disassembly:
xor r9d, r9d
lea r10, [0x14016ef10]
nop word [rax + rax]
xor eax, eax
test r9b, 1
je 0x14001151c
bts eax, 7
mov ecx, r9d
shr ecx, 1
test cl, 1
je 0x14001152a
bts eax, 6
shr ecx, 1
test cl, 1
je 0x140011535
bts eax, 5
shr ecx, 1
test cl, 1
je 0x140011540
bts eax, 4
shr ecx, 1
test cl, 1
je 0x14001154b
bts eax, 3
shr ecx, 1
test cl, 1
je 0x140011556
bts eax, 2
shr ecx, 1
test cl, 1
je 0x140011561
bts eax, 1
test cl, 2
je 0x14001156a
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
mov edx, reloc.WLDAP32.dll_Ordinal_30
cmovns r8d, eax
xor ecx, ecx
test r8b, 1
je 0x140011603
lea eax, [rdx + 1]
bts ecx, eax
sar r8d, 1
test r8b, 1
je 0x14001160f
bts ecx, edx
sar r8d, 1
sub edx, 2
cmp edx, 0xfffffffe
jg 0x1400115f7
mov dword [r10], ecx
inc r9d
add r10, 4
cmp r9d, 0x100
jl 0x140011510
mov dword [0x14016ef00], 1
ret
Function at 0x140014470
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 0x14001449f
xor eax, eax
jmp 0x140014657
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 0x140014618
mov ecx, dword [rdi + 0x1c]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa4]
jne 0x140014618
mov ecx, dword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0x9c]
jne 0x140014618
mov ecx, dword [rdi + 0x24]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa0]
jne 0x140014618
mov eax, dword [rbx + 0x1c]
cmp dword [rdi + 0x28], eax
jne 0x140014618
mov edx, 1
mov r8b, 0xff
mov rcx, rbx
call fcn.140014670
cmp rsi, qword [rbx + 0x48]
jae 0x140014525
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 0x14001455f
cmp eax, esi
mov ecx, eax
cmova ecx, esi
cmp ecx, dword [rbx + 0xd0]
jae 0x14001456d
mov dword [rbx + 0xd0], ecx
mov ecx, dword [rdi + 0xc]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, esi
jb 0x140014586
mov ecx, 0x10000
mov esi, eax
cmp eax, ecx
cmova esi, ecx
cmp esi, dword [rbx + 0xd4]
jae 0x140014594
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 0x1400145e0
call fcn.140011b70
mov dword [rbx + 0x38], 5
mov dword [r14], 1
mov qword [r14 + 8], rbx
mov eax, dword [rbx + 0x1cc]
mov dword [r14 + 0x14], eax
xor eax, eax
jmp 0x140014652
xor edi, edi
cmp dword [rbx + 0x38], 1
sete dil
add edi, 3
call fcn.140011ba0
cmp dword [rbx + 0x140], 0
mov dword [rbx + 0x38], edi
jne 0x140014614
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.140011320
mov dword [rbx + 0x140], 1
xor eax, eax
jmp 0x140014652
xor edi, edi
mov rcx, rbx
mov dword [rbx + 0x1cc], edi
call fcn.140011ba0
mov dword [rbx + 0x38], 9
cmp dword [rbx + 0x140], edi
jne 0x14001464d
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.140011320
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 0x1400155b0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r14
sub rsp, 0x58
mov rax, qword [0x14016bc40]
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 0x1400155f5
cmp word [rax + 0x10], 2
jne 0x1400155f5
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [r14], eax
xor eax, eax
jmp 0x1400156a9
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 r15d, reloc.WLDAP32.dll_Ordinal_46
mov dword [rsp + 0x28], 0
lea rdx, [rbx + 1]
mov qword [rsp + 0x20], rdx
cmp byte [rbx], 0x30
je 0x140015663
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 0x14001568b
mov rdx, qword [rsp + 0x20]
cmp rdx, rbx
je 0x14001568b
mov rcx, rdx
sub rcx, rbx
cmp rcx, 3
jg 0x14001568b
mov byte [rsp + rdi + 0x28], al
movsx eax, byte [rdx]
cmp ebp, 3
mov ecx, esi
cmovl ecx, r15d
cmp eax, ecx
jne 0x14001568b
inc ebp
lea rbx, [rdx + 1]
inc rdi
cmp rdi, 4
jl 0x140015620
mov eax, dword [rsp + 0x28]
mov dword [r14], eax
jmp 0x140015690
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.14010fcc0
add rsp, 0x58
pop r14
pop rbx
ret

Function at 0x1400156d0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14016bc40]
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 0x140015739
movzx eax, word [rsp + 0x20]
cmp al, 1
jne 0x140015733
shr ax, 8
cmp al, 1
jne 0x140015733
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14010fcc0
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.14010fcc0
add rsp, 0x1d8
ret

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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14016bc40]
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 0x140015878
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14010fcc0
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.14010fcc0
add rsp, 0x40
pop rbx
ret
Function at 0x1400158b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14016bc40]
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 0x14001593e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x14001593a
cmp eax, 0x13
jne 0x140015948
xor eax, eax
jmp 0x14001596d
test dword [rsp + 0x50], 0x8000
je 0x14001594f
mov eax, 0xffffffff
jmp 0x14001596d
test rbx, rbx
je 0x140015969
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.14010fcc0
add rsp, 0x80
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14016bc40]
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 0x1400159e2
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 0x140015a3e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
jmp 0x140015a42
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14010fcc0
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140015a60
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14016bc40]
xor rax, rsp
mov qword [rsp + 0x40], rax
dec edx
mov dword [rsp + 0x30], r8d
mov r9d, 0xffffffff
cmp edx, 8
ja case.0x140015a9e.8
movsxd rax, edx
lea r10, [0x140000000]
mov edx, dword [r10 + rax*4 + 0x15b44]
add rdx, r10
jmp rdx
mov dword [rsp + 0x38], r8d
mov edx, 0x8004667e
lea r8, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
jmp 0x140015b23
mov edx, 0xffff
mov r8d, reloc.WLDAP32.dll_Ordinal_32
jmp 0x140015b10
mov edx, 0xffff
mov r8d, 4
jmp 0x140015b10
mov edx, 0xffff
mov r8d, 0x1002
jmp 0x140015b10
mov edx, 0xffff
mov r8d, 0x1001
jmp 0x140015b10
mov edx, 0xffff
mov r8d, 0x1006
jmp 0x140015b10
mov edx, 0xffff
mov r8d, 0x1005
jmp 0x140015b10
mov edx, 6
mov r8d, 1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r9d, eax
xor eax, eax
cmp r9d, 0xffffffff
setne al
dec eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14010fcc0
add rsp, 0x58
ret

Function at 0x140015b70
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x14016bc40]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rdx
mov dword [rsp + 0x250], 0
mov eax, 0x10624dd3
mov dword [rsp + 0x40], 0
mul r8d
mov rdi, rcx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub r8d, eax
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
mov eax, dword [rbx]
test al, 1
je 0x140015bde
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
test al, 2
je 0x140015bf5
mov qword [rsp + 0x258], rdi
mov dword [rsp + 0x250], 1
lea rax, [rsp + 0x30]
inc ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x250]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x140015c22
mov eax, 0xffffffff
jmp 0x140015c59
mov dword [rbx], 0
test eax, eax
je 0x140015c57
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140015c40
or dword [rbx], 1
lea rdx, [rsp + 0x250]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140015c57
or dword [rbx], 2
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14010fcc0
mov rbx, qword [rsp + 0x498]
add rsp, 0x470
pop rdi
ret