joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016c0dc
Capabilities:
Get hostname

Disassembly:
jmp 0x14029fee0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov edx, ebx
mov byte [rcx], 0
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x14029ff19
lea edx, [rax + 0x2e]
mov rcx, rdi
call fcn.14016c6e5
test rax, rax
je 0x14029ff17
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
jmp 0x140255de0
sub rsp, 0x28
cmp byte [rcx + 0x2f0], 0
je 0x140255dfd
call fcn.140175407
test eax, eax
jne 0x140255e23
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x258]
cmp rcx, 0xffffffffffffffff
je 0x140255df6
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x140255df6
mov al, 1
add rsp, 0x28
ret

Function at 0x14016ca1e
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
jmp 0x1402a50b0
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1405033c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov dword [rsp + 0x20], 0xf0000000
mov rsi, r8
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov qword [rsp + 0x40], rbp
mov rbx, rcx
xor r8d, r8d
lea r9d, [rbp + 1]
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1402a5120
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rcx, rsi
call fcn.14016ebb1
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x20], ebp
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x10
jne 0x1402a517e
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rbx
mov dword [rsp + 0x20], ebp
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1402a518e
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1402a51a0
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401703e9
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14016d83d
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1402eec20
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x1402eec48
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x1402eec92
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x1402eec3d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x14016db1c
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140290210
sub rsp, 0x28
xor eax, eax
lea r8, [rsp + 0x38]
test edx, edx
mov edx, 0x8004667e
setne al
mov dword [rsp + 0x38], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret

Function at 0x14016e29c
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
jmp 0x1402a1340
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov r8, rcx
mov rbx, rcx
mov rdx, rdi
mov rcx, rsi
call fcn.1402a15e0
lea r8, [rbx + 7]
mov rcx, rsi
lea rdx, [rdi + 8]
call fcn.1402a15e0
lea r8, [rbx + 0xe]
mov rcx, rsi
lea rdx, [rdi + 0x10]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1402a15e0
Function at 0x14016f17e
Capabilities:
Get geographical location

Disassembly:
jmp 0x14031b060
push rdi
sub rsp, 0x30
call fcn.1401711c7
mov ecx, 8
imul rcx, rcx, 5
mov rax, qword [rax + rcx]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14031b08c
mov eax, 2
jmp 0x14031b0f9
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov r9d, 2
lea r8, [rsp + 0x24]
mov edx, Ordinal_35
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
nop
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x24]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x30
je 0x14031b0e2
cmp dword [rsp + 0x20], 0x31
je 0x14031b0e9
cmp dword [rsp + 0x20], 0x32
je 0x14031b0f0
jmp 0x14031b0f7
mov eax, 2
jmp 0x14031b0f9
mov eax, 1
jmp 0x14031b0f9
mov eax, 3
jmp 0x14031b0f9
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14016f8d1
Capabilities:
Query environment variable

Disassembly:
jmp 0x14026fc60
mov eax, 0x1038
call fcn.14016d973
sub rsp, rax
mov rax, qword [0x1405033c0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
call fcn.14016eeae
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14026fccc
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14026fccc
lea rcx, [rsp + 0x20]
call qword [case.0x140242fb9.0]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1401703e9
add rsp, 0x1038
ret
xor eax, eax
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1401703e9
add rsp, 0x1038
ret

Function at 0x14016fc28
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x14020dda0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.140174d6d
nop
mov eax, dword [rbp + 0x120]
xor eax, 0xffffffff
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 4
jb 0x14020dedd
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x28]
movzx ecx, byte [rdx + rcx]
mov edx, dword [rbp + 4]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140481790]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rbp + 0x28]
movzx ecx, byte [rdx + rcx]
mov edx, dword [rbp + 4]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140481790]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rbp + 0x28]
movzx ecx, byte [rdx + rcx]
mov edx, dword [rbp + 4]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140481790]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rbp + 0x28]
movzx ecx, byte [rdx + rcx]
mov edx, dword [rbp + 4]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140481790]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x28]
add rax, 4
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
sub rax, 4
mov qword [rbp + 0x130], rax
jmp 0x14020dde0
cmp qword [rbp + 0x130], 0
je 0x14020df38
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x28]
movzx ecx, byte [rdx + rcx]
mov edx, dword [rbp + 4]
xor edx, ecx
mov ecx, edx
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140481790]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
dec rax
mov qword [rbp + 0x130], rax
jmp 0x14020dedd
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14016ff20
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1404529d0
mov rax, rcx
neg rcx
test rax, 7
je 0x1404529ed
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140452a48
test al, 7
jne 0x1404529e0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140452a01
mov rdx, qword [rax - 8]
test dl, dl
je 0x140452a72
test dh, dh
je 0x140452a6c
shr rdx, 0x10
test dl, dl
je 0x140452a66
test dh, dh
je 0x140452a60
shr rdx, 0x10
test dl, dl
je 0x140452a5a
test dh, dh
je 0x140452a54
shr edx, 0x10
test dl, dl
je 0x140452a4e
test dh, dh
jne 0x140452a01
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x14016ff89
Capabilities:
Query environment variable

Disassembly:
jmp 0x140434760
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1404342e0
lea rcx, [rsp + 0x20]
call fcn.140434330
movzx eax, al
test eax, eax
jne 0x1404347a5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140434310
mov rax, qword [rsp + 0x40]
jmp 0x14043489f
lea rcx, [rsp + 0x20]
call fcn.140434430
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1404343d0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.14017059c
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14016f499
lea rcx, [rsp + 0x28]
call fcn.140170db7
movzx eax, al
test eax, eax
jne 0x14043483f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.14017308f
lea rcx, [rsp + 0x20]
call fcn.140434310
mov rax, qword [rsp + 0x50]
jmp 0x14043489f
lea rcx, [rsp + 0x20]
call fcn.140434430
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.140174bba
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.140170452
lea rcx, [rsp + 0x28]
call fcn.140175bbe
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.14017308f
lea rcx, [rsp + 0x20]
call fcn.140434310
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x14017047f
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x140255220
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x1405033c0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, qword [rsp + 0x120]
mov rsi, rcx
movsxd rcx, edx
xor r13d, r13d
mov r12, r9
mov r15, r8
mov rax, qword [rsi + 0x430]
mov rbp, qword [rsi + rcx*8 + 0x258]
lea rbx, [rcx + 0x15]
shl rbx, 5
add rbx, rsi
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x140255324
lea rax, [0x140171e83]
cmp qword [rsi + rcx*8 + 0x280], rax
jne 0x140255324
cmp qword [rbx], r13
je 0x1402552a8
test rdi, rdi
je 0x140255324
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.14017566e
cmp eax, 0xffffffff
je 0x140255324
test al, 1
je 0x140255324
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140255303
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb68]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [fcn.140171393]
mov rdi, qword [rbx + 8]
mov rcx, rax
mov qword [rbx], rax
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rax, rax
jne 0x140255303
mov qword [rbx + 8], r13
jmp 0x140255324
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 0x140255324
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 rdi, eax
mov dword [r14], r13d
cmp rdi, 0xffffffffffffffff
jne 0x140255391
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14025535d
mov dword [r14], 0x51
mov rax, r13
jmp 0x140255394
mov r8d, 0x80
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.140172dec
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1401759e8
mov rcx, qword [rsi]
mov dword [rcx + 0x1140], ebx
mov dword [r14], Ordinal_60
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401703e9
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
jmp 0x140254fe0
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 0x14025501b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, Ordinal_60
mov edx, 0x51
cmp eax, 0x2733
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 0x140170722
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
jmp 0x1402a53c0
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.140171393]
mov rdi, rax
test rax, rax
jne 0x1402a5402
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1402a5449
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1402a54a2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1402a5460
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1402a54e3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1404956a7]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1404956a8]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1402a54b0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14017081c
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140341b70
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1403414f0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140341baf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140533020]
jmp 0x140341bb9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140170c5e
Capabilities:
Query environment variable

Disassembly:
jmp 0x1404344b0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1404342e0
lea rcx, [rsp + 0x40]
call fcn.140434460
movzx eax, al
test eax, eax
jne 0x1404344f8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140434310
mov rax, qword [rsp + 0x70]
jmp 0x1404346c9
lea rcx, [rsp + 0x40]
call fcn.140434430
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1404343d0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140434430
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140172a4a
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14043459e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140434310
mov rax, qword [rsp + 0x80]
jmp 0x1404346c9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14017059c
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1401701b9
lea rcx, [rsp + 0x48]
call fcn.14016f7e6
movzx eax, al
test eax, eax
jne 0x140434605
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14016d5c7
lea rcx, [rsp + 0x40]
call fcn.140434310
mov rax, qword [rsp + 0x88]
jmp 0x1404346c9
lea rcx, [rsp + 0x48]
call fcn.1401714d8
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140434430
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140172a4a
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14043469b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14016d5c7
lea rcx, [rsp + 0x40]
call fcn.140434310
mov rax, qword [rsp + 0xa0]
jmp 0x1404346c9
lea rcx, [rsp + 0x48]
call fcn.140170164
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14016d5c7
lea rcx, [rsp + 0x40]
call fcn.140434310
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140170c90
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140341aa0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140341470
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140341ae1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140533020]
jmp 0x140341ae7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140170dbc
Capabilities:
Get geographical location

Disassembly:
jmp 0x140410cf0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14040fb90
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140410d4c
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call fcn.140175b82
jmp 0x140410d6e
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14016f714
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140170de9
Capabilities:
Terminate process

Disassembly:
jmp 0x14031db60
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x1401713cf
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:
jmp 0x14026a7c0
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1405033c0]
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 0x14026a815
jmp 0x14026a9c4
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 0x14026a99b
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14026a99b
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14026a99b
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14026a99b
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 0x14026a99b
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14026a99b
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 0x14026a99b
mov r9, rsi
lea r8, [0x14047c72c]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.14016e6bb
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14026a935
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 0x14026a99b
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 0x14026a99b
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.14016f4df
test eax, eax
jne 0x14026a99b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14026a9bc
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.1401703e9
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140171424
Capabilities:
Print debug messages

Disassembly:
jmp 0x14043edc0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1405033c0]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14043ede9
jmp 0x14043ee6e
mov rcx, qword [rbp + 0x30]
call fcn.14016ff20
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14043ee02
jmp 0x14043ee6e
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14043ee1f
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14016d973
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.14016e418
test eax, eax
jne 0x14043ee6e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1401703e9
lea rsp, [rbp + 0x20]
pop rbp
ret