joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f8090
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xf0
mov rax, qword [0x1409c0280]
xor rax, rsp
mov qword [rbp - 9], rax
mov r15, qword [rbp + 0x67]
mov eax, 0x1b8
mov r12, qword [rbp + 0x77]
mov ecx, eax
ror ecx, 8
mov r14d, gethostname
rol eax, 8
and ecx, 0xff00ff00
and eax, 0xff00ff
mov byte [rsp + 0x28], r9b
or ecx, eax
mov byte [rsp + 0x20], 1
mov dword [rsp + 0x30], ecx
lea r13d, [r14 - 0x35]
xor esi, esi
mov rdi, rdx
nop dword [rax]
mov r8d, 1
mov qword [rbp - 0x39], rsi
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x40], 0x6a09e667
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x44], 0xbb67ae85
mov dword [rsp + 0x48], 0x3c6ef372
mov dword [rsp + 0x4c], 0xa54ff53a
mov dword [rsp + 0x50], 0x510e527f
mov dword [rsp + 0x54], 0x9b05688c
mov dword [rsp + 0x58], 0x1f83d9ab
mov dword [rsp + 0x5c], 0x5be0cd19
mov qword [rbp - 0x49], rsi
mov dword [rbp - 0x41], esi
call fcn.1400ee950
mov ebx, eax
test eax, eax
jne 0x1400f8237
lea r8d, [rax + 4]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400ee950
mov ebx, eax
test eax, eax
jne 0x1400f8237
cmp byte [rsp + 0x28], 4
je 0x1400f81ab
lea r8d, [rax + 1]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.1400ee950
mov ebx, eax
test eax, eax
jne 0x1400f8237
test r15, r15
jne 0x1400f81bc
cmp dword [rbp + 0x6f], esi
jbe 0x1400f81d3
mov ebx, 0xffffff53
jmp 0x1400f8237
mov r8d, dword [rbp + 0x6f]
lea rcx, [rsp + 0x40]
mov rdx, r15
call fcn.1400ee950
mov ebx, eax
test eax, eax
jne 0x1400f8237
test r12, r12
je 0x1400f81f5
mov eax, dword [rbp + 0x7f]
test eax, eax
je 0x1400f81f5
mov r8d, eax
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.1400ee950
mov ebx, eax
test eax, eax
jne 0x1400f8237
lea rdx, [rbp - 0x29]
lea rcx, [rsp + 0x40]
call fcn.1400ef3c0
mov ebx, eax
test eax, eax
jne 0x1400f8237
cmp r14d, 0x20
jbe 0x1400f8228
movups xmm0, xmmword [rbp - 0x29]
add r14d, 0xffffffe0
movups xmm1, xmmword [rbp - 0x19]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
add rdi, 0x20
jmp 0x1400f8237
mov r8d, r14d
lea rdx, [rbp - 0x29]
mov rcx, rdi
call fcn.14016a6b0
inc byte [rsp + 0x20]
sub r13, 1
jne 0x1400f8100
mov ecx, reloc.WLDAP32.dll_Ordinal_32
lea rdx, [rbp - 0x29]
nop
mov byte [rdx], sil
lea rdx, [rdx + 1]
add ecx, 0xffffffff
jne 0x1400f8250
test ebx, ebx
setne sil
mov eax, esi
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140167e90
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400f83b0
Capabilities:
Hash data using sha256

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov rax, qword [0x1409c0280]
xor rax, rsp
mov qword [rbp + 8], rax
movups xmm0, xmmword [r9]
test r8d, r8d
mov esi, 0
movups xmm1, xmmword [r9 + 0x10]
mov r14, rcx
mov r12d, 1
mov ecx, esi
mov edi, r12d
cmovne edi, r8d
lea ebx, [rsi + 0x37]
test dil, 0x1f
mov eax, edi
movups xmmword [rbp - 0x30], xmm0
setne cl
shr eax, 5
movups xmm0, xmmword [r9 + 0x20]
add ecx, eax
mov r15, rdx
mov eax, dword [r9 + 0x30]
mov r13d, esi
mov dword [rbp], eax
movzx eax, word [r9 + 0x34]
mov word [rbp + 4], ax
movzx eax, byte [r9 + 0x36]
mov byte [rbp + 6], al
mov dword [rsp + 0x20], ecx
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm0
je 0x1400f8583
mov r8d, ebx
mov qword [rbp - 0x40], rsi
lea rdx, [rbp - 0x30]
mov dword [rsp + 0x50], 0x6a09e667
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x54], 0xbb67ae85
mov dword [rsp + 0x58], 0x3c6ef372
mov dword [rsp + 0x5c], 0xa54ff53a
mov dword [rsp + 0x60], 0x510e527f
mov dword [rsp + 0x64], 0x9b05688c
mov dword [rsp + 0x68], 0x1f83d9ab
mov dword [rsp + 0x6c], 0x5be0cd19
mov qword [rbp - 0x50], rsi
mov dword [rbp - 0x48], esi
call fcn.1400ee950
mov r12d, eax
test eax, eax
jne 0x1400f8575
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1400ef3c0
mov r12d, eax
test eax, eax
jne 0x1400f8575
cmp dword [r14], 1
mov eax, dword [rsp + 0x28]
jbe 0x1400f84f5
cmp eax, dword [r14 + 4]
jne 0x1400f84f5
cmp byte [r14 + 0x76], 1
je 0x1400f85c5
mov edx, dword [rsp + 0x20]
mov cl, 1
cmp r13d, edx
lea eax, [rdx + 1]
cmovne eax, edx
mov dword [rsp + 0x20], eax
jmp 0x1400f84fb
mov dword [r14 + 4], eax
xor cl, cl
mov byte [r14 + 0x76], cl
test r15, r15
je 0x1400f8575
test edi, edi
je 0x1400f8575
cmp edi, 0x20
jb 0x1400f8563
movups xmm0, xmmword [rsp + 0x28]
add edi, 0xffffffe0
lea rcx, [rbp + 4]
movups xmm1, xmmword [rsp + 0x38]
mov edx, gethostname
lea rax, [rbp + 4]
movups xmmword [r15], xmm0
movups xmmword [r15 + 0x10], xmm1
add r15, 0x20
sub rdx, rcx
add byte [rax + 2], 1
jne 0x1400f8575
add byte [rax + 1], 1
jne 0x1400f8575
add byte [rax], 1
jne 0x1400f8575
add byte [rax - 1], 1
jne 0x1400f8575
add byte [rax - 2], 1
jne 0x1400f8575
sub rax, 5
lea rcx, [rdx + rax]
test rcx, rcx
jns 0x1400f8537
jmp 0x1400f8575
mov r8d, edi
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.14016a6b0
mov edi, esi
inc r13d
cmp r13d, dword [rsp + 0x20]
jl 0x1400f8444
lea rcx, [rbp - 0x30]
nop word [rax + rax]
mov byte [rcx], sil
lea rcx, [rcx + 1]
add ebx, 0xffffffff
jne 0x1400f8590
test r12d, r12d
setne sil
mov eax, esi
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140167e90
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, 3
jmp 0x1400f85a5
Function at 0x1400f8cd0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
sub rsp, 0xa0
mov rax, qword [0x1409c0280]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rcx
test rcx, rcx
jne 0x1400f8cfa
mov eax, 0xffffff53
jmp 0x1400f8ed5
mov qword [rcx + 8], r9
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0xc0], rbp
xor ebp, ebp
mov qword [rcx + 0x10], rbp
mov byte [rcx + 0x18], bpl
xor ecx, ecx
call fcn.1400f9370
test eax, eax
jne 0x1400f8eba
mov rax, qword [0x140a04578]
lea ecx, [rbp + 0x78]
mov qword [rsp + 0xc8], rdi
test rax, rax
je 0x1400f8d42
call rax
jmp 0x1400f8d47
call fcn.140182c38
mov qword [rsi + 0x10], rax
mov edi, 0x34
test rax, rax
jne 0x1400f8d5d
lea ebx, [rax - 0x7d]
jmp 0x1400f8e7f
mov ebx, 1
mov dword [rsp + 0x20], 0xf0000000
mov r9d, ebx
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400f8e5d
mov rcx, qword [rsi]
lea r8, [rsp + 0x40]
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400f8e5d
mov rcx, qword [rsi]
xor edx, edx
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x80], r15
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r12d, 4
mov ebx, ebp
mov r14d, ebp
mov r8d, r12d
mov r15, rbp
lea r13d, [r12 - 1]
nop dword [rax]
mov eax, r8d
lea rdx, [rsp + 0x40]
add rax, r15
lea rcx, [rsp + 0x40]
add rdx, rax
add rcx, r15
call fcn.1400b7810
test eax, eax
mov r8d, edi
cmove ebx, r13d
add r14d, r12d
sub r8d, r14d
add r15, r12
cmp r8d, r12d
cmova r8d, r12d
cmp r14d, 0x30
jb 0x1400f8de0
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
test ebx, ebx
jne 0x1400f8e5d
mov rcx, qword [rsi + 0x10]
lea r8d, [rbx + 0x30]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
lea rdx, [rsp + 0x44]
call fcn.1400f8c20
mov ebx, eax
test eax, eax
je 0x1400f8e7f
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400f8e7b
mov rax, qword [0x140a04568]
test rax, rax
je 0x1400f8e76
call rax
jmp 0x1400f8e7b
call fcn.14017d748
mov qword [rsi + 0x10], rbp
lea rax, [rsp + 0x40]
mov byte [rax], bpl
lea rax, [rax + 1]
add edi, 0xffffffff
jne 0x1400f8e84
mov rdi, qword [rsp + 0xc8]
test ebx, ebx
jne 0x1400f8ea2
mov byte [rsi + 0x18], 1
jmp 0x1400f8ec3
cmp ebx, 3
je 0x1400f8eba
cmp ebx, 1
mov byte [rsi + 0x18], 2
mov eax, 0xffffff39
cmove ebx, eax
mov ebp, ebx
jmp 0x1400f8ec3
mov byte [rsi + 0x18], 3
mov ebp, 0xffffff2f
mov rbx, qword [rsp + 0xb8]
mov eax, ebp
mov rbp, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140167e90
add rsp, 0xa0
pop rsi
ret
Function at 0x1400f8ef0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
push r12
push r13
sub rsp, 0x90
mov rax, qword [0x1409c0280]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x30], r8d
mov rsi, rcx
mov qword [rsp + 0x38], rdx
test rcx, rcx
je 0x1400f90b7
test rdx, rdx
je 0x1400f90b7
cmp r8d, 0x10000
ja 0x1400f90b7
cmp byte [rcx + 0x18], 1
je 0x1400f8f48
mov eax, 0xffffff39
jmp 0x1400f90bc
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x80], rdi
call fcn.1400f85d0
xor ebp, ebp
mov edi, eax
cmp eax, 2
jne 0x1400f9086
mov edi, 1
mov ecx, edi
call fcn.1400f9370
test eax, eax
jne 0x1400f908f
mov r9d, edi
mov qword [rsp + 0xc8], rbx
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea ebx, [rbp + 0x24]
test eax, eax
je 0x1400f906d
mov rcx, qword [rsi]
lea r8, [rsp + 0x40]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400f906d
mov rcx, qword [rsi]
xor edx, edx
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r15
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r8d, 4
lea r13d, [rbp + 3]
mov r12d, r8d
mov edi, ebp
mov r14d, ebp
mov r15d, ebp
mov eax, r8d
lea rdx, [rsp + 0x40]
add rax, r15
lea rcx, [rsp + 0x40]
add rdx, rax
add rcx, r15
call fcn.1400b7810
test eax, eax
mov r8d, ebx
cmove edi, r13d
add r14d, r12d
sub r8d, r14d
add r15, r12
cmp r8d, r12d
cmova r8d, r12d
cmp r14d, 0x20
jb 0x1400f8ff0
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x38]
mov r13d, dword [rsp + 0x30]
test edi, edi
jne 0x1400f906d
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0x44]
mov r8d, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400f8290
mov edi, eax
test eax, eax
jne 0x1400f906d
mov rcx, qword [rsi + 0x10]
mov r8d, r13d
mov rdx, r12
call fcn.1400f85d0
mov edi, eax
lea rax, [rsp + 0x40]
mov byte [rax], bpl
lea rax, [rax + 1]
add ebx, 0xffffffff
jne 0x1400f9072
mov rbx, qword [rsp + 0xc8]
test edi, edi
je 0x1400f90a3
cmp edi, 3
jne 0x1400f909a
mov ebp, 0xffffff2f
mov byte [rsi + 0x18], 3
jmp 0x1400f90a3
mov ebp, 0xffffff39
mov byte [rsi + 0x18], 2
mov rdi, qword [rsp + 0x80]
mov eax, ebp
mov rbp, qword [rsp + 0x88]
jmp 0x1400f90bc
mov eax, 0xffffff53
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140167e90
add rsp, 0x90
pop r13
pop r12
pop rsi
ret
Function at 0x14010eb40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14010eb82
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14010ed20
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x1409c0280]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov r14, rcx
movsxd rcx, edx
mov r12, r9
mov rax, rcx
mov r15, r8
shl rax, 5
lea rbx, [r14 + 0x508]
mov rbp, qword [r14 + rcx*8 + 0x4c0]
add rbx, rax
mov rax, qword [r14 + 0x6c0]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x14010ee28
lea rax, [0x14010ebd0]
cmp qword [r14 + rcx*8 + 0x4e8], rax
jne 0x14010ee28
cmp qword [rbx], 0
je 0x14010edaa
test rdi, rdi
je 0x14010ee28
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.14011e240
cmp eax, 0xffffffff
je 0x14010ee28
test al, 1
je 0x14010ee28
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14010ee07
mov rax, qword [r14]
mov ecx, dword [rax + 0xb88]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [section..data]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x14010ee62
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14010ee28
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x14010eea4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x14010ee71
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x14010eea4
mov dword [rsi], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x14010eea7
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.14013b580
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.14010e7e0
mov rcx, qword [r14]
mov dword [rcx + 0x1258], edi
mov dword [rsi], gethostname
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140167e90
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x558], 0
je 0x14010f33d
call fcn.140108880
test eax, eax
jne 0x14010f363
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x4c0]
cmp rcx, 0xffffffffffffffff
je 0x14010f336
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x14010f336
mov al, 1
add rsp, 0x28
ret
Function at 0x1401111b0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.1401902c4
cdqe
add rsp, 0x28
ret

Function at 0x140111490
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x1401b25f0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1401114ba
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1401b2610]
mov rcx, rbx
mov r14, rax
call fcn.1401874c0
test rax, rax
je 0x14011151d
mov rcx, rbx
test r14, r14
je 0x140111507
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x140111555
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140111555
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140111618
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140111580
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14011160a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14011160a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1401115b0
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x1401115c4
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1401115e0
mov rcx, rdi
test r14, r14
je 0x140111601
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140111607
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.14017d748]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x14011cc10
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1409c0280]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14011cc65
jmp 0x14011ce14
mov qword [rsp + 0x80], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14011cdeb
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14011cdeb
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14011cdeb
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14011cdeb
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14011cdeb
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14011cdeb
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14011cdeb
mov r9, rsi
lea r8, [0x1401d042c]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.14011fa50
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14011cd85
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14011cdeb
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14011cdeb
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.14016b240
test eax, eax
jne 0x14011cdeb
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14011ce0c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140167e90
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140121fc0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor ebp, ebp
mov qword [r9], rbp
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14012215e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14012213e
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14012202e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140122020
inc rbx
jmp 0x140122030
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14012203e
lea r14d, [rax + 0xe]
jmp 0x14012204b
cmp eax, 0x17
jne 0x1401220e4
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x1401220e4
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1401220e4
cmp rax, r14
jb 0x1401220e4
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x1401220f3
mov ecx, dword [rdi]
mov r8, r14
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rsi + 0x30]
mov dword [rax + 0x10], r14d
xor eax, eax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rcx
mov rdx, qword [rdi + 0x20]
call fcn.14016a6b0
test rbx, rbx
je 0x1401220d1
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.14016a6b0
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x1401220e1
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140122010
jmp 0x1401220f9
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
test rcx, rcx
je 0x140122113
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140122139
test rbp, rbp
je 0x140122135
nop dword [rax]
mov rbx, qword [rbp + 0x28]
mov rcx, rbp
call qword [fcn.14017d748]
mov rbp, rbx
test rbx, rbx
jne 0x140122120
xor ebp, ebp
jmp 0x14012214d
test rbp, rbp
jne 0x14012214d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rbp
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
Function at 0x1401258f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.140186620]
mov rdi, rax
test rax, rax
je 0x14012596d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140125998
cmp ebx, esi
je 0x140125998
cmp ebx, 0x8000
ja 0x140125998
cmp ebx, esi
jb 0x140125993
mov edx, ebx
mov rcx, rdi
call qword [fcn.140186620]
mov rdi, rax
test rax, rax
jne 0x140125930
mov rcx, rbp
call qword [fcn.14017d748]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x140125978
mov rcx, rdi
jmp 0x140125970

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1409c0280]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x4c8]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], 0x80
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14012c0ba
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.14010f210
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x14012c0df
lea rdx, str.Error_accept__ing_server_connect
call fcn.14010e7e0
lea eax, [rbx + 0x1f]
jmp 0x14012c158
lea rdx, str.Connection_accepted_from_server_n
call fcn.14010e940
mov edx, 1
mov byte [rdi + 0x682], 0
mov rcx, rbx
mov qword [rdi + 0x4c8], rbx
call fcn.14011ce40
mov byte [rdi + 0x695], 1
cmp qword [rsi + 0x710], 0
je 0x14012c156
mov dl, 1
mov rcx, rsi
call fcn.1400fefb0
mov rcx, qword [rsi + 0x718]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x710]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.1400fefb0
test ebx, ebx
je 0x14012c156
mov rcx, rdi
call fcn.14012c680
mov eax, Ordinal_45
jmp 0x14012c158
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140167e90
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret