joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1406d6360
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406d64e7
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406d6391
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d6377
add dl, dl
jne 0x1406d639e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d63fe
xor eax, eax
add dl, dl
jne 0x1406d63ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d64b5
add dl, dl
jne 0x1406d63be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d63cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d63d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d63e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406d63f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406d6386
mov eax, 1
add dl, dl
jne 0x1406d640e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d641b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d6403
sub eax, ebx
mov ebx, 1
jne 0x1406d6454
mov ecx, 1
add dl, dl
jne 0x1406d6436
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406d6443
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d642b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d6386
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406d6470
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406d647d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d6465
cmp eax, 0x7d00
jae 0x1406d64a3
cmp eax, 0x500
jb 0x1406d649e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d6386
cmp eax, 0x7f
ja 0x1406d64a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d6386
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406d64da
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406d6386
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x140001000
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x28
mov edx, 5
lea rcx, str.calc.exe
call qword [sym.imp.KERNEL32.dll_WinExec]
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400018f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001942
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001942
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001942
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001942
cmp dword [rcx + 0x84], 0xe
jbe 0x140001942
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001944
xor al, al
add rsp, 0x28
ret
Function at 0x1425b9058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1425b91df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1425b9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1425b906f
add dl, dl
jne 0x1425b9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1425b90f6
xor eax, eax
add dl, dl
jne 0x1425b90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1425b91ad
add dl, dl
jne 0x1425b90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1425b90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1425b90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1425b90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1425b90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1425b907e
mov eax, 1
add dl, dl
jne 0x1425b9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1425b9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1425b90fb
sub eax, ebx
mov ebx, 1
jne 0x1425b914c
mov ecx, 1
add dl, dl
jne 0x1425b912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1425b913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1425b9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1425b907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1425b9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1425b9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1425b915d
cmp eax, 0x7d00
jae 0x1425b919b
cmp eax, 0x500
jb 0x1425b9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1425b907e
cmp eax, 0x7f
ja 0x1425b919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1425b907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1425b91d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1425b907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800462c0
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x1800462f5
nop
movdqu xmm0, xmmword [rdx + r8]
pxor xmm0, xmmword [r8]
movdqu xmmword [rcx + r8], xmm0
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x1800462d0
and r10, 0xf
je 0x180046325
mov r9d, reloc.WS2_32.dll_recv
sub r9, r10
xor eax, eax
mov al, byte [rdx + r8]
xor al, byte [r8]
mov byte [rcx + r8], al
mov byte [r8], al
lea r8, [r8 + 1]
dec r10
jne 0x180046300
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x180046319
mov rax, r8
repz ret

Function at 0x180046330
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x18004636d
nop
movdqu xmm0, xmmword [rdx + r8]
movdqa xmm1, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [rcx + r8], xmm1
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x180046340
pxor xmm1, xmm1
and r10, 0xf
je 0x1800463a3
mov r9d, reloc.WS2_32.dll_recv
sub r9, r10
xor eax, eax
xor r11, r11
mov r11b, byte [rdx + r8]
mov al, byte [r8]
xor al, r11b
mov byte [rcx + r8], al
mov byte [r8], r11b
lea r8, [r8 + 1]
dec r10
jne 0x18004637b
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x180046397
mov rax, r8
repz ret
Function at 0x18012a4a0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r10, rdx
mov r11, rcx
test rdx, rdx
je 0x18012a4cb
nop dword [rax]
movzx ecx, al
mov rdx, r8
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [r11 + rax], dl
inc rax
cmp rax, r10
jb 0x18012a4b0
ret

Function at 0x18012a4d0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r10, rdx
mov r11, rcx
test rdx, rdx
je 0x18012a4fc
nop dword [rax]
movzx ecx, al
mov rdx, r8
and cl, 7
shl cl, 3
shr rdx, cl
xor word [r11 + rax*2], dx
inc rax
cmp rax, r10
jb 0x18012a4e0
ret
Function at 0x18016c340
Capabilities:
Hash data using fnv

Disassembly:
xor r9d, r9d
test r8, r8
je 0x180128fe4
movabs r10, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + r9]
inc r9
xor rcx, rax
imul rcx, r10
cmp r9, r8
jb 0x180128fd0
mov rax, rcx
ret
jmp 0x18016ced0
mov rcx, rdx
jmp 0x18016d270
jmp 0x18016dba0
mov rdx, rcx
jmp 0x18016def0
movabs rcx, 0xcbf29ce484222325
mov r8d, 8
jmp 0x180128fb0

Function at 0x18016c380
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rdx, rcx
jmp 0x18016c170
movabs rcx, 0xcbf29ce484222325
mov r8d, 4
jmp 0x180128fb0
jmp 0x18016ceb0
mov rcx, rdx
jmp 0x18016d260
jmp 0x180169330

Function at 0x180190bc0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1804ae600]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov edi, edx
lea rcx, [0x180481b90]
jmp 0x1806acbd4

Function at 0x1801910a0
Capabilities:
Encrypt data using rc4 prga
Get system information on windows

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, 0x90
mov rax, qword [0x1804ae600]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [0x180481da0]
jmp 0x1806ad115

Function at 0x180191ff0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1804ae600]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbp, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
lea rcx, [0x180482048]
jmp 0x1806ae9b8
Function at 0x1801b22f0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, reloc.WS2_32.dll_WSASetLastError
call fcn.18037bbf0
sub rsp, rax
mov rax, qword [0x1804ae600]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r9
mov rbx, rcx
cmp edx, 0x1d
je 0x1801b2327
mov eax, 0xfffffffe
jmp 0x1801b2447
test rbx, rbx
je 0x1801b2445
cmp r8d, 0x30
jne 0x1801b2445
mov r8d, gethostbyaddr
mov rdx, rdi
call fcn.1801b21b0
test eax, eax
jle 0x1801b2445
movdqa xmm0, xmmword [str.6666666666666666crypto_threads_win.c]
lea rdx, [rsp + 0x20]
mov r8d, 0x28
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.1801b21b0
test eax, eax
je 0x1801b2445
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1801b1fb0
test eax, eax
je 0x1801b2445
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 0x14], xmm0
mov rdx, rdi
mov rcx, rbx
movups xmmword [rbx + 0x24], xmm0
lea r8d, [rax + 0x30]
movups xmmword [rbx + 0x34], xmm0
movups xmmword [rbx + 0x44], xmm0
mov qword [rbx + 0x54], rax
mov dword [rbx + 0x5c], eax
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
call fcn.1801b21b0
test eax, eax
jle 0x1801b2445
movdqa xmm0, xmmword [0x1803e2a50]
lea rdx, [rsp + 0x20]
mov r8d, 0x28
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.1801b21b0
test eax, eax
je 0x1801b2445
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1801b21b0
test eax, eax
je 0x1801b2445
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rsp + 0x48]
call fcn.180001240
mov eax, 1
jmp 0x1801b2447
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18037b060
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x1801b2650
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.18037bbf0
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x1801b2840
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
push rdi
push r13
mov eax, gethostbyaddr
call fcn.18037bbf0
sub rsp, rax
mov eax, dword [0x1804afb1c]
mov r13d, ecx
mov ebx, 1
cmp eax, 2
je 0x1801b28b3
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1804afb1c], ebx
je 0x1801b288d
cmp eax, ebx
je 0x1801b2870
mov eax, dword [0x1804afb1c]
cmp eax, 2
jne 0x1801b28d1
jmp 0x1801b28b3
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea r8, [0x1801b2760]
xor edx, edx
xor ecx, ecx
mov dword [0x1804afb18], eax
call fcn.1801babd0
mov dword [0x1804afb1c], 2
mov r8d, reloc.WS2_32.dll___WSAFDIsSet
lea rdx, [0x1803e2a60]
lea ecx, [r8 - 0x3f]
call fcn.1801a35d0
mov rdi, rax
test rax, rax
jne 0x1801b28dc
xor eax, eax
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.1801e9dc0
mov qword [rdi + 0x30], rax
call fcn.1801e99c0
mov qword [rdi + 0x40], rax
call fcn.1801e99c0
mov qword [rdi + 0x50], rax
call fcn.1801e9dc0
mov qword [rdi + 0x38], rax
call fcn.1801e9dc0
mov qword [rdi + 0x48], rax
call fcn.1801e9dc0
cmp r13d, ebx
mov qword [rdi + 0x30], rax
mov r8d, 0x85
lea rdx, [0x1803e2a60]
cmovge ebx, r13d
inc ebx
movsxd rbx, ebx
lea rcx, [rbx*8]
call fcn.1801a35d0
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1801b2981
cmp qword [rdi + 0x40], 0
je 0x1801b2981
cmp qword [rdi + 0x50], 0
je 0x1801b2981
cmp qword [rdi + 0x30], 0
je 0x1801b2981
cmp qword [rdi + 0x38], 0
je 0x1801b2981
cmp qword [rdi + 0x48], 0
jne 0x1801b29da
mov r8d, 0xa9
lea rdx, [0x1803e2a60]
mov rcx, rax
call fcn.1801a3340
lea rcx, [rdi + 0x40]
call fcn.1801e9920
lea rcx, [rdi + 0x50]
call fcn.1801e9920
lea rcx, [rdi + 0x38]
call fcn.1801e9d50
lea rcx, [rdi + 0x48]
call fcn.1801e9d50
lea rcx, [rdi + 0x30]
call fcn.1801e9d50
mov r8d, 0xaf
lea rdx, [0x1803e2a60]
mov rcx, rdi
call fcn.1801a3340
xor edi, edi
mov r15, qword [rsp + 0x20]
mov rax, rdi
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret
Function at 0x1801b2a00
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
mov eax, 0x20
call fcn.18037bbf0
sub rsp, rax
mov rbx, rcx
lea esi, [rax - 0x21]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1804afb18]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x1801b2a8e
mov r8d, 0xde
lea rdx, [0x1803e2a60]
lea ecx, [r8 + 0x12]
call fcn.1801a35d0
mov r14, rax
test rax, rax
jne 0x1801b2a7f
mov r8d, 0xdf
lea rdx, [0x1803e2a60]
lea rcx, str.assertion_failed:_data___NULL
call fcn.1801a3610
mov ecx, dword [0x1804afb18]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
mov rax, r14
cmp qword [rax], 0
jne 0x1801b2a9f
cmp esi, 0xffffffff
cmove esi, ecx
cmp qword [rax + 0x10], rbx
je 0x1801b2b63
inc ecx
add rax, 0x18
cmp ecx, 0xa
jl 0x1801b2a93
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
nop dword [rax + rax]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x1801b2ac0
mov rcx, qword [rbx + 0x10]
mov r8d, eax
lea rdx, [r8*8]
lock inc qword [rdx + rcx]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x1801b2ae4
cmp r8d, eax
je 0x1801b2b42
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x10]
lock dec qword [rdx + rax]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x1801b2b10
mov r8d, eax
mov rax, qword [rbx + 0x10]
lea rdx, [r8*8]
lock inc qword [rdx + rax]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x1801b2b34
cmp r8d, eax
jne 0x1801b2b00
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x10]
lea rdx, [r14 + rcx*8]
mov dword [rdx + 8], 1
mov qword [rdx + 0x10], rbx
lea rcx, [rax + r8*8]
mov qword [rdx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x1801b2b80
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.18037bbf0
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1804afb18]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r9d, r9d
lea rdx, [rsi + 0x10]
xor r8d, r8d
cmp qword [rdx], rdi
je 0x1801b2be9
inc r9d
inc r8
add rdx, 0x18
cmp r8, 0xa
jl 0x1801b2bc4
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movsxd rax, r9d
lea rcx, [rax + rax*2]
add dword [rsi + rcx*8 + 8], 0xffffffff
lea rbx, [rsi + rcx*8]
jne 0x1801b2c38
mov rax, qword [rbx]
mov rcx, 0xffffffffffffffff
lock xadd qword [rax], rcx
cmp rcx, 1
jns 0x1801b2c29
mov r8d, 0x10c
lea rdx, [0x1803e2a60]
lea rcx, str.assertion_failed:_ret___0
call fcn.1801a3610
mov qword [rbx], 0
mov qword [rbx + 0x10], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1801b3a60
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x28
call fcn.18037bbf0
sub rsp, rax
cmp dword [0x1804afb20], 0
jne 0x1801b3b1a
xor edx, edx
mov dword [0x1804afb20], 1
mov r8d, 0x198
lea rcx, [0x1804afb30]
call fcn.1803b06f0
mov ecx, 0x202
lea rdx, [0x1804afb30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1801b3b1a
call fcn.1801a4f90
lea r8, str.BIO_sock_init
mov edx, 0x99
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1801a50b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call fcn.1801a5210
call fcn.1801a4f90
lea r8, str.BIO_sock_init
mov edx, 0x9b
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1801a50b0
xor r8d, r8d
lea edx, [r8 + 0x7a]
lea ecx, [rdx - 0x5a]
call fcn.1801a5210
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x1801b3b30
Capabilities:
Set socket configuration

Disassembly:
push rbx
mov eax, 0x20
call fcn.18037bbf0
sub rsp, rax
mov dword [rsp + 0x30], edx
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
jns 0x1801b3b92
call fcn.1801a4f90
lea r8, str.BIO_socket_ioctl
mov edx, 0xf7
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1801a50b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call fcn.1801a5210
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x1801b3ba0
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x260
call fcn.18037bbf0
sub rsp, rax
mov rax, qword [0x1804ae600]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov edi, ecx
mov rbx, r8
mov esi, edx
cmp ecx, 0x3f
ja 0x1801b3c32
test rbx, rbx
jne 0x1801b3bda
lea eax, [r8 + 1]
jmp 0x1801b3c37
xor ecx, ecx
call fcn.180392460
mov rcx, rax
cmp rbx, rax
jge 0x1801b3bed
xor eax, eax
jmp 0x1801b3c37
xor eax, eax
mov qword [rsp + 0x48], rdi
sub ebx, ecx
mov dword [rsp + 0x34], eax
test esi, esi
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], ebx
cmovne r8, rax
lea rdx, [rsp + 0x40]
cmove rdx, rax
lea ecx, [rdi + 1]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
jmp 0x1801b3c37
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18037b060
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x1801b5f80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x280
call fcn.18037bbf0
sub rsp, rax
mov rax, qword [0x1804ae600]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x1804afe08], 0
lea rax, [0x1801b5900]
mov qword [rsp + 0x28], rax
lea rbx, [0x1803e3250]
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x1801b5d40]
mov qword [rsp + 0x38], rax
lea rax, [0x1803e3270]
mov qword [rsp + 0x40], rax
lea rax, [0x1801b58a0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
jne 0x1801b6159
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1801b614f
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.180393340
lea r8, [0x1803e3280]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.180383210
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1801b607a
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1801b60da
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.180393340
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.180383210
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1801b6147
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1801b60da
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1801b6147
mov qword [rsp + 0x298], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
nop dword [rax]
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x1801b6136
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x1801b60f0
mov rax, qword [rsp + 0x28]
mov qword [0x1804aa5f0], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1804aa600], rax
mov rax, qword [rsp + 0x48]
mov qword [0x1804aa610], rax
jmp 0x1801b613f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x1804afe08], 1
mov rax, rbp
lea rcx, [0x1804aa5e8]
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18037b060
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
Function at 0x1801b6190
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x870
call fcn.18037bbf0
sub rsp, rax
mov rax, qword [0x1804ae600]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov r13, qword [rsp + 0x8c8]
mov r14, rcx
mov dword [rsp + 0x24], r8d
xor ebp, ebp
mov dword [rsp + 0x28], edx
mov r8d, 0x400
mov qword [rsp + 0x38], rcx
xor edx, edx
lea rcx, [rsp + 0x41]
mov byte [rsp + 0x40], bpl
mov r12d, ebp
mov word [rsp + 0x20], r9w
call fcn.1803b06f0
xor edx, edx
mov byte [rsp + 0x450], bpl
mov r8d, 0x400
lea rcx, [rsp + 0x451]
call fcn.1803b06f0
mov r9d, 0x400
lea rbx, [rsp + 0x40]
mov r8, r14
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
lea rdi, [rsp + 0x450]
lea edx, [r9 + 1]
call fcn.1803933a0
lea r15, [rbp - 1]
nop dword [rax]
mov rcx, r14
mov qword [r13], rbp
mov rsi, r13
mov byte [rdi], bpl
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov r14, rax
test rax, rax
je 0x1801b639e
cmp word [rax + 0x10], 2
jne 0x1801b62c7
cmp word [rax + 0x12], 4
jne 0x1801b62c7
mov rbx, qword [rax + 0x18]
mov rax, qword [rbx]
test rax, rax
je 0x1801b62c2
nop dword [rax]
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x20]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call fcn.1801b6400
mov qword [rsi], rax
test rax, rax
je 0x1801b6397
add rbx, 8
lea rsi, [rax + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x1801b6290
mov rbx, qword [rsp + 0x30]
mov r8, qword [r14]
mov r9d, 0x400
mov rcx, rdi
lea edx, [r9 + 1]
call fcn.1803933a0
cmp qword [r13], rbp
jne 0x1801b6340
mov rax, r15
inc rax
cmp byte [rdi + rax], bpl
jne 0x1801b62e5
test rax, rax
je 0x1801b63b8
mov r8, rdi
mov rax, rbx
sub r8, rbx
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1801b6313
inc rax
test ecx, ecx
jne 0x1801b6300
test edx, edx
je 0x1801b63b8
inc r12d
cmp r12d, 0x10
je 0x1801b63b8
mov r14, qword [rsp + 0x38]
mov rax, rbx
mov rbx, rdi
mov rdi, rax
mov qword [rsp + 0x30], rbx
jmp 0x1801b6250
cmp dword [rsp + 0x8c0], ebp
je 0x1801b63cb
nop dword [rax]
cmp byte [rdi + r15 + 1], bpl
lea r15, [r15 + 1]
jne 0x1801b6350
lea rdx, [r15 + 1]
mov ecx, 1
call fcn.180388f70
mov rbx, rax
test rax, rax
jne 0x1801b6376
mov rbx, rbp
jmp 0x1801b6385
mov r8, rdi
lea rdx, [r15 + 1]
mov rcx, rax
call fcn.180393340
mov rax, qword [r13]
mov qword [rax + 0x18], rbx
mov rax, qword [r13]
cmp qword [rax + 0x18], rbp
jne 0x1801b63cb
mov ebp, 8
jmp 0x1801b63cb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2af9
je 0x1801b63c6
sub ecx, 1
je 0x1801b63bf
sub ecx, 1
jne 0x1801b63c6
mov ebp, 0x2afb
jmp 0x1801b63cb
mov ebp, 0x2afa
jmp 0x1801b63cb
mov ebp, 0x2af9
mov eax, ebp
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.18037b060
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret