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

Disassembly:
push rbx
push rsi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
jbe 0x18007cff5
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 + 0x58], rdi
mov rdi, qword [rsi + 8]
or rax, rbx
bsr rcx, rax
mov r8, rdi
mov qword [rsp + 0x20], r14
inc ecx
shl rbx, cl
lea rcx, [rsi + 0x18]
lea rdx, [rbx + rbx]
call fcn.18006bfa0
mov qword [rsi + 0x38], rbx
lea rax, [rbx - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
cmp rcx, rdi
je 0x18007d164
mov qword [rsp + 0x50], rbp
mov rax, rcx
movabs rbp, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
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, rbx
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rbx
xor r9, rdx
imul r9, rbx
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rdi
jne 0x18007d0dc
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18007d153
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x18007d119
mov r10, qword [rdx]
cmp r10, rax
je 0x18007d113
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 0x18007d153
cmp r9, rdx
je 0x18007d12f
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x18007d175
cmp r9, rdx
jne 0x18007d120
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, rdi
jne 0x18007d060
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
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 0x18007d153
Function at 0x1800835a0
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 0x1800835d5
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.18006bfa0
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 0x180083744
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x14]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x15]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x16]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x17]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1800836b9
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180083733
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x1800836f6
mov r10, qword [rdx]
cmp r10, rax
je 0x1800836f0
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 0x180083733
cmp r9, rdx
je 0x18008370f
nop dword [rax + rax]
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x180083755
cmp r9, rdx
jne 0x180083700
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 0x180083640
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 0x180083733
Function at 0x180083810
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x180083871
lea r8, [r9 + 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 r10, 1
jne 0x180083830
mov ecx, dword [r9]
jmp 0x18008395b
cmp ecx, 0x4e0
jb 0x18008395b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x180083890
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1800838e0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 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 0x180091da0
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 [0x180159100]
xor rax, rsp
mov qword [rsp + 0x50], rax
movaps xmm7, xmm1
movaps xmm6, xmm0
mov ecx, dword [0x18015a570]
mov rax, qword gs:[0x58]
mov r14d, 4
mov rdi, qword [rax + rcx*8]
mov eax, dword [rdi + r14]
cmp dword [0x18015b770], eax
jle 0x180091e9f
lea rcx, [0x18015b770]
call fcn.1800f5190
cmp dword [0x18015b770], 0xffffffff
jne 0x180091e9f
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.180035010
nop
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.180071130
mov qword [0x18015b808], rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x180091e93
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180091e8d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180091e8d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800f5070
nop
lea rcx, [0x18015b770]
call fcn.1800f5124
movss dword [rsp + 0x40], xmm6
movss dword [rsp + 0x44], xmm7
mov rcx, qword [0x18015b808]
mov ebx, dword [rcx + 0x98]
mov eax, ebx
bts eax, 0xa
mov dword [rcx + 0x98], eax
mov eax, dword [rdi + r14]
cmp dword [0x18015b6a0], eax
jle 0x180091efd
lea rcx, [0x18015b6a0]
call fcn.1800f5190
cmp dword [0x18015b6a0], 0xffffffff
jne 0x180091efd
call fcn.18008f0f0
mov qword [0x18015b620], rax
lea rcx, [0x18015b6a0]
call fcn.1800f5124
mov rsi, qword [0x18015b808]
mov rbp, qword [0x18015b620]
mov eax, dword [rdi + r14]
cmp dword [0x18015ad80], eax
jle 0x180091f4d
lea rcx, [0x18015ad80]
call fcn.1800f5190
cmp dword [0x18015ad80], 0xffffffff
jne 0x180091f4d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add rax, 0x22f2990
mov qword [0x18015abf0], rax
lea rcx, [0x18015ad80]
call fcn.1800f5124
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rbp
call qword [0x18015abf0]
mov rax, qword [0x18015b808]
mov dword [rax + 0x98], ebx
movss xmm0, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800f4f80
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 0x180096190
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.1800963b0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180096297
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800961f4
mov rax, qword [0x180159008]
cmp qword [rsp + 0x20], rax
ja 0x1800961f4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800961b6
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 0x180096223
jmp 0x180096297
cmp dword [rsp + 0x50], 0x10000
jne 0x18009627a
cmp qword [rsp + 0x48], 0x10000
jb 0x18009627a
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 0x180096268
mov rax, qword [rsp + 0x28]
jmp 0x180096299
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180096292
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800963b0
mov qword [rsp + 0x20], rax
jmp 0x1800961b6
xor eax, eax
add rsp, 0x68
ret

Function at 0x1800962a0
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.1800963f0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800963a3
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800962fb
mov rax, qword [0x180159008]
cmp qword [rsp + 0x20], rax
ja 0x1800962fb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800962bd
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 0x18009632a
jmp 0x1800963a3
cmp dword [rsp + 0x50], 0x10000
jne 0x180096381
cmp qword [rsp + 0x48], 0x10000
jb 0x180096381
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 0x18009636f
mov rax, qword [rsp + 0x28]
jmp 0x1800963a5
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18009639e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800963f0
mov qword [rsp + 0x20], rax
jmp 0x1800962bd
xor eax, eax
add rsp, 0x68
ret
Function at 0x180096440
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.1800969d0
mov qword [rsp + 0x28], 0
cmp qword [0x180159e38], 0
jne 0x180096488
cmp qword [0x180159e30], 0
je 0x180096488
mov rax, qword [0x180159e30]
mov qword [0x180159e38], rax
cmp qword [0x180159e38], 0
je 0x18009652e
mov rax, qword [0x180159e38]
cmp qword [rax + 0x10], 0
je 0x18009652e
mov rax, qword [0x180159e38]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18009652e
mov rax, qword [0x180159e38]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18009652e
mov rax, qword [0x180159e38]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800964f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800964fb
xor eax, eax
jmp 0x1800966a9
mov rax, qword [0x180159e38]
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 0x1800966a9
mov rax, qword [0x180159e30]
mov qword [0x180159e38], rax
jmp 0x180096550
mov rax, qword [0x180159e38]
mov rax, qword [rax + 8]
mov qword [0x180159e38], rax
cmp qword [0x180159e38], 0
je 0x18009659d
cmp qword [0x180159e38], 0
je 0x18009659b
mov rax, qword [0x180159e38]
cmp qword [rax + 0x10], 0
je 0x18009659b
mov rax, qword [0x180159e38]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18009659b
mov rax, qword [0x180159e38]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18009659b
jmp 0x1800964cc
jmp 0x18009653e
mov rcx, qword [rsp + 0x60]
call fcn.180098600
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.1800966b0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1800966a7
mov rax, qword [rsp + 0x48]
mov qword [0x180159e38], rax
mov rax, qword [0x180159e38]
mov dword [rax], 0x52727464
mov rax, qword [0x180159e38]
mov qword [rax + 0x10], 0
mov rax, qword [0x180159e38]
mov rcx, qword [0x180159e30]
mov qword [rax + 8], rcx
mov rax, qword [0x180159e38]
mov qword [0x180159e30], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180159e38]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180096658
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180096692
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 0x18009664e
mov rax, qword [0x180159e38]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800964cc
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800afc40
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 0x1800afcf6
cmp qword [rcx + 0x278], 0
je 0x1800afcab
mov dl, 1
call fcn.18009d830
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.18009d830
mov eax, ebx
jmp 0x1800afcf8
mov edx, ebx
test ebx, ebx
je 0x1800afcbb
sub edx, 1
je 0x1800afcbb
cmp edx, 1
jne 0x1800afcf6
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 0x1800afd10
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 [0x180159100]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xb36], 0
mov rbx, rcx
jne 0x1800afd54
cmp qword [rcx + 0x1e0], 0
je 0x1800afe20
mov r8, rdx
mov qword [rsp + 0x150], rdi
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1800c3f00
mov rdx, qword [rbx + 0x1e0]
movsxd rdi, eax
test rdx, rdx
je 0x1800afdb8
cmp byte [rbx + 0x12ec], 0
jne 0x1800afdb8
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 0x1800afda0
mov byte [rbx + 0x12ec], 1
mov byte [rsp + rdi + 0x30], 0xa
inc rdi
cmp rdi, 0x102
jae 0x1800afe72
cmp byte [rbx + 0xb36], 0
mov byte [rsp + rdi + 0x30], 0
je 0x1800afe18
cmp qword [rbx + 0x278], 0
je 0x1800afe3a
mov dl, 1
mov rcx, rbx
call fcn.18009d830
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.18009d830
mov rdi, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800f4f80
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 0x1800afe18
call fcn.1800f5310
int3
Function at 0x1800b0390
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 0x1800b03f4
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 0x1800b03f4
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 0x1800b0433
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1800b0437
cmp eax, 0x51
jne 0x1800b043c
mov qword [rcx], 0
xor eax, eax
jmp 0x1800b043c
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 0x1800b0b00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x180159100]
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 0x1800b0bb3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1800c5a00
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1800afd10
jmp 0x1800b0c7b
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x1800b0c50
sub edx, 1
je 0x1800b0bfa
cmp edx, 0x15
jne 0x1800b0c01
lea rdx, [rsp + 0x38]
mov r8, rbx
mov r9d, 0x2e
call fcn.1800e20c0
test rax, rax
je 0x1800b0c01
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x1800b0c7b
lea rdx, [rsp + 0x34]
jmp 0x1800b0bd2
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.1800c5a00
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1800afd10
jmp 0x1800b0c7b
cmp dword [rsp + 0x20], 2
jle 0x1800b0c72
lea r9, [rsp + 0x32]
mov edx, 0x2e
lea r8, [0x18012d638]
mov rcx, rbx
call fcn.1800c3de0
jmp 0x1800b0c75
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1800f4f80
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800b14c0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x180159f50]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1800b1524
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1800e2630
test al, al
je 0x1800b1518
mov dword [0x180159f50], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x180159f50], 1
jmp 0x1800b1529
cmp eax, 2
je 0x1800b157b
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 0x1800b155a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1800b157b
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 0x1800b2960
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