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

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44e098
movzx edx, byte [rax]
nop
test edx, edx
jne 0x44df5c
test r8b, r8b
jne 0x44df5c
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x44df6f
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44e058
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x44e046
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x44e03c
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x44dfc3
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x44e006
mov eax, 1
cmp rax, rbx
ja 0x44dff5
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.0045fba0
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x44e034
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x44dffd
mov r8d, eax
mov eax, r10d
jmp 0x44dfc8
mov rcx, rbx
call fcn.0045fae0
xor eax, eax
mov rcx, rax
call fcn.0045fae0
mov eax, r8d
mov rcx, rbx
call fcn.0045fba0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44e08e
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x44e051
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44df75
mov eax, edx
mov rcx, rbx
call fcn.0045fae0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0045fae0
nop
int3
Function at 0x455780
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x455839
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x00455880]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045d340
xorps xmm15, xmm15
mov r14, qword [0x005bd930]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045d480
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00455780
Function at 0x45f520
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x402e6f
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00409700
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045d480
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x402e40
cmp byte [0x005bd74f], 0
je 0x45f535
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45c580
jmp 0x402e40

Function at 0x45f540
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005bda20]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005bd74f], 0
je 0x45f575
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005bdd60]
aesenc xmm0, xmmword [0x005bdd70]
aesenc xmm0, xmmword [0x005bdd80]
movq rax, xmm0
ret
jmp 0x409900

Function at 0x45f580
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005bda20]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005bd74f], 0
je 0x45f5b6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005bdd60]
aesenc xmm0, xmmword [0x005bdd70]
aesenc xmm0, xmmword [0x005bdd80]
movq rax, xmm0
ret
jmp 0x409960

Function at 0x460fa0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005bdce0]
mov qword [rsp + 8], rdx
lea r8d, [0x005bd768]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.0045f460
add rsp, 0x30
ret

