joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800840c0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x1800840f5
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.18006c590
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180084264
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1800841dc
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180084253
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x180084219
mov r10, qword [rdx]
cmp r10, rax
je 0x180084213
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180084253
cmp r9, rdx
je 0x18008422f
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x180084275
cmp r9, rdx
jne 0x180084220
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x180084160
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180084253
Function at 0x180084480
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x1800844e1
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1800844a0
mov ecx, dword [r10]
jmp 0x1800845ca
cmp ecx, 0x4e0
jb 0x1800845ca
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x180084500
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x180084550
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x180092150
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm7
mov rax, qword [0x1801580f8]
xor rax, rsp
mov qword [rsp + 0x50], rax
movaps xmm7, xmm1
movaps xmm6, xmm0
mov ecx, dword [0x180159554]
mov rax, qword gs:[0x58]
mov r14d, 4
mov rdi, qword [rax + rcx*8]
mov eax, dword [rdi + r14]
cmp dword [0x18015a7a0], eax
jle 0x18009224f
lea rcx, [0x18015a7a0]
call fcn.1800f5940
cmp dword [0x18015a7a0], 0xffffffff
jne 0x18009224f
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, gethostname
lea rdx, str.Function_Engine.KismetMathLibrary.RandomFloatInRange
lea rcx, [rsp + 0x20]
call fcn.180034e50
nop
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.180071700
mov qword [0x18015a848], rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x180092243
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009223d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009223d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800f5740
nop
lea rcx, [0x18015a7a0]
call fcn.1800f58e0
movss dword [rsp + 0x40], xmm6
movss dword [rsp + 0x44], xmm7
mov rcx, qword [0x18015a848]
mov ebx, dword [rcx + 0x98]
mov eax, ebx
bts eax, 0xa
mov dword [rcx + 0x98], eax
mov eax, dword [rdi + r14]
cmp dword [0x18015a6c0], eax
jle 0x1800922ad
lea rcx, [0x18015a6c0]
call fcn.1800f5940
cmp dword [0x18015a6c0], 0xffffffff
jne 0x1800922ad
call fcn.18008f2b0
mov qword [0x18015a628], rax
lea rcx, [0x18015a6c0]
call fcn.1800f58e0
mov rsi, qword [0x18015a848]
mov rbp, qword [0x18015a628]
mov eax, dword [rdi + r14]
cmp dword [0x180159da8], eax
jle 0x1800922fd
lea rcx, [0x180159da8]
call fcn.1800f5940
cmp dword [0x180159da8], 0xffffffff
jne 0x1800922fd
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add rax, 0x22f2990
mov qword [0x180159c18], rax
lea rcx, [0x180159da8]
call fcn.1800f58e0
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rbp
call qword [0x180159c18]
mov rax, qword [0x18015a848]
mov dword [rax + 0x98], ebx
movss xmm0, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800f5650
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x60]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180096860
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180096a80
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180096967
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800968c4
mov rax, qword [0x180158008]
cmp qword [rsp + 0x20], rax
ja 0x1800968c4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180096886
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800968f3
jmp 0x180096967
cmp dword [rsp + 0x50], 0x10000
jne 0x18009694a
cmp qword [rsp + 0x48], 0x10000
jb 0x18009694a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180096938
mov rax, qword [rsp + 0x28]
jmp 0x180096969
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180096962
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180096a80
mov qword [rsp + 0x20], rax
jmp 0x180096886
xor eax, eax
add rsp, 0x68
ret

Function at 0x180096970
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180096ac0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180096a73
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800969cb
mov rax, qword [0x180158008]
cmp qword [rsp + 0x20], rax
ja 0x1800969cb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18009698d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800969fa
jmp 0x180096a73
cmp dword [rsp + 0x50], 0x10000
jne 0x180096a51
cmp qword [rsp + 0x48], 0x10000
jb 0x180096a51
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180096a3f
mov rax, qword [rsp + 0x28]
jmp 0x180096a75
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180096a6e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180096ac0
mov qword [rsp + 0x20], rax
jmp 0x18009698d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180096b10
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800970a0
mov qword [rsp + 0x28], 0
cmp qword [0x180158de8], 0
jne 0x180096b58
cmp qword [0x180158de0], 0
je 0x180096b58
mov rax, qword [0x180158de0]
mov qword [0x180158de8], rax
cmp qword [0x180158de8], 0
je 0x180096bfe
mov rax, qword [0x180158de8]
cmp qword [rax + 0x10], 0
je 0x180096bfe
mov rax, qword [0x180158de8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180096bfe
mov rax, qword [0x180158de8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180096bfe
mov rax, qword [0x180158de8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180096bc4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180096bcb
xor eax, eax
jmp 0x180096d79
mov rax, qword [0x180158de8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180096d79
mov rax, qword [0x180158de0]
mov qword [0x180158de8], rax
jmp 0x180096c20
mov rax, qword [0x180158de8]
mov rax, qword [rax + 8]
mov qword [0x180158de8], rax
cmp qword [0x180158de8], 0
je 0x180096c6d
cmp qword [0x180158de8], 0
je 0x180096c6b
mov rax, qword [0x180158de8]
cmp qword [rax + 0x10], 0
je 0x180096c6b
mov rax, qword [0x180158de8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180096c6b
mov rax, qword [0x180158de8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180096c6b
jmp 0x180096b9c
jmp 0x180096c0e
mov rcx, qword [rsp + 0x60]
call fcn.180098cd0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180096d80
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180096d77
mov rax, qword [rsp + 0x48]
mov qword [0x180158de8], rax
mov rax, qword [0x180158de8]
mov dword [rax], 0x52727464
mov rax, qword [0x180158de8]
mov qword [rax + 0x10], 0
mov rax, qword [0x180158de8]
mov rcx, qword [0x180158de0]
mov qword [rax + 8], rcx
mov rax, qword [0x180158de8]
mov qword [0x180158de0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180158de8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180096d28
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180096d62
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180096d1e
mov rax, qword [0x180158de8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180096b9c
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800b0310
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0xb36], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x1800b03c6
cmp qword [rcx + 0x278], 0
je 0x1800b037b
mov dl, 1
call fcn.18009df00
mov rax, qword [rdi + 0x1d8]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x278]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.18009df00
mov eax, ebx
jmp 0x1800b03c8
mov edx, ebx
test ebx, ebx
je 0x1800b038b
sub edx, 1
je 0x1800b038b
cmp edx, 1
jne 0x1800b03c6
mov r9, qword [rdi + 0x1d0]
lea rax, [0x1800ffba0]
mov edx, 2
lea rcx, [rbx + rbx*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1800b03e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
sub rsp, 0x158
mov rax, qword [0x1801580f8]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xb36], 0
mov rbx, rcx
jne 0x1800b0424
cmp qword [rcx + 0x1e0], 0
je 0x1800b04f0
mov r8, rdx
mov qword [rsp + 0x150], rdi
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1800c45d0
mov rdx, qword [rbx + 0x1e0]
movsxd rdi, eax
test rdx, rdx
je 0x1800b0488
cmp byte [rbx + 0x12ec], 0
jne 0x1800b0488
lea rcx, [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1800b0470
mov byte [rbx + 0x12ec], 1
mov byte [rsp + rdi + 0x30], 0xa
inc rdi
cmp rdi, 0x102
jae 0x1800b0542
cmp byte [rbx + 0xb36], 0
mov byte [rsp + rdi + 0x30], 0
je 0x1800b04e8
cmp qword [rbx + 0x278], 0
je 0x1800b050a
mov dl, 1
mov rcx, rbx
call fcn.18009df00
mov rax, qword [rbx + 0x1d8]
lea r8, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [rbx + 0x278]
xor edx, edx
mov rcx, rbx
call fcn.18009df00
mov rdi, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800f5650
add rsp, 0x158
pop rsi
pop rbx
ret
mov r9, qword [rbx + 0x1d0]
lea rcx, [0x1800ffba0]
mov edx, 2
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rbx + 0x1d0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
jmp 0x1800b04e8
call fcn.1800f5b58
int3
Function at 0x1800b0a60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
xor edi, edi
mov dword [rsp + 0x50], 0
mov rsi, rcx
lea rcx, str.CURL_SMALLSENDS
mov rbx, r9
mov r14, r8
cmp rdx, qword [rbp + 0x1f0]
sete dil
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x1800b0ac4
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0xa]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov eax, eax
test rax, rax
je 0x1800b0ac4
cmp rbx, rax
cmovb rax, rbx
mov rbx, rax
lea rcx, [rsp + 0x50]
mov eax, edi
mov qword [rsp + 0x20], rcx
mov r9, rbx
mov rcx, rsi
mov r8, r14
mov edx, edi
call qword [rbp + rax*8 + 0x220]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
test rax, rax
jns 0x1800b0b03
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1800b0b07
cmp eax, 0x51
jne 0x1800b0b0c
mov qword [rcx], 0
xor eax, eax
jmp 0x1800b0b0c
mov eax, gethostname
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1801580f8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
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 0x1800b1283
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1800c60d0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1800b03e0
jmp 0x1800b134b
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x1800b1320
sub edx, 1
je 0x1800b12ca
cmp edx, 0x15
jne 0x1800b12d1
lea rdx, [rsp + 0x38]
mov r8, rbx
mov r9d, 0x2e
call fcn.1800e2790
test rax, rax
je 0x1800b12d1
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x1800b134b
lea rdx, [rsp + 0x34]
jmp 0x1800b12a2
mov byte [rbx], 0
mov dword [rdi], 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0x273f
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ebx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1800c60d0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1800b03e0
jmp 0x1800b134b
cmp dword [rsp + 0x20], 2
jle 0x1800b1342
lea r9, [rsp + 0x32]
mov edx, 0x2e
lea r8, [0x18012dff8]
mov rcx, rbx
call fcn.1800c44b0
jmp 0x1800b1345
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1800f5650
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800b1b90
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x180158f00]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1800b1bf4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1800e2d00
test al, al
je 0x1800b1be8
mov dword [0x180158f00], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x180158f00], 1
jmp 0x1800b1bf9
cmp eax, 2
je 0x1800b1c4b
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 0x1800b1c2a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1800b1c4b
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 0x1800b3030
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret
Function at 0x1800b5b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp byte [0x180158f21], 0
mov esi, r8d
mov rdi, qword [rsp + 0x68]
je 0x1800b5bf9
test rdi, rdi
je 0x1800b5bf9
mov eax, dword [0x180158f24]
test eax, eax
jne 0x1800b5be7
mov r8d, dword [rsp + 0x60]
lea rsi, str.recv
mov r9, rsi
lea rcx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rdx, rdi
call fcn.1800b5860
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9d, dword [rsp + 0x60]
lea rdx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r8, rdi
call fcn.1800c4480
mov rcx, qword [0x180158f18]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], ntohs
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
dec eax
mov dword [0x180158f24], eax
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
jmp 0x1800b5c06
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test rdi, rdi
je 0x1800b5c21
mov r8d, dword [rsp + 0x60]
lea rcx, str.RECV__s:_d_recv__lu____ld_n
mov r9d, esi
mov dword [rsp + 0x20], ebx
mov rdx, rdi
call fcn.1800b5860
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp byte [0x180158f21], 0
mov esi, r8d
mov rdi, qword [rsp + 0x68]
je 0x1800b5d59
test rdi, rdi
je 0x1800b5d59
mov eax, dword [0x180158f24]
test eax, eax
jne 0x1800b5d47
mov r8d, dword [rsp + 0x60]
lea rsi, str.send
mov r9, rsi
lea rcx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rdx, rdi
call fcn.1800b5860
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9d, dword [rsp + 0x60]
lea rdx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r8, rdi
call fcn.1800c4480
mov rcx, qword [0x180158f18]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], ntohs
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
dec eax
mov dword [0x180158f24], eax
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
jmp 0x1800b5d66
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test rdi, rdi
je 0x1800b5d81
mov r8d, dword [rsp + 0x60]
lea rcx, str.SEND__s:_d_send__lu____ld_n
mov r9d, esi
mov dword [rsp + 0x20], ebx
mov rdx, rdi
call fcn.1800b5860
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1800bbd50
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x1800bbd65
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.1800bb8a0