joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1802315e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1803a1670
sub rsp, rax
mov rbx, rcx
mov esi, 0xffffffff
mov rcx, qword [rcx + 8]
call fcn.180251f10
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [r14]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r15, r15
jne 0x18023168e
mov r8d, Ordinal_211
lea rdx, str.crypto_threads_win.c
mov ecx, 0xf0
call fcn.18020d190
mov r15, rax
test rax, rax
jne 0x180231670
mov r8d, reloc.WLDAP32.dll_Ordinal_211
lea rdx, str.crypto_threads_win.c
lea rcx, str.assertion_failed:_data___NULL
call fcn.18026f070
mov ecx, dword [r14]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdx, qword [rbx + 8]
lea r8, [0x180231380]
xor ecx, ecx
call fcn.1802a4550
xor ecx, ecx
mov rax, r15
cmp qword [rax], 0
jne 0x18023169f
cmp esi, 0xffffffff
cmove esi, ecx
cmp qword [rax + 0x10], rbx
je 0x180231763
inc ecx
add rax, 0x18
cmp ecx, 0xa
jl 0x180231693
prefetchw byte [rbx + 0x2c]
mov eax, dword [rbx + 0x2c]
nop dword [rax + rax]
mov ecx, eax
lock cmpxchg dword [rbx + 0x2c], ecx
jne 0x1802316c0
mov rcx, qword [rbx + 0x18]
mov r8d, eax
lea rdx, [r8*8]
lock inc qword [rdx + rcx]
prefetchw byte [rbx + 0x2c]
mov eax, dword [rbx + 0x2c]
mov ecx, eax
lock cmpxchg dword [rbx + 0x2c], ecx
jne 0x1802316e4
cmp r8d, eax
je 0x180231742
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x18]
lock dec qword [rdx + rax]
prefetchw byte [rbx + 0x2c]
mov eax, dword [rbx + 0x2c]
mov ecx, eax
lock cmpxchg dword [rbx + 0x2c], ecx
jne 0x180231710
mov r8d, eax
mov rax, qword [rbx + 0x18]
lea rdx, [r8*8]
lock inc qword [rdx + rax]
prefetchw byte [rbx + 0x2c]
mov eax, dword [rbx + 0x2c]
mov ecx, eax
lock cmpxchg dword [rbx + 0x2c], ecx
jne 0x180231734
cmp r8d, eax
jne 0x180231700
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x18]
lea rdx, [r15 + 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]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x180231780
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1803a1670
sub rsp, rax
mov rsi, rcx
mov rcx, qword [rcx + 8]
call fcn.180251f10
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
lea rcx, [rbx + 0x10]
mov r8d, edi
mov edx, edi
nop dword [rax]
cmp qword [rcx], rsi
je 0x1802317f5
inc r8d
inc rdx
add rcx, 0x18
cmp rdx, 0xa
jl 0x1802317d0
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movsxd rax, r8d
lea rcx, [rax + rax*2]
add dword [rbx + rcx*8 + 8], 0xffffffff
lea rbx, [rbx + rcx*8]
jne 0x18023183c
mov rax, qword [rbx]
mov rcx, 0xffffffffffffffff
lock xadd qword [rax], rcx
cmp rcx, 1
jns 0x180231835
mov r8d, 0x102
lea rdx, str.crypto_threads_win.c
lea rcx, str.assertion_failed:_ret___0
call fcn.18026f070
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180237260
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x1802372cc
movzx ecx, byte [rcx]
test cl, cl
je 0x1802372cc
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, reloc.WLDAP32.dll_Ordinal_32
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x180237280
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x180237390
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x180237400
movzx ecx, byte [rcx]
test cl, cl
je 0x180237400
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
mov r8d, eax
and r9d, 0xffffffdf
or r9d, r11d
mov ecx, reloc.WLDAP32.dll_Ordinal_32
mov edx, r9d
add r11d, 0x100
shr edx, 2
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x1802373b0
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x18023fac0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1803a1670
sub rsp, rax
lea rcx, [0x180497438]
add rsp, 0x28
jmp fcn.1802310e0
Function at 0x18025b5a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x280
call fcn.1803a1670
sub rsp, rax
mov rax, qword [0x180496d00]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x180497694], 0
lea rax, [0x18025af00]
mov qword [rsp + 0x28], rax
lea rbx, [0x1803f1a80]
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x18025b350]
mov qword [rsp + 0x38], rax
lea rax, [0x1803f1aa0]
mov qword [rsp + 0x40], rax
lea rax, [0x18025aea0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
jne 0x18025b779
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x18025b76f
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x18025b69c
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x18025b6fe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x18025b767
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x18025b6fe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x18025b767
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 0x18025b756
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x18025b710
mov rax, qword [rsp + 0x28]
mov qword [0x180493878], rax
mov rax, qword [rsp + 0x38]
mov qword [0x180493888], rax
mov rax, qword [rsp + 0x48]
mov qword [0x180493898], rax
jmp 0x18025b75f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x180497694], 1
mov rax, rbp
lea rcx, [0x180493870]
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1803a0e80
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
Function at 0x18025b7b0
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.1803a1670
sub rsp, rax
mov rax, qword [0x180496d00]
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 sub.VCRUNTIME140.dll_memset
xor edx, edx
mov byte [rsp + 0x450], bpl
mov r8d, 0x400
lea rcx, [rsp + 0x451]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rsp + 0x40]
mov r9d, 0x400
mov r8, r14
mov qword [rsp + 0x30], rbx
mov edx, 0x401
lea rcx, [rsp + 0x40]
lea rdi, [rsp + 0x450]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov r15, 0xffffffffffffffff
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 0x18025b9c0
cmp word [rax + 0x10], 2
jne 0x18025b8e7
cmp word [rax + 0x12], 4
jne 0x18025b8e7
mov rbx, qword [rax + 0x18]
mov rax, qword [rbx]
test rax, rax
je 0x18025b8e2
nop word [rax + rax]
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x20]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call fcn.18025ba20
mov qword [rsi], rax
test rax, rax
je 0x18025b9b9
add rbx, 8
lea rsi, [rax + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x18025b8b0
mov rbx, qword [rsp + 0x30]
mov r8, qword [r14]
mov r9d, 0x400
mov edx, 0x401
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
cmp qword [r13], rbp
jne 0x18025b962
mov rax, r15
inc rax
cmp byte [rdi + rax], bpl
jne 0x18025b907
test rax, rax
je 0x18025b9da
mov r8, rdi
mov rax, rbx
sub r8, rbx
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x18025b935
inc rax
test ecx, ecx
jne 0x18025b922
test edx, edx
je 0x18025b9da
inc r12d
cmp r12d, 0x10
je 0x18025b9da
mov r14, qword [rsp + 0x38]
mov rax, rbx
mov rbx, rdi
mov rdi, rax
mov qword [rsp + 0x30], rbx
jmp 0x18025b871
cmp dword [rsp + 0x8c0], ebp
je 0x18025b9ed
nop
cmp byte [rdi + r15 + 1], bpl
lea r15, [r15 + 1]
jne 0x18025b970
lea rdx, [r15 + 1]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x18025b997
mov rbx, rbp
jmp 0x18025b9a7
mov r8, rdi
lea rdx, [r15 + 1]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov rax, qword [r13]
mov qword [rax + 0x18], rbx
mov rax, qword [r13]
cmp qword [rax + 0x18], rbp
jne 0x18025b9ed
mov ebp, 8
jmp 0x18025b9ed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2af9
je 0x18025b9e8
sub ecx, 1
je 0x18025b9e1
sub ecx, 1
jne 0x18025b9e8
mov ebp, 0x2afb
jmp 0x18025b9ed
mov ebp, 0x2afa
jmp 0x18025b9ed
mov ebp, 0x2af9
mov eax, ebp
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1803a0e80
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
Function at 0x18025c4b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, gethostbyaddr
call fcn.1803a1670
sub rsp, rax
mov rdi, rcx
lea rdx, str.crypto_thread_arch_thread_win.c
mov ecx, 8
mov r8d, Ordinal_41
call fcn.18020d190
mov rbx, rax
test rax, rax
je 0x18025c526
mov qword [rsp + 0x28], 0
lea r8, [0x18025c550]
mov r9, rdi
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x18025c526
mov qword [rdi + 0x20], rbx
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov r8d, reloc.WS2_32.dll_gethostbyname
mov qword [rdi + 0x20], 0
lea rdx, str.crypto_thread_arch_thread_win.c
mov rcx, rbx
call fcn.18020cef0
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x18026daf0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push r12
push r13
push r14
mov eax, 0x50
call fcn.1803a1670
sub rsp, rax
mov r14, qword [rsp + 0xa8]
xor r11d, r11d
mov rbp, qword [rsp + 0xb0]
cmp r14, 1
mov eax, r11d
mov r13, r9
mov r9, qword [rcx]
setne al
add rax, rbp
mov r12, r8
mov rsi, rcx
mov r10, 0xffffffffffffffff
cmp rax, r9
jbe 0x18026db51
xor eax, eax
add rsp, 0x50
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
mov qword [rsp + 0x80], rbx
cmp r14, 1
je 0x18026dc50
lea r10, [r8 - 1]
add r10, r9
movzx ebx, byte [r10]
cmp dword [rsp + 0xb8], r11d
je 0x18026db8e
sub r9, rbx
mov eax, 1
sub r9, rbp
dec r9
mov qword [rcx], r9
jmp 0x18026dc87
lea rcx, [rbx + rax]
mov qword [rsp + 0x98], r15
mov r15d, 0x100
mov r8, r9
sub r8, rcx
mov rax, r9
xor r8, rcx
xor rax, rcx
or r8, rax
xor r8, r9
shr r8, 0x3f
dec r8
cmp r9, r15
cmovb r15, r9
test r15, r15
je 0x18026dc2a
mov qword [rsp + 0x90], rdi
mov rdi, rbx
shr rdi, 0x3f
nop word [rax + rax]
mov rax, r11
lea r10, [r10 - 1]
shr rax, 0x3f
mov rcx, rbx
sub rcx, r11
inc r11
shr rcx, 0x3f
xor cl, al
xor al, dil
or cl, al
dec cl
movzx edx, cl
movzx ecx, byte [r10 + 1]
xor rcx, rbx
and rdx, rcx
not rdx
and r8, rdx
cmp r11, r15
jb 0x18026dbe0
mov rdi, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov r15, qword [rsp + 0x98]
lea rax, [rbx + 1]
not r8
movzx r10d, r8b
dec r10
shr r10, 0x3f
neg r10
and rax, r10
sub r9, rax
mov qword [rsi], r9
mov rax, qword [rsp + 0xc0]
mov r9, r13
mov qword [rsp + 0x40], rax
mov r8, r12
mov rax, qword [rsp + 0xa0]
mov rcx, rsi
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call fcn.18026d720
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
Function at 0x1802740c0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, Ordinal_41
call fcn.1803a1670
sub rsp, rax
cmp dword [0x180497700], 0
jne 0x18027417d
xor edx, edx
mov dword [0x180497700], 1
mov r8d, 0x198
lea rcx, [0x180497710]
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x202
lea rdx, [0x180497710]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18027417d
call fcn.180237410
lea r8, str.BIO_sock_init
mov edx, __WSAFDIsSet
lea rcx, str.crypto_bio_bio_sock.c
call fcn.180237530
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call fcn.180237690
call fcn.180237410
lea r8, str.BIO_sock_init
mov edx, 0x98
lea rcx, str.crypto_bio_bio_sock.c
call fcn.180237530
xor r8d, r8d
mov edx, 0x7a
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.180237690
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x180274190
Capabilities:
Set socket configuration

Disassembly:
push rbx
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1803a1670
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 0x1802741f2
call fcn.180237410
lea r8, str.BIO_socket_ioctl
mov edx, 0xf4
lea rcx, str.crypto_bio_bio_sock.c
call fcn.180237530
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call fcn.180237690
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x180274200
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x260
call fcn.1803a1670
sub rsp, rax
mov rax, qword [0x180496d00]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov edi, ecx
mov rbx, r8
mov esi, edx
cmp ecx, 0xffffffff
jne 0x180274233
mov eax, ecx
jmp 0x180274296
test rbx, rbx
jne 0x18027423f
mov eax, 1
jmp 0x180274296
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
cmp rbx, rax
jge 0x180274253
xor eax, eax
jmp 0x180274296
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]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1803a0e80
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x180274630
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, reloc.WS2_32.dll_WSASetLastError
call fcn.1803a1670
sub rsp, rax
mov rax, qword [0x180496d00]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r9
mov rbx, rcx
cmp edx, 0x1d
je 0x180274667
mov eax, 0xfffffffe
jmp 0x180274789
test rbx, rbx
je 0x180274787
cmp r8d, 0x30
jne 0x180274787
mov r8d, gethostbyaddr
mov rdx, rdi
call fcn.1802744f0
test eax, eax
jle 0x180274787
movdqa xmm0, xmmword [str.6666666666666666crypto_bio_bio_lib.c]
lea rdx, [rsp + 0x20]
mov r8d, Ordinal_41
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.1802744f0
test eax, eax
je 0x180274787
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1802742f0
test eax, eax
je 0x180274787
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 0x14], xmm0
mov r8d, gethostbyaddr
mov rdx, rdi
movups xmmword [rbx + 0x24], xmm0
mov rcx, rbx
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.1802744f0
test eax, eax
jle 0x180274787
movdqa xmm0, xmmword [0x1803c7e80]
lea rdx, [rsp + 0x20]
mov r8d, Ordinal_41
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.1802744f0
test eax, eax
je 0x180274787
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1802744f0
test eax, eax
je 0x180274787
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rsp + 0x48]
call fcn.180001240
mov eax, 1
jmp 0x180274789
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1803a0e80
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x180274df0
Capabilities:
Hash data using sha256

