joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007aa3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
cmp qword [rdx], 0
je 0x140007ae6
lea rax, [rdx + 8]
cmp qword [rdx + 0x38], 0xffffffffffffffff
mov r8, qword [rdx + 0x48]
mov r9, qword [rdx + 0x50]
mov r10, qword [rdx + 0x58]
mov rdx, qword [rdx + 0x60]
je 0x140007bd5
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x30], 0
jmp 0x140007be4
mov r10b, byte [rdx + 0x1a]
mov r9, qword [rdx + 8]
mov r11, qword [rdx + 0x48]
mov rax, qword [rdx + 0x50]
mov bl, byte [rdx + 0x18]
xor r8d, r8d
test r10b, r10b
jne 0x140007c0c
mov esi, ebx
xor sil, 1
mov byte [rdx + 0x18], sil
test r9, r9
je 0x140007b2b
cmp r9, rax
jae 0x140007b25
cmp byte [r11 + r9], 0xbf
jg 0x140007b2b
jmp 0x140007c1a
jne 0x140007c1a
cmp r9, rax
je 0x140007bee
movzx esi, byte [r11 + r9]
test sil, sil
jns 0x140007b92
mov edi, esi
and edi, 0x1f
movzx r14d, byte [r11 + r9 + 1]
and r14d, 0x3f
cmp sil, 0xdf
jbe 0x140007b81
movzx ebp, byte [r11 + r9 + 2]
shl r14d, 6
and ebp, 0x3f
or ebp, r14d
cmp sil, 0xf0
jb 0x140007b8b
movzx esi, byte [r11 + r9 + 3]
and edi, 7
shl edi, 0x12
shl ebp, 6
and esi, 0x3f
or esi, ebp
or esi, edi
jmp 0x140007b92
shl edi, 6
or edi, r14d
mov esi, edi
jmp 0x140007b92
shl edi, 0xc
or ebp, edi
mov esi, ebp
test bl, bl
jne 0x140007bfb
cmp esi, 0x110000
je 0x140007bf2
mov edi, 1
cmp esi, 0x80
jb 0x140007bc7
mov edi, 2
cmp esi, 0x800
jb 0x140007bc7
cmp esi, 0x10000
mov edi, 4
sbb rdi, 0
add r9, rdi
mov qword [rdx + 8], r9
mov bl, 1
jmp 0x140007afc
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x30], 1
mov rdx, rax
call fcn.140003568
jmp 0x140007c0f
test bl, bl
jne 0x140007bfe
mov byte [rdx + 0x1a], 1
xor r8d, r8d
jmp 0x140007c0c
mov rax, r9
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov r8d, 1
mov qword [rcx], r8
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
ud2
Function at 0x14001b0c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x140020ecc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
mov esi, ecx
shr esi, 8
lea r8, [rdx + r8*2]
xor edi, edi
cmp rdx, r8
je 0x140020f48
lea rbx, [rdx + 2]
movzx r15d, byte [rdx + 1]
lea r14, [rdi + r15]
cmp byte [rdx], sil
jne 0x140020f28
cmp rdi, r14
ja 0x140020f85
cmp r14, rax
ja 0x140020f85
add rdi, r9
xor edx, edx
cmp r15, rdx
je 0x140020f32
lea r12, [rdx + 1]
cmp byte [rdi + rdx], cl
mov rdx, r12
jne 0x140020f15
jmp 0x140020f3a
mov rdx, rbx
mov rdi, r14
jbe 0x140020eef
jmp 0x140020f48
mov rdx, rbx
mov rdi, r14
jmp 0x140020eef
xor eax, eax
and al, 1
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx ecx, cx
add r10, r11
mov al, 1
cmp r11, r10
je 0x140020f3c
lea r8, [r11 + 1]
movzx edx, byte [r11]
test dl, dl
js 0x140020f66
mov r11, r8
jmp 0x140020f7d
cmp r8, r10
je 0x140020f85
and edx, 0x7f
shl edx, 8
movzx r8d, byte [r11 + 1]
add r11, 2
or edx, r8d
sub ecx, edx
js 0x140020f3c
xor al, 1
jmp 0x140020f50
ud2

Function at 0x140022c49
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
lea rcx, [0x140048020]
call fcn.140022c80
mov ecx, eax
add rsp, 0x28
jmp fcn.140045884

Function at 0x140022c64
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.140022c80
mov ecx, eax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14004588c

Function at 0x140022c80
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x14003e812
dec eax
ret
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x14003e889
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x14003e8d0
cmp dword [rsp + 0x2c], 0
je 0x14003e8b1
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14003e8c0
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140094168]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140094168], rsi
jne 0x14003e864
mov byte [0x140094160], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x14003e8b6
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14003e8d0
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x14003e8b6
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x14003e8b6
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2
Function at 0x14002a882
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, r9
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov rdx, qword [rdx + 8]
mov r8d, dword [r14 + 0x10]
lea r15, [rsp + 0x20]
mov rcx, r15
call fcn.14002a9ac
mov r8d, dword [r15 + 8]
cmp r8d, 0x3b9aca01
jne 0x14002a8cd
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14002a927
mov rdx, qword [rsp + 0x20]
mov r14, qword [r14]
mov rcx, r14
mov r9d, 0x1006
call fcn.140041b51
mov rcx, rax
call fcn.14002aa0a
mov r8d, 0x7fffffff
cmp rbx, r8
cmovb r8, rbx
mov rcx, r14
mov rdx, rdi
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x14002a910
movsxd rdi, eax
jmp 0x14002a91e
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14002a933
xor edi, edi
xor eax, eax
mov edi, eax
shl rdi, 0x20
or rdi, 2
lea rbx, [rsp + 0x20]
and al, 0x20
Function at 0x1400351eb
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
lea rcx, [0x140048048]
call fcn.140022c80
mov ecx, eax
add rsp, 0x28
jmp fcn.140045884
Function at 0x140035c61
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
mov edx, 0x20
call fcn.14003805f
test rax, rax
je 0x140035c9e
mov edx, 4
mov rcx, rax
call fcn.140019400
jmp 0x140035cd7
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
lea rbx, [rsp + 0x70]
mov rcx, rbx
call fcn.1400351a9
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
and qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
jmp fcn.140035245
Function at 0x14003805f
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x1400380ef
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov r12d, 0xffffffff
test rdi, rdi
je 0x1400380f1
mov r14, rbx
cmp rdi, r12
mov r15d, 0xffffffff
cmovb r15, rdi
add rbx, r15
sub rdi, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x140038080
mov ebp, eax
mov rcx, r14
mov edx, r15d
call sub.advapi32.dll_SystemFunction036
test al, al
jne 0x140038080
xor ebp, 0x80000000
je 0x1400380ef
mov al, byte [0x140094190]
mov ecx, 4
mov edx, 4
call fcn.140019370
test rax, rax
je 0x140038103
mov rsi, rax
mov dword [rax], ebp
jmp 0x1400380f1
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2

Function at 0x140039682
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140022c80
mov ecx, eax
add rsp, 0x28
jmp fcn.140045884

Function at 0x14003b3f8
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
cmp byte [rdx], 9
jne 0x14003b423
mov rdi, rdx
lea rcx, [rdx + 1]
lea rdx, [0x14008bf89]
mov r8d, 0x27
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x14003b44c
movups xmm0, xmmword [0x14008bf98]
movups xmmword [rsi + 0x14], xmm0
movups xmm0, xmmword [0x14008bf88]
movups xmmword [rsi + 4], xmm0
and qword [rsi + 0x24], 0
mov ecx, 5
mov dword [rsi], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
mov al, byte [rdi + 0x40]
mov ecx, 2
cmp al, 0x17
je 0x14003b443
cmp al, 4
jne 0x14003b482
cmp dword [rdi + 0x38], 0
jne 0x14003b482
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rdi + 0x30]
lea r8, [0x14008bfb8]
xor r9d, r9d
call fcn.1400208b0
mov ecx, 6
test al, al
jne 0x14003b443
mov ecx, 4
jmp 0x14003b443
Function at 0x14003d939
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14008cbc0]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r9, rcx
cmovb rcx, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x14003d9a8
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14003d9de
test eax, eax
js 0x14003d9b9
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14003d9d1
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rdx, [rsp + 0x78]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.14003dbfa
mov rcx, rax
call fcn.14003d496
mov ecx, 7
int 0x29
ud2

Function at 0x14003e812
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x14003e812
dec eax
ret
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x14003e889
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x14003e8d0
cmp dword [rsp + 0x2c], 0
je 0x14003e8b1
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14003e8c0
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140094168]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140094168], rsi
jne 0x14003e864
mov byte [0x140094160], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x14003e8b6
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14003e8d0
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x14003e8b6
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x14003e8b6
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2
Function at 0x14003f26a
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov ecx, 0x10
mov edx, 8
call fcn.140024cff
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003f2f8]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x14003f2eb
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
call qword [rax]
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
call fcn.14003e45f
mov rcx, rsi
call fcn.14003e472
mov edi, 1
call fcn.14003cb12
mov rdx, rax
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14003f49d
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x488
mov rdi, rcx
lea rsi, [rsp + 0x88]
mov rcx, rsi
call fcn.14003ee4f
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14003f5e8
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rax], 2
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov r8d, 0x200
mov r12d, 2
xor r15d, r15d
mov r14d, 0xffffffff
xor r13d, r13d
cmp r8, 0x201
jae 0x14003f52c
lea rbp, [rsp + 0x88]
mov edi, 0x200
mov rbx, r8
jmp 0x14003f561
sub r8, r13
lea rcx, [rsp + 0x40]
mov rdx, r8
call fcn.14003ca68
mov r12, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
cmp r15, r14
mov r13d, 0xffffffff
cmovb r13, r15
mov qword [rsp + 0x50], r13
mov rbp, r12
mov rdi, r13
mov rbx, r13
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x38]
mov rdx, rbp
mov r8d, ebx
call sub.kernel32.dll_GetEnvironmentVariableW
mov esi, eax
test eax, eax
jne 0x14003f587
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14003f5fc
mov r8d, esi
cmp rbx, r8
jne 0x14003f5af
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14003f6d4
add rbx, rbx
cmp rbx, r14
cmovae rbx, r14
mov r8, rbx
jmp 0x14003f511
jb 0x14003f511
cmp rdi, r8
jb 0x14003f6d4
lea rsi, [rsp + 0x68]
mov rcx, rsi
mov rdx, rbp
call fcn.14003c40f
mov bl, byte [rsi + 0x18]
mov rcx, r12
mov rdx, r15
call fcn.14003cb28
cmp bl, 2
jne 0x14003f637
mov rbx, qword [rsp + 0x68]
jmp 0x14003f61c
lea rcx, [rsp + 0x88]
call fcn.14003efad
mov byte [rsp + 0x58], 2
jmp 0x14003f66b
call fcn.14003cb12
mov rbx, rax
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x80], 2
mov rcx, r12
mov rdx, r15
call fcn.14003cb28
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov byte [rsp + 0x58], 2
mov rcx, rbx
call fcn.14003bf7e
mov bl, 2
jmp 0x14003f659
movups xmm0, xmmword [rsp + 0x68]
movups xmm1, xmmword [rsp + 0x78]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
mov bl, byte [rsp + 0x58]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.14003cb28
cmp bl, 2
jne 0x14003f683
mov byte [rdi + 0x18], 2
add rsp, 0x488
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x88]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14003f6d8
cmp byte [rsi + 0x18], 2
jne 0x14003f6bb
mov rax, qword [rsp + 0x98]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rdi], xmm0
mov byte [rdi + 0x18], 3
jmp 0x14003f66f
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
jmp 0x14003f66f
ud2
Function at 0x14003f935
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, rcx
xorps xmm0, xmm0
lea rdi, [rsp + 0x20]
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov rcx, rdi
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rdi + 0x20]
test rax, rax
je 0x14003f969
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14003f979
lea rax, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0x58
pop rdi
pop rsi
ret

Function at 0x14003fb54
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14008cbc0]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r9, rcx
cmovb rcx, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x14003fbbc
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14003fbcb
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14003fbff
cmp eax, 0x103
je 0x14003fc09
test eax, eax
js 0x14003fbe5
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
and qword [rsi], 0
jmp 0x14003fbff
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rdx, [rsp + 0x78]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.14003dbfa
mov rcx, rax
call fcn.14003d496
mov ecx, 7
int 0x29
ud2

Function at 0x1400418df
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, r8
mov edi, edx
mov rsi, rcx
xorps xmm0, xmm0
lea r8, [rsp + 0x30]
movaps xmmword [r8], xmm0
movaps xmmword [r8 + 0x20], xmm0
movaps xmmword [r8 + 0x10], xmm0
mov dword [r8 + 8], 1
lea r9, [rsp + 0x28]
and qword [r9], 0
mov rcx, rax
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x140041932
call fcn.14004194f
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140041945
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x14004197f
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1b8
mov rax, qword [rcx]
mov rdi, qword [rax]
and qword [rax], 0
test rdi, rdi
je 0x1400419d0
lea rsi, [rsp + 0x20]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.ws2_32.dll_WSAStartup
test eax, eax
jne 0x1400419d0
lea rax, [0x140045674]
mov qword [rdi], rax
add rsp, 0x1b8
pop rdi
pop rsi
ret
ud2
Function at 0x1400419d4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
test dx, dx
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov dword [rsp + 0x28], 0x81
and dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x140041a1c
mov qword [rsi + 8], rax
and qword [rsi], 0
jmp 0x140041a8b
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x140041a2f
cmp eax, 0x2739
jne 0x140041a71
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x140041a7b
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x140041a92
mov qword [rsi + 8], rdi
jmp 0x140041a16
shl rax, 0x20
or rax, 2
jmp 0x140041a80
call fcn.14004194f
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x38
pop rdi
pop rsi
ret
call fcn.14003cb12
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
add rsp, 0x38
pop rdi
pop rsi
jmp fcn.140045694

Function at 0x140041ab0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
movzx eax, dl
lea r8, [rsp + 0x24]
mov dword [r8], eax
mov edx, 0x8004667e
call sub.ws2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x140041ad2
xor eax, eax
jmp 0x140041ad7
call fcn.14004194f
nop
add rsp, 0x28
ret

Function at 0x140041add
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x48
cmp word [rdx], 0
je 0x140041b04
movups xmm0, xmmword [rdx + 4]
mov eax, dword [rdx + 0x14]
mov r10d, dword [rdx + 0x18]
movzx r9d, word [rdx + 0x1c]
mov r8d, 0x1c
mov r11w, 0x17
jmp 0x140041b1a
mov eax, dword [rdx + 2]
movzx r9d, word [rdx + 6]
mov r8d, 0x10
mov r11w, 2
xorps xmm0, xmm0
rol r9w, 8
lea rdx, [rsp + 0x2c]
mov word [rdx], r11w
mov word [rdx + 2], r9w
mov dword [rdx + 4], eax
movups xmmword [rdx + 8], xmm0
mov dword [rdx + 0x18], r10d
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
je 0x140041b46
xor eax, eax
jmp 0x140041b4b
call fcn.14004194f
nop
add rsp, 0x48
ret

Function at 0x140041b51
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov esi, r9d
mov rdi, rcx
xor eax, eax
cmp r8d, 0x3b9aca00
je 0x140041b77
mov rcx, rdx
mov edx, r8d
call fcn.14003f752
test eax, eax
je 0x140041ba7
lea r9, [rsp + 0x34]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 0xffff
mov r8d, esi
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140041ba0
xor eax, eax
jmp 0x140041bae
call fcn.14004194f
jmp 0x140041bae
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140041ee2
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
mov edx, 0x10
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x140041f0e
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.14003cb12
ud2
Function at 0x1400424ac
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8, rdx
mov rdx, rcx
lea rsi, [rsp + 0x28]
mov rcx, rsi
call fcn.14003ff72
mov rsi, qword [rsi]
test rsi, rsi
je 0x1400424ee
mov rdi, qword [rsp + 0x30]
mov rcx, rsi
call sub.kernel32.dll_DeleteFileW
test eax, eax
je 0x1400424f5
mov rcx, rsi
mov rdx, rdi
call fcn.14003cb28
xor eax, eax
jmp 0x14004250b
mov rax, qword [rsp + 0x30]
jmp 0x14004250b
call fcn.14003cb12
mov rbx, rax
mov rcx, rsi
mov rdx, rdi
call fcn.14003cb28
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400462b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140047050
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140047050
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140046320
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140094224]
mov rbx, rcx
test esi, esi
jle 0x140046450
mov rax, qword [0x140094228]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14004636b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400463f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140046350
mov rcx, rbx
call fcn.140046d70
mov rdi, rax
test rax, rax
je 0x140046472
mov rax, qword [0x140094228]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140046eb0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140094228]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140046457
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400463ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140046400
add dword [0x140094224], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140094228]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400463ee
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400462b0
nop dword [rax]
xor esi, esi
jmp 0x140046378
mov rax, qword [0x140094228]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400462b0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400462b0
nop
nop word cs:[rax + rax]
nop dword [rax]