Function at 0x4614e0
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x46150c
call fcn.0045f460
shl rcx, 3
add rcx, 0x1480
mov qword [0x005bd930], rcx
ret
Function at 0x14106a898
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14106a8a2
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14106a8cb
pop rbp
sub rbp, 0x33
sub rbp, 0x106a898
sub rsp, 0x20
jmp 0x14106a8ea
mov rax, 0x106a898
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x619014c9
xor byte [rax], dl
inc rax
dec rcx
jne 0x14106a909
jmp 0x14106a920
add dword [rax + 0x20], 0xc9f54042
leave
leave
or dword [rax + 8], 0xc9c9c8c1
or eax, 0x90e8120
retf 0xc9c9
Function at 0x14000b972
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbp
push rbx
mov eax, 0x5068
call fcn.14005fc20
sub rsp, 0x5068
mov r13, r8
mov rbp, rdx
mov r15, rcx
mov rax, qword [0x140079508]
mov qword [rsp + 0x5058], rax
call fcn.140006c40
mov r14, rax
test r14, r14
je 0x14000bbbb
mov r8, qword [rbp]
mov qword [rsp + 0x5050], 0x1000
xor ecx, ecx
xor edx, edx
xor eax, eax
xor r9d, r9d
test r8, r8
je 0x14000b9dd
mov edx, dword [r13]
mov rax, r8
mov qword [rsp + 0x5048], rbp
mov rdi, r14
mov qword [rsp + 0x5040], r13
lea r8, [rsp + 0x30]
mov r14, rax
mov r12, r15
mov r15d, edx
mov ebx, ecx
mov rbp, r8
mov esi, r9d
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x5050]
mov rcx, rdi
mov rdx, r12
mov r8, rbp
call fcn.140006016
mov r13d, eax
test r13d, r13d
jne 0x14000bb20
mov r10, qword [rsp + 0x5050]
mov byte [rsp + r10 + 0x30], 0
mov r11, qword [rdi + 0x178]
mov r10d, dword [r11 + 0x38]
test r10d, 0x4000000
jne 0x14000ba72
mov rcx, rbp
xor eax, eax
movzx edx, byte [rcx + rax]
test edx, edx
je 0x14000ba70
movzx edx, byte [rcx + rax + 1]
add rax, 2
test edx, edx
jne 0x14000ba57
add rax, 0xffffffffffffffff
jmp 0x14000ba7a
mov rcx, rbp
call sub.oranls11.dll_lxsulen
cmp eax, 1
ja 0x14000ba98
test esi, esi
jne 0x14000bb20
mov qword [rsp + 0x5050], 0x1000
jmp 0x14000ba06
movzx r10d, byte [rbp]
cmp r10d, 0x23
je 0x14000ba87
mov esi, 1
lea r13d, [rbx + rax]
lea edx, [rbx + rax + 1]
cmp r15d, edx
jae 0x14000baee
mov edx, edx
and rdx, 0xfffffffffffff000
add rdx, 0x1000
mov r15d, edx
test r14, r14
je 0x14000bb94
mov rcx, rdi
mov edx, r15d
mov r8, r14
mov r9d, ebx
call fcn.14000aea8
mov r14, rax
test r14, r14
je 0x14000bbab
mov r8, qword [rdi + 0x178]
mov ebx, ebx
add rbx, r14
lea r9, [rdi + 0x998]
mov rcx, rbx
mov rdx, rbp
call sub.oranls11.dll_lxscop
mov qword [rsp + 0x5050], 0x1000
mov ebx, r13d
jmp 0x14000ba06
mov rbp, qword [rsp + 0x5048]
mov ecx, ebx
mov rax, r14
mov r14d, r13d
mov edx, r15d
mov r13, qword [rsp + 0x5040]
mov qword [rbp], rax
mov dword [r13], edx
cmp r14d, 7
jne 0x14000bb70
test ecx, ecx
je 0x14000bb70
mov rcx, qword [rsp + 0x5058]
call fcn.14005fbf0
xor eax, eax
add rsp, 0x5068
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x5058]
call fcn.14005fbf0
mov eax, r14d
add rsp, 0x5068
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
mov edx, r15d
call fcn.14000afa0
mov r14, rax
test r14, r14
jne 0x14000baee
mov ecx, 1
call qword [sym.imp.MSVCR80.dll_exit]
jmp 0x14000baee
mov qword [rsp + 0x5050], 0
call qword [sym.imp.MSVCR80.dll___iob_func]
add rax, 0x60
mov rcx, rax
lea rdx, str.Error_retrieving_core_context._n
call qword [sym.imp.MSVCR80.dll_fprintf]
mov ecx, 1
call qword [sym.imp.MSVCR80.dll_exit]
jmp 0x14000b9b8
Function at 0x14001f7e8
Capabilities:
Get hostname
Initialize winsock library
Terminate process

Disassembly:
push rbp
sub rsp, 0x200
lea rbp, [rsp + 0x20]
mov rax, qword [0x140079508]
mov qword [rbp + 0x1f0], rcx
mov ecx, 0x202
mov qword [rbp + 0x1d0], rax
lea rdx, [rbp]
call qword [sym.imp.orauts.dll_WSAStartup]
cmp eax, 0xffffffff
je 0x14001fa35
mov rax, qword [rbp + 0x1f0]
test rax, rax
je 0x14001fa4b
lea rdx, [rax + 0x120]
mov qword [rbp + 0x1b8], rdx
add rax, 0xa2f
and rax, 0xfffffffffffffff0
mov rcx, rax
lea rdx, [rbp - 0x20]
call sub.MSVCR80.dll__setjmp
test eax, eax
jne 0x14001fa16
mov rcx, qword [rbp + 0x1f0]
lea rdx, [rbp + 0x1ac]
lea r8, [rbp + 0x1c0]
add rcx, 0x18
call sub.oracore11.dll_sldxgd
movsx rdx, word [rbp + 0x1ac]
imul eax, edx, 0x5c640
movsx rcx, byte [rbp + 0x1ae]
imul r8d, ecx, 0xfd200
add eax, r8d
movsx r9, byte [rbp + 0x1af]
imul r10d, r9d, 0x15180
movsx r11, byte [rbp + 0x1b0]
imul r8d, r11d, 0xe10
movsx rcx, byte [rbp + 0x1b1]
add eax, r10d
mov edx, ecx
shl edx, 2
shl ecx, 6
sub ecx, edx
movsx rdx, byte [rbp + 0x1b2]
add edx, dword [rbp + 0x1c0]
add r8d, ecx
add r8d, edx
add eax, r8d
mov dword [rbp + 0x1c8], eax
lea rcx, [rbp + 0x1c8]
call sub.oracore11.dll_lmtrand
mov ecx, eax
mov r9, qword [rbp + 0x1b8]
mov eax, 0xd1b71759
mul ecx
shr edx, 0xd
imul r8d, edx, 0x2710
mov edx, 8
sub ecx, r8d
mov dword [r9], ecx
lea rcx, [rbp + 0x198]
call qword [sym.imp.WS2_32.dll_gethostname]
mov r8, qword [rbp + 0x1b8]
movsx r9, byte [rbp + 0x19c]
movsx r11, byte [rbp + 0x198]
movsx rcx, byte [rbp + 0x19d]
add r9d, 1
add r11d, 1
imul r11d, r9d
movsx r9, byte [rbp + 0x199]
mov dword [rbp + 0x1c4], 4
mov eax, 0x10624dd3
mul r11d
mov eax, 0x10624dd3
add ecx, 1
shr edx, 6
imul r10d, edx, 0x3e8
add r9d, 1
imul r9d, ecx
mul r9d
sub r11d, r10d
movsx rcx, byte [rbp + 0x19a]
mov dword [r8 + 4], r11d
shr edx, 6
imul eax, edx, 0x3e8
add ecx, 1
sub r9d, eax
movsx rax, byte [rbp + 0x19e]
mov dword [r8 + 8], r9d
add eax, 1
imul ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
sub ecx, eax
movsx rax, byte [rbp + 0x19f]
mov dword [r8 + 0xc], ecx
movsx rcx, byte [rbp + 0x19b]
add eax, 1
add ecx, 1
imul ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
sub ecx, eax
mov dword [r8 + 0x10], ecx
mov rcx, qword [rbp + 0x1d0]
call fcn.14005fbf0
lea rsp, [rbp + 0x1e0]
pop rbp
ret
lea rcx, [rbp + 0x1a0]
call sub.oracore11.dll_sltmgcs
imul eax, eax, 0x25
add eax, 0x612
mov dword [rbp + 0x1c8], eax
jmp 0x14001f8ec
call qword [sym.imp.orauts.dll_WSACleanup]
mov ecx, 1
call qword [sym.imp.MSVCR80.dll_exit]
jmp 0x14001f822
mov rcx, qword [rbp + 0x1d0]
call fcn.14005fbf0
lea rsp, [rbp + 0x1e0]
pop rbp
ret
Function at 0x14001fa60
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov eax, dword [0x1400795a4]
cmp eax, 0x4d2
jne 0x14001fa80
mov qword [0x140079598], rdx
add rsp, 0x38
ret
mov ecx, dword [0x1400795a0]
call qword [sym.imp.orauts.dll_TlsSetValue]
test eax, eax
jne 0x14001fabc
mov eax, dword [0x140078044]
test eax, 0x7fffffff
je 0x14001fabc
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
xor ecx, ecx
xor edx, edx
lea r8, str.TlsSetValue_failed__n
xor r9d, r9d
call fcn.1400053e4
add rsp, 0x38
ret

Function at 0x14001fac2
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400795a4]
cmp eax, 0x4d2
je 0x14001faef
mov ecx, dword [0x1400795a0]
test ecx, ecx
jne 0x14001fae4
xor eax, eax
add rsp, 0x28
ret
call qword [sym.imp.orauts.dll_TlsGetValue]
add rsp, 0x28
ret
mov rax, qword [0x140079598]
add rsp, 0x28
ret
Function at 0x140021468
Capabilities:
Encrypt data using des

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x68
mov r9, r8
mov r8, rdx
mov rax, qword [0x140079508]
mov qword [rsp + 0x60], rax
xor eax, eax
mov r14d, eax
lea rdx, [rsp + 0x28]
mov rbp, rdx
mov rdi, rcx
mov r12, r8
mov r13, r9
lea r15, [0x140000000]
movzx r10d, r14b
movzx r9d, byte [r15 + r10 + 0x63300]
mov rcx, rbp
mov edx, r14d
mov r8, rdi
call fcn.140021270
add r14d, 1
cmp r14d, 0x40
jb 0x1400214a7
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x4c], eax
mov rdx, rbp
mov r11d, dword [rdx]
mov rcx, rdi
mov r8, r12
mov qword [rsp + 0x30], rcx
mov r9, r13
mov qword [rsp + 0x38], r9
lea r13, [rsp + 0x20]
xor r10d, r10d
mov rbx, r8
mov edi, r10d
mov r12d, r11d
mov r14, qword [rsp + 0x38]
mov esi, eax
xor ebp, ebp
lea r8, [rsp + 0x4c]
movzx eax, bpl
movzx r9d, byte [rax + r14]
mov rcx, r13
mov edx, ebp
call fcn.1400213e8
add ebp, 1
cmp ebp, 0x30
jb 0x140021507
mov qword [rsp + 0x40], rbx
movzx edx, dil
lea rax, [rdx + rdx*2]
movzx ecx, byte [rbx + rax*2]
movzx ebp, byte [rbx + rax*2 + 1]
movzx r9d, byte [rbx + rax*2 + 2]
movzx r14d, byte [rbx + rax*2 + 3]
movzx r15d, byte [rbx + rax*2 + 4]
movzx eax, byte [rbx + rax*2 + 5]
xor byte [r13], cl
xor byte [rsp + 0x21], bpl
xor ebp, ebp
xor byte [rsp + 0x22], r9b
xor byte [rsp + 0x23], r14b
xor byte [rsp + 0x24], r15b
xor byte [rsp + 0x25], al
lea rcx, [rsp + 0x58]
movzx ebx, bpl
lea r14d, [rbx + rbx*2]
lea r15d, [r14 + r14]
xor eax, eax
mov edx, 6
mov byte [rsp + 0x54], al
mov r8, r13
mov byte [rsp + 0x58], al
mov r9d, r15d
call fcn.140021366
lea rcx, [rsp + 0x58]
lea r9d, [r14 + r14 + 5]
mov edx, 7
mov r8, r13
call fcn.140021366
mov r14d, 3
lea rcx, [rsp + 0x54]
add r15d, 1
add r14d, 1
mov edx, r14d
mov r8, r13
mov r9d, r15d
call fcn.140021366
cmp r14d, 7
jb 0x1400215ba
mov r15d, ebx
shl r15, 6
shl ebx, 2
mov r14d, 4
movzx edx, byte [rsp + 0x58]
shl rdx, 4
movzx eax, byte [rsp + 0x54]
mov r9d, r14d
add rdx, rax
lea rcx, [rsp + 0x50]
add rdx, r15
lea rax, [0x140063340]
lea r8, [rax + rdx]
mov edx, ebx
call fcn.140021366
add r14d, 1
add ebx, 1
cmp r14d, 8
jb 0x1400215eb
add ebp, 1
cmp ebp, 8
jb 0x140021572
mov rbx, qword [rsp + 0x40]
xor ebp, ebp
lea r14, [0x140000000]
lea rcx, [rsp + 0x48]
lea r8, [rsp + 0x50]
movzx eax, bpl
movzx r9d, byte [r14 + rax + 0x63588]
mov edx, ebp
call fcn.1400212ea
add ebp, 1
cmp ebp, 0x20
jb 0x140021640
mov eax, r12d
xor eax, dword [rsp + 0x48]
mov r12d, esi
add edi, 1
cmp edi, 0x10
mov dword [rsp + 0x4c], eax
jb 0x1400214fe
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, esi
mov dword [rsp + 0x2c], r8d
mov dword [rdx], eax
xor eax, eax
mov ebp, eax
mov r13, rdx
mov r14, rcx
lea r15, [0x140000000]
movzx r10d, bpl
movzx r9d, byte [r15 + r10 + 0x63540]
mov rcx, r14
mov edx, ebp
mov r8, r13
call fcn.140021270
add ebp, 1
cmp ebp, 0x40
jb 0x1400216a5
mov rcx, qword [rsp + 0x60]
call fcn.14005fbf0
add rsp, 0x68
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140022200
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
sub rsp, 0x1e8
mov r14, r9
mov r13, r8
mov r8, rdx
mov rdx, rcx
mov r12, qword [rsp + 0x230]
mov rax, qword [0x140079508]
mov qword [rsp + 0x1e0], rax
lea r10, [rsp + 0x120]
pxor xmm0, xmm0
movaps xmmword [r10], xmm0
movaps xmmword [r10 + 0x10], xmm0
movaps xmmword [r10 + 0x20], xmm0
movaps xmmword [r10 + 0x30], xmm0
lea rax, [rsp + 0x20]
pxor xmm0, xmm0
movaps xmmword [rax], xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x60], xmm0
movaps xmmword [rax + 0x70], xmm0
movaps xmmword [rax + 0x80], xmm0
movaps xmmword [rax + 0x90], xmm0
movaps xmmword [rax + 0xa0], xmm0
movaps xmmword [rax + 0xb0], xmm0
movaps xmmword [rax + 0xc0], xmm0
movaps xmmword [rax + 0xd0], xmm0
movaps xmmword [rax + 0xe0], xmm0
movaps xmmword [rax + 0xf0], xmm0
lea rax, [rsp + 0x160]
pxor xmm0, xmm0
movaps xmmword [rax], xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x30], xmm0
lea rax, [rsp + 0x1a0]
pxor xmm0, xmm0
movaps xmmword [rax], xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x30], xmm0
cmp r8, 0x40
jbe 0x14002232c
mov rcx, rdx
mov rdx, r8
mov r8d, 0xbeaf
mov r9, r12
call fcn.140020dea
mov r15d, eax
test r15d, r15d
jne 0x14002246a
lea rcx, [rsp + 0x120]
mov r8d, dword [r12 + 8]
lea rdx, [r12 + 0xc]
call fcn.14005b480
mov r15d, 0x10
jmp 0x14002233f
lea rcx, [rsp + 0x120]
call fcn.14005b480
mov r15d, 0x40
lea rcx, [rsp + 0x160]
lea rdx, [rsp + 0x120]
mov r8, r15
call fcn.14005b480
lea rcx, [rsp + 0x1a0]
lea rdx, [rsp + 0x120]
mov r8, r15
call fcn.14005b480
xor edx, edx
xor eax, eax
xor byte [rsp + rdx + 0x160], 0x36
add eax, 1
xor byte [rsp + rdx + 0x1a0], 0x5c
mov edx, eax
mov eax, edx
cmp eax, 0x40
jb 0x140022373
movaps xmm0, xmmword [rsp + 0x160]
movaps xmmword [rsp + 0x20], xmm0
movaps xmm1, xmmword [rsp + 0x170]
movaps xmmword [rsp + 0x30], xmm1
movaps xmm2, xmmword [rsp + 0x180]
movaps xmmword [rsp + 0x40], xmm2
movaps xmm3, xmmword [rsp + 0x190]
movaps xmmword [rsp + 0x50], xmm3
lea rcx, [rsp + 0x60]
mov rdx, r13
mov r8, r14
call fcn.14005b480
mov r8d, 0xbeaf
lea rcx, [rsp + 0x20]
add r14, 0x40
mov r14d, r14d
mov rdx, r14
mov r9, r12
call fcn.140020dea
mov r15d, eax
test r15d, r15d
jne 0x14002246a
movaps xmm0, xmmword [rsp + 0x1a0]
movaps xmmword [rsp + 0x20], xmm0
movaps xmm1, xmmword [rsp + 0x1b0]
movaps xmmword [rsp + 0x30], xmm1
lea rdx, [r12 + 0xc]
movaps xmm2, xmmword [rsp + 0x1c0]
movaps xmmword [rsp + 0x40], xmm2
movaps xmm3, xmmword [rsp + 0x1d0]
movaps xmmword [rsp + 0x50], xmm3
mov rax, qword [rdx]
mov qword [rsp + 0x60], rax
mov rdx, qword [rdx + 8]
mov qword [rsp + 0x68], rdx
mov r8d, 0xbeaf
lea rcx, [rsp + 0x20]
mov edx, 0x50
mov r9, r12
call fcn.140020dea
mov r15d, eax
test r15d, r15d
jne 0x14002246a
mov dword [r12], 0xc8b9
mov rcx, qword [rsp + 0x1e0]
call fcn.14005fbf0
mov eax, r15d
add rsp, 0x1e8
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14004d0cc
Capabilities:
Get common file path

Disassembly:
push r15
push rbp
sub rsp, 0x288
mov r15d, ecx
mov rax, qword [0x140079508]
mov qword [rsp + 0x278], rax
mov r10d, dword [0x1400795f8]
lea rdx, [0x14004d858]
mov qword [rsp + 0x240], rdx
lea r8, [0x14004d488]
mov qword [rsp + 0x250], r8
lea r9, [fcn.14004d430]
test r10d, r10d
mov qword [rsp + 0x260], r9
jne 0x14004d2e8
lea rcx, [rsp + 0x12c]
lea rax, str.freeaddrinfo
mov qword [rsp + 0x258], rax
lea rbp, str.getnameinfo
lea r8, str.getaddrinfo
mov qword [rsp + 0x248], rbp
mov qword [rsp + 0x238], r8
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14004d2ac
lea rcx, [rsp + 0x20]
lea r8, [rsp + 0x12c]
mov edx, 0x10c
call qword [sym.imp.MSVCR80.dll_strcpy_s]
lea rcx, [rsp + 0x20]
mov edx, 0x10c
lea r8, str.ws2_32
call qword [sym.imp.MSVCR80.dll_strcat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.orauts.dll_LoadLibraryA]
mov rbp, rax
test rbp, rbp
je 0x14004d1ca
mov rcx, rbp
lea rdx, str.getaddrinfo
call qword [sym.imp.orauts.dll_GetProcAddress]
test rax, rax
je 0x14004d31a
jmp 0x14004d229
lea rcx, [rsp + 0x20]
lea r8, [rsp + 0x12c]
mov edx, 0x10c
call qword [sym.imp.MSVCR80.dll_strcpy_s]
lea rcx, [rsp + 0x20]
mov edx, 0x10c
lea r8, str.wship6
call qword [sym.imp.MSVCR80.dll_strcat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.orauts.dll_LoadLibraryA]
mov rbp, rax
test rbp, rbp
je 0x14004d2ac
mov rcx, rbp
lea rdx, str.getaddrinfo
call qword [sym.imp.orauts.dll_GetProcAddress]
test rax, rax
je 0x14004d348
mov qword [rsp + 0x268], r13
mov qword [rsp + 0x270], r14
xor eax, eax
mov r13, rax
mov rdx, qword [rsp + r13 + 0x238]
mov rcx, rbp
call qword [sym.imp.orauts.dll_GetProcAddress]
mov qword [rsp + r13 + 0x240], rax
test rax, rax
je 0x14004d329
add r13, 0x10
cmp r13, 0x30
jl 0x14004d23e
mov r13, qword [rsp + 0x268]
mov r14, qword [rsp + 0x270]
test rbp, rbp
je 0x14004d2ac
mov rax, qword [rsp + 0x240]
mov rdx, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x260]
mov qword [0x140078ad0], rax
mov qword [0x140078ae0], rdx
mov qword [fcn.14004d430], rcx
mov dword [0x1400795f8], 1
movzx edx, r15w
shl rdx, 4
lea rax, [0x140000000]
mov rbp, qword [rax + rdx + 0x78ad0]
mov rcx, qword [rsp + 0x278]
call fcn.14005fbf0
mov rax, rbp
add rsp, 0x288
pop rbp
pop r15
ret
movzx edx, r15w
shl rdx, 4
lea rax, [0x140000000]
mov rbp, qword [rax + rdx + 0x78ad0]
mov rcx, qword [rsp + 0x278]
call fcn.14005fbf0
mov rax, rbp
add rsp, 0x288
pop rbp
pop r15
ret
mov rcx, rbp
call qword [sym.imp.orauts.dll_FreeLibrary]
nop
jmp 0x14004d1ca
mov r13, qword [rsp + 0x268]
mov r14, qword [rsp + 0x270]
mov rcx, rbp
call qword [sym.imp.orauts.dll_FreeLibrary]
nop
jmp 0x14004d2ac
mov rcx, rbp
call qword [sym.imp.orauts.dll_FreeLibrary]
nop
jmp 0x14004d2ac
Function at 0x14004df58
Capabilities:
Resolve dns

Disassembly:
push r13
push r12
push rdi
push rsi
sub rsp, 0x38
mov r13d, r9d
mov r12d, r8d
mov edi, edx
mov rax, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov qword [rsi], 0
mov byte [rax], 0
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x14004dfda
call qword [sym.imp.orauts.dll_WSAGetLastError]
cmp eax, 0x2af9
je 0x14004dfba
cmp eax, 0x2afa
je 0x14004dfca
cmp eax, 0x2afb
jne 0x14004dfba
mov eax, 0x2afb
add rsp, 0x38
pop rsi
pop rdi
pop r12
pop r13
ret
mov eax, 0x2af9
add rsp, 0x38
pop rsi
pop rdi
pop r12
pop r13
ret
mov eax, 0x2afa
add rsp, 0x38
pop rsi
pop rdi
pop r12
pop r13
ret
movsx rdx, word [rax + 0x10]
cmp edx, 2
jne 0x14004e060
movsx rdx, word [rax + 0x12]
cmp rdx, 4
jne 0x14004e060
mov rdx, qword [rax + 0x18]
mov rcx, qword [rax + 0x18]
mov r9, qword [rcx]
add rdx, 8
test r9, r9
je 0x14004e060
mov qword [rsp + 0x20], r14
mov r14d, r13d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x30], rbp
mov r13d, r12d
mov r12d, edi
mov rdi, rsi
mov rsi, rax
mov rbp, rdx
mov r9d, dword [r9]
mov ecx, r12d
mov edx, r13d
mov r8d, r14d
call fcn.14004dc7c
mov qword [rdi], rax
test rax, rax
je 0x14004e089
mov r9, qword [rbp]
lea rdi, [rax + 0x28]
add rbp, 8
test r9, r9
jne 0x14004e024
mov r14, qword [rsp + 0x20]
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
mov r8, qword [rax]
mov edx, 0x401
mov r9d, 0x400
call qword [sym.imp.MSVCR80.dll_strncpy_s]
xor eax, eax
add rsp, 0x38
pop rsi
pop rdi
pop r12
pop r13
ret
mov r14, qword [rsp + 0x20]
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov eax, 8
add rsp, 0x38
pop rsi
pop rdi
pop r12
pop r13
ret