Disassembly:
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
mov qword [rcx + 0x60], rax
mov dword [rcx + 0x68], eax
mov eax, 1
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
mov dword [rcx + 0x6c], Ordinal_27
ret
Function at 0x180276c60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r14
mov eax, Ordinal_41
call fcn.1803a1670
sub rsp, rax
mov r14, qword [rsp + 0x90]
mov r10, r9
mov r12, qword [rsp + 0x88]
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov ebx, dword [r14]
test ebx, ebx
je 0x180276cc1
nop dword [rax]
test rdi, rdi
je 0x180276cc1
mov eax, ebx
dec rdi
movzx ecx, byte [rax + r12]
xor cl, byte [rbp]
inc rbp
mov byte [rsi], cl
inc rsi
inc ebx
and ebx, 0xf
jne 0x180276ca0
mov r9, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x80]
cmp rdi, 0x10
jb 0x180276d8e
mov qword [rsp + 0x60], r13
xor ebx, ebx
mov r13, rdi
mov qword [rsp + 0x20], r15
shr r13, 4
mov r14, rsi
imul rax, r13, 0xfffffffffffffff0
mov r15, rbp
mov dword [rsp + 0x70], ebx
mov rbx, qword [rsp + 0x78]
add rdi, rax
mov rax, r13
sub r14, r12
shl rax, 4
sub r15, r12
add rsi, rax
add rbp, rax
mov r8, rbx
mov rdx, r12
call r9
mov rcx, qword [rsp + 0x80]
call fcn.180276ff0
mov edx, 2
mov rcx, r12
nop word [rax + rax]
mov rax, qword [r15 + rcx]
xor rax, qword [rcx]
mov qword [r14 + rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x180276d40
mov rcx, qword [rsp + 0x80]
add r14, 0x10
mov r9, qword [rsp + 0x98]
add r15, 0x10
sub r13, 1
jne 0x180276d17
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x60]
mov ebx, dword [rsp + 0x70]
mov r14, qword [rsp + 0x90]
mov r10, qword [rsp + 0x78]
test rdi, rdi
je 0x180276dc5
mov r8, r10
mov rdx, r12
call r9
mov rcx, qword [rsp + 0x80]
call fcn.180276ff0
nop dword [rax]
mov ecx, ebx
inc ebx
movzx eax, byte [r12 + rcx]
xor al, byte [rcx + rbp]
mov byte [rsi + rcx], al
sub rdi, 1
jne 0x180276db0
mov dword [r14], ebx
add rsp, 0x28
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180276de0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
mov eax, 0x40
call fcn.1803a1670
sub rsp, rax
mov rbx, r8
mov r14, rdx
mov r8, qword [rsp + 0xb0]
mov rbp, rcx
mov edi, dword [r8]
mov dword [rsp + 0x30], edi
test edi, edi
je 0x180276e45
mov rdx, qword [rsp + 0xa8]
test rbx, rbx
je 0x180276e41
mov eax, edi
dec rbx
movzx ecx, byte [rax + rdx]
xor cl, byte [rbp]
inc rbp
mov byte [r14], cl
inc r14
inc edi
and edi, 0xf
jne 0x180276e20
mov dword [rsp + 0x30], edi
mov rax, qword [rsp + 0xa0]
mov esi, 1
mov ecx, dword [rax + 0xc]
lea r15, [rax + 0xc]
mov r10, qword [rsp + 0xb8]
mov r13d, reloc.WS2_32.dll_inet_ntoa
mov qword [rsp + 0x80], r12
bswap ecx
mov dword [rsp + 0x90], ecx
cmp rbx, 0x10
jb 0x180276f53
mov rdi, qword [rsp + 0xa0]
mov eax, 0x10000000
nop
mov rdx, rbx
mov qword [rsp + 0x20], rdi
shr rdx, 4
cmp rdx, rax
cmova rdx, rax
add ecx, edx
mov r12, rdx
mov eax, ecx
sub r12, rax
cmp rax, rdx
cmovae r12, rdx
xor r8d, r8d
cmp rax, rdx
mov rdx, r14
cmovae r8d, ecx
mov rcx, rbp
mov dword [rsp + 0x90], r8d
mov r8, r12
call r10
mov ecx, dword [rsp + 0x90]
mov eax, ecx
bswap eax
mov dword [r15], eax
test ecx, ecx
jne 0x180276f0c
mov r8d, r13d
mov eax, esi
mov rdx, r15
nop dword [rax]
movzx ecx, byte [rdx - 1]
lea rdx, [rdx - 1]
add eax, ecx
mov byte [rdx], al
shr eax, 8
add r8d, 0xffffffff
jne 0x180276ef0
mov ecx, dword [rsp + 0x90]
mov r10, qword [rsp + 0xb8]
mov eax, 0x10000000
mov r9, qword [rsp + 0x98]
shl r12, 4
sub rbx, r12
add r14, r12
add rbp, r12
cmp rbx, 0x10
jae 0x180276e90
mov edi, dword [rsp + 0x30]
mov r8, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xa0]
mov dword [rsp + 0x90], ecx
test rbx, rbx
je 0x180276fd2
mov r12, qword [rsp + 0xa8]
xorps xmm0, xmm0
mov r8, rsi
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, r12
movups xmmword [r12], xmm0
call r10
mov r8d, dword [rsp + 0x90]
add r8d, esi
bswap r8d
mov dword [r15], r8d
jne 0x180276fb0
nop dword [rax]
movzx eax, byte [r15 - 1]
lea r15, [r15 - 1]
add esi, eax
mov byte [r15], sil
shr esi, 8
add r13d, 0xffffffff
jne 0x180276f90
nop word [rax + rax]
mov ecx, edi
inc edi
movzx eax, byte [rcx + rbp]
xor al, byte [rcx + r12]
mov byte [r14 + rcx], al
sub rbx, 1
jne 0x180276fb0
mov rax, qword [rsp + 0xb0]
mov dword [rax], edi
jmp 0x180276fd5
mov dword [r8], edi
mov r12, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1802770b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r15
mov eax, Ordinal_41
call fcn.1803a1670
sub rsp, rax
mov rsi, qword [rsp + 0x88]
mov r10, r9
mov r15, qword [rsp + 0x80]
mov rdi, r8
mov rbp, rdx
mov r12, rcx
mov ebx, dword [rsi]
test ebx, ebx
jns 0x1802770ff
mov dword [rsi], 0xffffffff
add rsp, 0x28
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
je 0x180277124
test rdi, rdi
je 0x180277124
mov eax, ebx
dec rdi
movzx ecx, byte [rax + r15]
xor cl, byte [r12]
inc r12
mov byte [rbp], cl
inc rbp
inc ebx
and ebx, 0xf
jne 0x180277101
mov r9, qword [rsp + 0x90]
cmp rdi, 0x10
jb 0x1802771e9
mov qword [rsp + 0x60], r13
mov rsi, rbp
mov r13, rdi
mov qword [rsp + 0x20], r14
shr r13, 4
mov r14, r12
imul rax, r13, 0xfffffffffffffff0
sub rsi, r15
sub r14, r15
add rdi, rax
mov rax, r13
shl rax, 4
add rbp, rax
mov qword [rsp + 0x68], rbp
add r12, rax
mov rbp, qword [rsp + 0x78]
mov r8, rbp
mov rdx, r15
mov rcx, r15
call r9
cmp ebx, 0x10
jae 0x1802771b5
mov edx, reloc.WS2_32.dll_ntohs
mov ecx, ebx
sub edx, ebx
add rcx, r15
shr edx, 3
inc edx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r14 + rcx]
xor rax, qword [rcx]
mov qword [rsi + rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x1802771a0
mov r9, qword [rsp + 0x90]
add rsi, 0x10
add r14, 0x10
xor ebx, ebx
sub r13, 1
jne 0x180277171
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x88]
mov r10, qword [rsp + 0x78]
test rdi, rdi
je 0x180277216
mov r8, r10
mov rdx, r15
mov rcx, r15
call r9
nop word [rax + rax]
mov ecx, ebx
inc ebx
movzx eax, byte [r15 + rcx]
xor al, byte [rcx + r12]
mov byte [rcx + rbp], al
sub rdi, 1
jne 0x180277200
mov dword [rsi], ebx
add rsp, 0x28
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret