joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a51d0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x690
mov rax, qword [0x1403bf008]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rbx, rdx
mov qword [rsp + 0x68], rdx
xor edi, edi
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x80]
lea ecx, [rdi + 2]
call qword [sym.imp.Secur32.dll_GetUserNameExW]
mov edx, 0x800
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [rsp + 0x70], 0x400
mov dword [rsp + 0x74], 0x400
lea rcx, [rsp + 0x7c]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x74]
lea r8, [rsp + 0x280]
lea rdx, [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x280]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x68]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], di
jne 0x1400a52a0
lea rcx, [rsp + 0x48]
call fcn.140088850
nop
lea r8, [rsp + 0x48]
mov rdx, rbx
call fcn.1400a53f0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400a5301
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a52fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a5325
call fcn.1400ae0c8
mov rax, rbx
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.1400adbc0
mov rbx, qword [rsp + 0x6a0]
add rsp, 0x690
pop rdi
ret
call fcn.1402a9118
int3
Function at 0x1400abca0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400abcab
xor eax, eax
ret
lea r11, [0x140396880]
not ecx
cmp r8, 8
jb 0x1400abd7d
mov r10, r8
shr r10, 3
imul rax, r10, 0xfffffffffffffff8
add r8, rax
nop dword [rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400abcd0
test r8, r8
je 0x1400abdad
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r8, 1
jne 0x1400abd90
not ecx
mov eax, ecx
ret
Function at 0x1400ac0d0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x1403bf008]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [rcx + 0x41], 0
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
je 0x1400ac1e9
mov rcx, qword [rcx + 0x50]
mov rax, rcx
test rcx, rcx
je 0x1400ac11b
cmp dword [rbx + 0x58], edi
jae 0x1400ac11b
call fcn.1400ae0c8
mov qword [rbx + 0x50], 0
jmp 0x1400ac120
test rax, rax
jne 0x1400ac12f
lea ecx, [rdi + rdi]
call fcn.1400ae0d0
mov qword [rbx + 0x50], rax
mov dword [rbx + 0x58], edi
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbp, rdi
call fcn.14029ddb0
test edi, edi
je 0x1400ac1e3
mov qword [rsp + 0x40], r15
xor r11d, r11d
lea r15, [0x140396880]
mov rsi, rdi
nop word [rax + rax]
mov rax, qword [rbx + 0x50]
lea r11, [r11 + 1]
mov edx, dword [rbx + 0x44]
mov ecx, edx
mov r9d, dword [rbx + 0x4c]
mov r8d, r9d
shr edx, 8
movsx r10, byte [r11 + rax - 1]
and r9d, 0xfffd
xor rcx, r10
or r9d, 2
movzx eax, cl
xor edx, dword [r15 + rax*4]
movzx eax, dl
add eax, dword [rbx + 0x48]
imul eax, eax, 0x8088405
mov dword [rbx + 0x44], edx
inc eax
mov ecx, eax
shr rcx, 0x18
mov dword [rbx + 0x48], eax
movzx eax, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r15 + rcx*4]
mov ecx, r9d
xor ecx, 1
mov dword [rbx + 0x4c], r8d
mov rax, qword [rbx + 0x50]
imul ecx, r9d
shr ecx, 8
xor cl, r10b
mov byte [r11 + rax - 1], cl
sub rsi, 1
jne 0x1400ac160
mov r15, qword [rsp + 0x40]
mov rsi, qword [rbx + 0x50]
jmp 0x1400ac1ec
mov rbp, rdi
mov rdx, qword [rbx + 0x30]
test rdx, rdx
je 0x1400ac21e
mov ecx, dword [rbx + 0x38]
lea eax, [rcx + rdi]
cmp eax, dword [rbx + 0x3c]
jb 0x1400ac209
mov dword [rbx + 0x24], 0x30000
jmp 0x1400ac24e
add rcx, rdx
mov r8, rbp
mov rdx, rsi
call fcn.14029ddb0
add dword [rbx + 0x38], edi
mov eax, edi
jmp 0x1400ac250
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400ac247
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x30]
jmp 0x1400ac250
mov dword [rbx + 0x24], 0x1000000
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400adbc0
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400ac4e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1403bf008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
mov rbp, rdx
mov rcx, qword [rcx + 0xb8]
test rcx, rcx
je 0x1400ac560
mov eax, dword [rdi + 0xc4]
mov esi, dword [rdi + 0xc0]
cmp eax, esi
jae 0x1400ac5b0
sub esi, eax
lea rdx, [rcx + rax]
cmp esi, r8d
mov rcx, rbp
cmova esi, r8d
mov r8d, esi
call fcn.14029ddb0
mov ecx, dword [rdi + 0xa0]
mov rdx, rbp
add dword [rdi + 0xc4], esi
add dword [rdi + 0x9c], esi
mov r8d, esi
call fcn.1400abca0
mov dword [rdi + 0xa0], eax
mov eax, esi
jmp 0x1400ac5b2
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x1400ac5a9
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400ac5b0
mov ebx, dword [rsp + 0x30]
mov rdx, rbp
add dword [rdi + 0x9c], ebx
mov r8d, ebx
mov ecx, dword [rdi + 0xa0]
call fcn.1400abca0
mov dword [rdi + 0xa0], eax
mov eax, ebx
jmp 0x1400ac5b2
mov dword [rdi + 0x24], 0x1000000
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400adbc0
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ae7e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ae82a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ae82a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ae82a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ae82a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ae82a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ae82c
xor al, al
add rsp, 0x28
ret

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

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1400b75fe
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400b75e1
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1400b75cc
Function at 0x14011fb50
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1402d2bf0
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 0x1401262a0
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x14012630c
movzx ecx, byte [rcx]
test cl, cl
je 0x14012630c
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, 0x20
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 0x1401262c0
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20
call fcn.1402d2bf0
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x1401263a3
movzx eax, byte [rcx]
test al, al
je 0x1401263a3
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.14017a390
mov r9d, eax
mov edx, ebx
or r9d, esi
lea rdi, [rdi + 1]
mov eax, ebx
mov r8d, r9d
shr r8d, 2
mov ecx, 0x20
xor r8d, r9d
add esi, 0x100
and r8d, 0xf
imul r9d, r9d
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
shl eax, cl
mov ebx, edx
or ebx, eax
movzx eax, byte [rdi]
xor ebx, r9d
test al, al
jne 0x140126340
mov rsi, qword [rsp + 0x30]
mov eax, ebx
shr eax, 0x10
xor eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x14013c990
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1402d2bf0
sub rsp, rax
lea rcx, [0x1403c8b40]
add rsp, 0x28
jmp fcn.14011f9d0
Function at 0x140152950
Capabilities:
Encode data using xor

Disassembly:
push rbx
movsxd rbx, r9d
mov r10, r8
mov r11, rdx
cmp rdx, r8
je 0x140152ab2
mov qword [rsp + 0x10], rsi
lea rsi, [rcx - 1]
not rcx
shr rsi, 0x3f
shr rcx, 0x3f
and rsi, rcx
mov ecx, dword [rdx + 8]
xor ecx, dword [r8 + 8]
dec rsi
and ecx, esi
xor dword [rdx + 8], ecx
xor dword [r8 + 8], ecx
mov ecx, dword [rdx + 0x10]
movq xmm4, rsi
xor ecx, dword [r8 + 0x10]
and ecx, esi
punpcklqdq xmm4, xmm4
xor dword [rdx + 0x10], ecx
xor dword [r8 + 0x10], ecx
mov edx, dword [rdx + 0x14]
mov ecx, dword [r8 + 0x14]
xor rcx, rdx
and ecx, 4
and rcx, rsi
mov eax, ecx
xor eax, edx
mov dword [r11 + 0x14], eax
xor dword [r8 + 0x14], ecx
xor ecx, ecx
mov edx, ecx
test r9d, r9d
jle 0x140152a72
cmp ebx, 2
jb 0x140152a72
mov r9, qword [r8]
lea rax, [rbx - 1]
mov r8, qword [r11]
mov qword [rsp + 0x18], rdi
lea rdi, [rbx - 1]
lea rdi, [r9 + rdi*8]
lea rax, [r8 + rax*8]
cmp r9, rax
ja 0x1401529fe
cmp rdi, r8
jae 0x140152a6d
cmp r9, r10
ja 0x140152a08
cmp rdi, r10
jae 0x140152a6d
cmp r9, r11
ja 0x140152a12
cmp rdi, r11
jae 0x140152a6d
cmp r8, r10
ja 0x140152a1c
cmp rax, r10
jae 0x140152a6d
cmp r8, r11
ja 0x140152a26
cmp rax, r11
jae 0x140152a6d
mov eax, ebx
and eax, 0xfffffffe
nop dword [rax + rax]
movdqu xmm2, xmmword [rcx + r9]
add edx, 2
movdqu xmm1, xmmword [rcx + r8]
lea rcx, [rcx + 0x10]
movdqa xmm3, xmm2
pxor xmm3, xmm1
pand xmm3, xmm4
movdqa xmm0, xmm3
pxor xmm3, xmm2
pxor xmm0, xmm1
movdqu xmmword [rcx + r8 - 0x10], xmm0
movdqu xmmword [rcx + r9 - 0x10], xmm3
cmp edx, eax
jl 0x140152a30
mov rdi, qword [rsp + 0x18]
movsxd rax, edx
cmp rax, rbx
jge 0x140152aad
nop word [rax + rax]
mov rcx, qword [r11]
mov rdx, qword [rcx + rax*8]
lea r8, [rcx + rax*8]
mov rcx, qword [r10]
mov r9, rdx
xor r9, qword [rcx + rax*8]
and r9, rsi
xor rdx, r9
mov qword [r8], rdx
mov rcx, qword [r10]
xor qword [rcx + rax*8], r9
inc rax
cmp rax, rbx
jl 0x140152a80
mov rsi, qword [rsp + 0x10]
pop rbx
ret
Function at 0x14016ab60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x280
call fcn.1402d2bf0
sub rsp, rax
mov rax, qword [0x1403bf008]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x1403c8e28], 0
lea rax, [0x14016a4e0]
mov qword [rsp + 0x28], rax
lea rbx, str.getaddrinfo
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x14016a920]
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
lea rax, [0x14016a480]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
jne 0x14016ad39
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14016ad2f
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1402a9190
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1402bef30
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14016ac5a
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14016acba
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1402a9190
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.1402bef30
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14016ad27
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14016acba
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14016ad27
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 0x14016ad16
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x14016acd0
mov rax, qword [rsp + 0x28]
mov qword [0x1403c3430], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1403c3440], rax
mov rax, qword [rsp + 0x48]
mov qword [0x1403c3450], rax
jmp 0x14016ad1f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x1403c8e28], 1
mov rax, rbp
lea rcx, str.getaddrinfo
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400adbc0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
Function at 0x14016ad70
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.1402d2bf0
sub rsp, rax
mov rax, qword [0x1403bf008]
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, 0x401
mov qword [rsp + 0x38], rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x20], r9w
mov r12d, ebp
call fcn.14029e460
xor edx, edx
lea rcx, [rsp + 0x450]
mov r8d, 0x401
call fcn.14029e460
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.1402a8c84
lea r15, [rbp - 1]
nop
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 0x14016af6e
cmp word [rax + 0x10], 2
jne 0x14016ae97
cmp word [rax + 0x12], 4
jne 0x14016ae97
mov rbx, qword [rax + 0x18]
mov rax, qword [rbx]
test rax, rax
je 0x14016ae92
nop dword [rax]
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x20]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call fcn.14016afd0
mov qword [rsi], rax
test rax, rax
je 0x14016af67
add rbx, 8
lea rsi, [rax + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x14016ae60
mov rbx, qword [rsp + 0x30]
mov r8, qword [r14]
mov r9d, 0x400
mov rcx, rdi
lea edx, [r9 + 1]
call fcn.1402a8c84
cmp qword [r13], rbp
jne 0x14016af10
mov rax, r15
inc rax
cmp byte [rdi + rax], bpl
jne 0x14016aeb5
test rax, rax
je 0x14016af88
mov r8, rdi
mov rax, rbx
sub r8, rbx
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14016aee3
inc rax
test ecx, ecx
jne 0x14016aed0
test edx, edx
je 0x14016af88
inc r12d
cmp r12d, 0x10
je 0x14016af88
mov r14, qword [rsp + 0x38]
mov rax, rbx
mov rbx, rdi
mov rdi, rax
mov qword [rsp + 0x30], rbx
jmp 0x14016ae20
cmp dword [rsp + 0x8c0], ebp
je 0x14016af9b
nop dword [rax]
cmp byte [rdi + r15 + 1], bpl
lea r15, [r15 + 1]
jne 0x14016af20
lea rdx, [r15 + 1]
mov ecx, 1
call fcn.1402b6fec
mov rbx, rax
test rax, rax
jne 0x14016af46
mov rbx, rbp
jmp 0x14016af55
mov r8, rdi
lea rdx, [r15 + 1]
mov rcx, rax
call fcn.1402a9190
mov rax, qword [r13]
mov qword [rax + 0x18], rbx
mov rax, qword [r13]
cmp qword [rax + 0x18], rbp
jne 0x14016af9b
mov ebp, 8
jmp 0x14016af9b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2af9
je 0x14016af96
sub ecx, 1
je 0x14016af8f
sub ecx, 1
jne 0x14016af96
mov ebp, 0x2afb
jmp 0x14016af9b
mov ebp, 0x2afa
jmp 0x14016af9b
mov ebp, 0x2af9
mov eax, ebp
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1400adbc0
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 0x14016cde0
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.1402d2bf0
sub rsp, rax
mov r14, qword [rsp + 0xa8]
lea r10, [rax - 0x51]
mov rbp, qword [rsp + 0xb0]
xor r11d, r11d
cmp r14, 1
mov eax, r11d
mov r13, r9
mov r12, r8
mov r9, qword [rcx]
setne al
add rax, rbp
mov rsi, rcx
cmp rax, r9
jbe 0x14016ce3e
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 0x14016cf43
lea r10, [r8 - 1]
add r10, r9
movzx ebx, byte [r10]
cmp dword [rsp + 0xb8], r11d
je 0x14016ce7b
sub r9, rbx
mov eax, 1
sub r9, rbp
dec r9
mov qword [rcx], r9
jmp 0x14016cf7a
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 0x14016cf1d
mov qword [rsp + 0x90], rdi
mov rdi, rbx
shr rdi, 0x3f
nop dword [rax]
nop dword [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
xor cl, dil
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 0x14016ced0
mov rdx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
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.14016ca10
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
Function at 0x140171c00
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x28
call fcn.1402d2bf0
sub rsp, rax
cmp dword [0x1403c8ec0], 0
jne 0x140171d80
mov qword [rsp + 0x30], rbx
lea r8d, [rax + 8]
mov qword [rsp + 0x38], rbp
lea rcx, str.OPENSSL_ia32cap
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
lea rdi, [0x1403c8e60]
mov rdx, rdi
mov qword [rsp + 0x20], r14
mov dword [0x1403c8ec0], 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x2e
ja 0x140171d42
movzx ebx, word [0x1403c8e60]
xor ebp, ebp
cmp bx, 0x7e
mov ecx, ebp
mov r14d, 2
cmove ecx, r14d
add rcx, rdi
call fcn.140171d90
mov rsi, rax
cmp bx, 0x7e
jne 0x140171cc1
lea rcx, [0x1403cba30]
mov rbx, rax
call fcn.140001030
not rsi
movabs rcx, 0xedfff7fdffffffff
and rax, rsi
and ebx, 0x1000000
mov rsi, rax
and rsi, rcx
test rbx, rbx
cmove rsi, rax
jmp 0x140171cda
cmp word [0x1403c8e60], 0x3a
jne 0x140171cda
lea rcx, [0x1403cba30]
call fcn.140001030
mov rsi, rax
movzx eax, word [0x1403c8e60]
test ax, ax
je 0x140171cf8
lea rdi, [rdi + 2]
cmp ax, 0x3a
je 0x140171d01
movzx eax, word [rdi]
test ax, ax
jne 0x140171ce6
mov qword [0x1403cba38], rbp
jmp 0x140171d51
movzx ebx, word [rdi]
cmp bx, 0x7e
cmove rbp, r14
lea rcx, [rdi + rbp]
call fcn.140171d90
mov rcx, rax
shr rcx, 0x20
cmp bx, 0x7e
jne 0x140171d34
not eax
not ecx
and dword [0x1403cba38], eax
and dword [0x1403cba3c], ecx
jmp 0x140171d51
mov dword [0x1403cba38], eax
mov dword [0x1403cba3c], ecx
jmp 0x140171d51
lea rcx, [0x1403cba30]
call fcn.140001030
mov rsi, rax
mov r14, qword [rsp + 0x20]
mov eax, esi
mov rdi, qword [rsp + 0x48]
bts eax, 0xa
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
shr rsi, 0x20
mov dword [0x1403cba34], esi
mov rsi, qword [rsp + 0x40]
mov dword [0x1403cba30], eax
add rsp, 0x28
ret

Function at 0x14017a970
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x28
call fcn.1402d2bf0
sub rsp, rax
cmp dword [0x1403c9040], 0
jne 0x14017aa2a
xor edx, edx
mov dword [0x1403c9040], 1
mov r8d, 0x198
lea rcx, [0x1403c9050]
call fcn.14029e460
mov ecx, 0x202
lea rdx, [0x1403c9050]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14017aa2a
call fcn.1401263b0
lea r8, str.BIO_sock_init
mov edx, 0x94
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1401264d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call fcn.1401265d0
call fcn.1401263b0
lea r8, str.BIO_sock_init
mov edx, 0x96
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1401264d0
xor r8d, r8d
lea edx, [r8 + 0x7a]
lea ecx, [rdx - 0x5a]
call fcn.1401265d0
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret
Function at 0x14017aa40
Capabilities:
Set socket configuration

Disassembly:
push rbx
mov eax, 0x20
call fcn.1402d2bf0
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 0x14017aaa2
call fcn.1401263b0
lea r8, str.BIO_socket_ioctl
mov edx, 0xd1
lea rcx, str.crypto_bio_bio_sock.c
call fcn.1401264d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call fcn.1401265d0
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x14017aab0
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x260
call fcn.1402d2bf0
sub rsp, rax
mov rax, qword [0x1403bf008]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov edi, ecx
mov rbx, r8
mov esi, edx
cmp ecx, 0x3f
ja 0x14017ab42
test rbx, rbx
jne 0x14017aaea
lea eax, [r8 + 1]
jmp 0x14017ab47
xor ecx, ecx
call fcn.1402b2704
mov rcx, rax
cmp rbx, rax
jge 0x14017aafd
xor eax, eax
jmp 0x14017ab47
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 0x14017ab47
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400adbc0
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret