joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005d400
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x1f8]
mov eax, 0x2f8
call fcn.1801c83e0
sub rsp, rax
mov rax, qword [0x1802d1460]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rsi, qword [rbp + 0x258]
mov r12, qword [rbp + 0x268]
mov rdi, rcx
mov rcx, rsi
mov dword [rsp + 0x38], r9d
mov qword [rsp + 0x40], r8
mov ebx, edx
mov r15d, 1
call fcn.18001d1d0
mov dword [rsp + 0x34], eax
test eax, eax
jns 0x18005d469
xor eax, eax
jmp 0x18005d687
lea rcx, [rbp + 0x70]
mov qword [rsp + 0x2f0], r13
call fcn.180076b30
mov r13d, dword [rbp + 0x260]
test rdi, rdi
jne 0x18005d48a
xor ebx, ebx
jmp 0x18005d4ae
cmp ebx, 0xffffffff
jne 0x18005d4ae
xor ebx, ebx
mov rax, rdi
cmp byte [rdi], bl
je 0x18005d4aa
cmp ebx, 0x80000000
jae 0x18005d4aa
inc rax
inc ebx
cmp byte [rax], 0
jne 0x18005d498
btr ebx, 0x1f
lea rcx, [rbp + 0x70]
mov r9, rsi
mov r8d, ebx
mov rdx, rdi
mov qword [rsp + 0x20], 0
call fcn.1800767d0
test eax, eax
jne 0x18005d4dd
lea rcx, [rbp + 0x70]
call fcn.180076c10
xor eax, eax
jmp 0x18005d67f
mov qword [rsp + 0x2e8], r14
test r13d, r13d
je 0x18005d669
mov esi, dword [rbp + 0x250]
nop word [rax + rax]
mov eax, dword [rsp + 0x34]
mov r14d, r13d
lea rdx, [rbp + 0x70]
cmp r13d, eax
lea rcx, [rsp + 0x50]
mov byte [rsp + 0x33], r15b
cmovg r14d, eax
mov eax, r15d
shr eax, 0x18
mov byte [rsp + 0x30], al
mov eax, r15d
shr eax, 0x10
mov byte [rsp + 0x31], al
mov eax, r15d
shr eax, 8
mov byte [rsp + 0x32], al
call fcn.180076b70
test eax, eax
je 0x18005d6bd
movsxd r8, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.180076a50
test eax, eax
je 0x18005d6a6
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
mov r8d, 4
call fcn.180076a50
test eax, eax
je 0x18005d6a6
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x50]
xor r8d, r8d
call fcn.180076a80
test eax, eax
je 0x18005d6a6
lea rcx, [rsp + 0x50]
call fcn.180076c10
movsxd rdi, r14d
lea rdx, [rbp + 0x190]
mov r8, rdi
mov rcx, r12
call fcn.1801c9a10
mov ebx, 1
cmp esi, ebx
jle 0x18005d65a
nop dword [rax + rax]
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.180076b70
test eax, eax
je 0x18005d6bd
movsxd r8, dword [rsp + 0x34]
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x50]
call fcn.180076a50
test eax, eax
je 0x18005d6a6
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x50]
xor r8d, r8d
call fcn.180076a80
test eax, eax
je 0x18005d6a6
lea rcx, [rsp + 0x50]
call fcn.180076c10
test r14d, r14d
jle 0x18005d650
lea r8, [rbp + 0x190]
mov rcx, r12
mov rdx, rdi
sub r8, r12
nop
movzx eax, byte [r8 + rcx]
inc rcx
xor byte [rcx - 1], al
dec rdx
jne 0x18005d640
inc ebx
cmp ebx, esi
jl 0x18005d5d0
inc r15d
add r12, rdi
sub r13d, r14d
jne 0x18005d500
lea rcx, [rbp + 0x70]
call fcn.180076c10
mov eax, 1
mov r14, qword [rsp + 0x2e8]
mov r13, qword [rsp + 0x2f0]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1801c74b0
add rsp, 0x2f8
pop r15
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [rbp + 0x70]
call fcn.180076c10
lea rcx, [rsp + 0x50]
call fcn.180076c10
xor eax, eax
jmp 0x18005d677
lea rcx, [rbp + 0x70]
call fcn.180076c10
xor eax, eax
jmp 0x18005d677
Function at 0x18006bf00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1801c83e0
sub rsp, rax
mov eax, dword [r8 + 8]
mov rsi, rdx
mov rbx, rcx
cmp dword [rdx + 8], eax
jge 0x18006bf2c
mov rdi, r8
jmp 0x18006bf32
mov rdi, rdx
mov rsi, r8
mov edx, dword [rdi + 8]
cmp edx, dword [rcx + 0xc]
jg 0x18006bf3f
mov rax, rcx
jmp 0x18006bf44
call fcn.18000ccb0
test rax, rax
jne 0x18006bf59
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor r8d, r8d
cmp dword [rsi + 8], r8d
jle 0x18006bf94
xor r9d, r9d
nop word [rax + rax]
mov rax, qword [rdi]
mov rcx, qword [rsi]
inc r8d
mov rdx, qword [rcx + r9]
add r9, 8
xor rdx, qword [rax + r9 - 8]
mov rax, qword [rbx]
mov qword [r9 + rax - 8], rdx
cmp r8d, dword [rsi + 8]
jl 0x18006bf70
movsxd rdx, r8d
cmp r8d, dword [rdi + 8]
jge 0x18006bfbd
shl rdx, 3
mov rax, qword [rdi]
mov rcx, qword [rbx]
inc r8d
mov rax, qword [rdx + rax]
add rdx, 8
mov qword [rdx + rcx - 8], rax
cmp r8d, dword [rdi + 8]
jl 0x18006bfa1
mov edx, dword [rdi + 8]
mov dword [rbx + 8], edx
test edx, edx
jle 0x18006bfe9
lea eax, [rdx - 1]
movsxd rcx, eax
mov rax, qword [rbx]
lea r8, [rax + rcx*8]
mov rax, qword [r8]
sub r8, 8
test rax, rax
jne 0x18006bfe6
dec edx
test edx, edx
jg 0x18006bfd4
mov dword [rbx + 8], edx
cmp dword [rbx + 8], 0
jne 0x18006bff6
mov dword [rbx + 0x10], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1800767d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r15
mov eax, reloc.WLDAP32.dll_Ordinal_200
call fcn.1801c83e0
sub rsp, rax
mov rax, qword [0x1802d1460]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r15, qword [rsp + 0x120]
xor edi, edi
mov rbp, r9
movsxd rbx, r8d
mov r13, rdx
mov rsi, rcx
mov eax, edi
test r9, r9
je 0x180076836
cmp r9, qword [rcx]
je 0x18007682c
test rdx, rdx
je 0x180076a25
test r8d, r8d
js 0x180076a25
mov eax, 1
mov qword [rcx], r9
jmp 0x180076842
mov rbp, qword [rcx]
test rbp, rbp
je 0x180076a25
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xb8], r14
test rdx, rdx
je 0x18007692b
mov rcx, rbp
call fcn.18001d1c0
mov r12d, eax
cmp eax, 0x80
jle 0x180076885
lea r8, str.j____int_sizeof_ctx__key_
lea rcx, str..cryptohmachmac.c
mov edx, reloc.WS2_32.dll_WSACleanup
call fcn.18000c6f0
cmp r12d, ebx
jge 0x1800768dc
lea rcx, [rsi + 8]
mov r8, r15
mov rdx, rbp
call fcn.180034430
test eax, eax
je 0x180076a0c
lea rcx, [rsi + 8]
mov r8, rbx
mov rdx, r13
call fcn.180034690
test eax, eax
je 0x180076a0c
lea r12, [rsi + 0x98]
lea rdx, [rsi + 0x9c]
lea rcx, [rsi + 8]
mov r8, r12
call fcn.1800346b0
test eax, eax
je 0x180076a0c
jmp 0x180076905
cmp ebx, 0x80
ja 0x180076a0c
lea rcx, [rsi + 0x9c]
mov r8, rbx
mov rdx, r13
call fcn.1801c9a10
lea r12, [rsi + 0x98]
mov dword [r12], ebx
mov ecx, dword [r12]
cmp ecx, 0x80
je 0x180076933
mov r8d, 0x80
xor edx, edx
sub r8d, ecx
lea rcx, [rcx + rsi + 0x9c]
call fcn.1801c9e80
jmp 0x180076933
test eax, eax
je 0x1800769fb
lea rax, [rsp + 0x20]
mov rbx, rsi
mov rdx, rdi
sub rbx, rax
lea rcx, [rsp + rdx + 0x20]
add rdx, 2
movzx eax, byte [rbx + rcx + 0x9c]
xor al, 0x36
mov byte [rcx], al
movzx eax, byte [rbx + rcx + 0x9d]
xor al, 0x36
mov byte [rcx + 1], al
cmp rdx, 0x80
jl 0x180076941
lea rcx, [rsi + 0x38]
mov r8, r15
mov rdx, rbp
call fcn.180034430
test eax, eax
je 0x180076a0c
mov rcx, rbp
call fcn.18001d1c0
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x38]
movsxd r8, eax
call fcn.180034690
test eax, eax
je 0x180076a0c
lea rcx, [rsp + rdi + 0x20]
add rdi, 2
movzx eax, byte [rbx + rcx + 0x9c]
xor al, 0x5c
mov byte [rcx], al
movzx eax, byte [rbx + rcx + 0x9d]
xor al, 0x5c
mov byte [rcx + 1], al
cmp rdi, 0x80
jl 0x1800769a0
lea rcx, [rsi + 0x68]
mov r8, r15
mov rdx, rbp
call fcn.180034430
test eax, eax
je 0x180076a0c
mov rcx, rbp
call fcn.18001d1c0
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x68]
movsxd r8, eax
call fcn.180034690
test eax, eax
je 0x180076a0c
lea rdx, [rsi + 0x38]
lea rcx, [rsi + 8]
call fcn.180034890
test eax, eax
jne 0x180076a10
xor eax, eax
jmp 0x180076a15
mov eax, 1
mov r12, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1801c74b0
add rsp, 0xc8
pop r15
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18007d2c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r13
push r14
mov eax, gethostname
call fcn.1801c83e0
sub rsp, rax
mov rsi, qword [rsp + 0x98]
mov r14, qword [rsp + 0x90]
mov qword [rsp + 0x28], r15
mov ebx, dword [rsi]
mov r10, r9
mov rdi, r8
mov r12, rdx
mov r13, rcx
test ebx, ebx
je 0x18007d327
test rdi, rdi
je 0x18007d327
mov eax, ebx
inc r12
inc r13
movzx ecx, byte [rax + r14]
dec rdi
xor cl, byte [r13 - 1]
inc ebx
and ebx, 0xf
mov byte [r12 - 1], cl
jne 0x18007d302
mov r9, qword [rsp + 0xa0]
movsxd r15, ebx
cmp rdi, 0x10
jb 0x18007d3f0
mov rsi, r12
mov rcx, rdi
mov qword [rsp + 0x30], rbp
shr rcx, 4
mov rbp, r13
sub rsi, r14
mov rax, rcx
sub rbp, r14
imul rax, rax, 0xfffffffffffffff0
add rdi, rax
mov rax, rcx
shl rax, 4
add r12, rax
add r13, rax
mov qword [rsp + 0x70], r13
mov r13, qword [rsp + 0x88]
mov qword [rsp + 0x78], r12
mov r12, rcx
mov r8, r13
mov rdx, r14
mov rcx, r14
call r9
cmp ebx, 0x10
jae 0x18007d3b7
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [r15 + r14]
sub edx, ebx
shr edx, 3
inc edx
mov rax, qword [rcx + rbp]
add rcx, 8
xor rax, qword [rcx - 8]
dec rdx
mov qword [rsi + rcx - 8], rax
jne 0x18007d3a1
mov r9, qword [rsp + 0xa0]
add rsi, 0x10
add rbp, 0x10
xor ebx, ebx
xor r15d, r15d
dec r12
jne 0x18007d380
mov r12, qword [rsp + 0x78]
mov r13, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x98]
mov r10, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x30]
mov r15, qword [rsp + 0x28]
test rdi, rdi
je 0x18007d435
mov r8, r10
mov rdx, r14
mov rcx, r14
call r9
movsxd rcx, ebx
sub r13, r14
add rcx, r14
sub r12, r14
add ebx, edi
nop word [rax + rax]
movzx eax, byte [rcx + r13]
inc rcx
xor al, byte [rcx - 1]
dec rdi
mov byte [rcx + r12 - 1], al
jne 0x18007d420
mov dword [rsi], ebx
add rsp, 0x38
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x18007da40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x50
call fcn.1801c83e0
sub rsp, rax
mov r14, qword [rsp + 0xb8]
mov rbp, rdx
mov rdx, qword [rsp + 0xc0]
mov edi, dword [rdx]
mov r10, r9
mov rbx, r8
mov r12, rcx
test edi, edi
je 0x18007daa4
nop
test rbx, rbx
je 0x18007daa4
mov eax, edi
inc rbp
inc r12
movzx ecx, byte [rax + r14]
dec rbx
xor cl, byte [r12 - 1]
inc edi
and edi, 0xf
mov byte [rbp - 1], cl
jne 0x18007da80
mov r9, qword [rsp + 0xc8]
mov r13d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x48], r15
mov esi, 1
cmp rbx, r13
jb 0x18007dbdd
mov rax, qword [rsp + 0xb0]
mov rcx, rbx
xor edi, edi
add rax, r13
shr rcx, 4
mov r14, rbp
mov qword [rsp + 0x30], rax
mov r15, r12
mov rax, rcx
mov dword [rsp + 0x20], edi
mov rdi, qword [rsp + 0xb8]
imul rax, rax, 0xfffffffffffffff0
add rbx, rax
mov rax, rcx
sub r14, rdi
shl rax, 4
sub r15, rdi
mov qword [rsp + 0xa0], rbx
mov rbx, qword [rsp + 0x30]
add rbp, rax
add r12, rax
mov qword [rsp + 0x90], r12
mov r12, qword [rsp + 0xb0]
mov qword [rsp + 0x98], rbp
mov rbp, rcx
nop word [rax + rax]
mov r8, r10
mov rdx, rdi
mov rcx, r12
call r9
mov r11d, r13d
mov ecx, esi
mov rdx, rbx
nop word [rax + rax]
movzx eax, byte [rdx - 1]
dec rdx
add ecx, eax
mov byte [rdx], cl
shr ecx, 8
dec r11d
jne 0x18007db60
mov rcx, rdi
lea edx, [r11 + 2]
nop word [rax + rax]
mov rax, qword [r15 + rcx]
add rcx, 8
xor rax, qword [rcx - 8]
dec rdx
mov qword [r14 + rcx - 8], rax
jne 0x18007db80
mov r9, qword [rsp + 0xc8]
mov r10, qword [rsp + 0xa8]
add r14, r13
add r15, r13
dec rbp
jne 0x18007db40
mov rbx, qword [rsp + 0xa0]
mov edi, dword [rsp + 0x20]
mov rbp, qword [rsp + 0x98]
mov r12, qword [rsp + 0x90]
mov r14, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xc0]
test rbx, rbx
je 0x18007dc42
mov r15, qword [rsp + 0xb0]
mov r8, r10
mov rdx, r14
mov rcx, r15
call r9
lea rcx, [r15 + 0x10]
nop word [rax + rax]
movzx eax, byte [rcx - 1]
dec rcx
add esi, eax
mov byte [rcx], sil
shr esi, 8
dec r13d
jne 0x18007dc00
movsxd rcx, edi
sub r12, r14
sub rbp, r14
add rcx, r14
add edi, ebx
movzx eax, byte [rcx + r12]
inc rcx
xor al, byte [rcx - 1]
dec rbx
mov byte [rcx + rbp - 1], al
jne 0x18007dc22
mov rax, qword [rsp + 0xc0]
mov dword [rax], edi
jmp 0x18007dc44
mov dword [rdx], edi
mov r15, qword [rsp + 0x48]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18007dc60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x40
call fcn.1801c83e0
sub rsp, rax
mov rbx, r8
mov r8, qword [rsp + 0xb0]
mov rsi, rdx
mov edi, dword [r8]
mov rbp, rcx
mov dword [rsp + 0x30], edi
test edi, edi
je 0x18007dcc5
mov rdx, qword [rsp + 0xa8]
test rbx, rbx
je 0x18007dcc1
mov eax, edi
inc rsi
inc rbp
movzx ecx, byte [rax + rdx]
dec rbx
xor cl, byte [rbp - 1]
inc edi
and edi, 0xf
mov byte [rsi - 1], cl
jne 0x18007dca0
mov dword [rsp + 0x30], edi
mov rdx, qword [rsp + 0xa0]
mov r10, qword [rsp + 0xb8]
mov r15d, InitCommonControls
movzx eax, byte [rdx + 0xd]
movzx ecx, byte [rdx + 0xc]
lea r14, [rdx + 0xc]
shl ecx, 8
mov qword [rsp + 0x80], r13
lea r12d, [r15 - 0xb]
or ecx, eax
movzx eax, byte [rdx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xf]
shl ecx, 8
or ecx, eax
mov dword [rsp + 0x90], ecx
cmp rbx, 0x10
jb 0x18007ddfa
mov eax, 0x10000000
mov rdi, rdx
nop word [rax + rax]
mov r13, rbx
shr r13, 4
cmp r13, rax
cmova r13, rax
add ecx, r13d
mov eax, ecx
mov dword [rsp + 0x90], ecx
cmp rax, r13
jae 0x18007dd5b
sub r13, rax
xor ecx, ecx
mov dword [rsp + 0x90], ecx
mov r8, r13
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call r10
mov ecx, dword [rsp + 0x90]
mov eax, ecx
mov r11d, ecx
mov byte [rdi + 0xf], cl
shr eax, 0x10
shr r11d, 0x18
mov byte [rdi + 0xd], al
mov eax, ecx
mov byte [r14], r11b
shr eax, 8
mov byte [rdi + 0xe], al
test ecx, ecx
jne 0x18007ddba
mov r8d, r15d
mov ecx, r12d
mov rdx, r14
nop dword [rax]
movzx eax, byte [rdx - 1]
dec rdx
add ecx, eax
mov byte [rdx], cl
shr ecx, 8
dec r8d
jne 0x18007dda0
mov ecx, dword [rsp + 0x90]
mov r9, qword [rsp + 0x98]
mov r10, qword [rsp + 0xb8]
shl r13, 4
sub rbx, r13
add rsi, r13
add rbp, r13
mov eax, 0x10000000
cmp rbx, 0x10
jae 0x18007dd30
mov edi, dword [rsp + 0x30]
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa0]
test rbx, rbx
je 0x18007deaf
mov r13, qword [rsp + 0xa8]
xor eax, eax
mov qword [rsp + 0x20], rdx
mov qword [r13], rax
mov rdx, r13
mov rcx, r13
mov r8, r12
mov qword [r13 + 8], rax
call r10
mov rdx, qword [rsp + 0xa0]
mov ecx, dword [rsp + 0x90]
inc ecx
mov eax, ecx
mov byte [rdx + 0xf], cl
shr eax, 0x18
mov byte [r14], al
mov eax, ecx
shr eax, 0x10
mov byte [rdx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [rdx + 0xe], al
test ecx, ecx
jne 0x18007de77
nop word [rax + rax]
movzx eax, byte [r14 - 1]
dec r14
add r12d, eax
mov byte [r14], r12b
shr r12d, 8
dec r15d
jne 0x18007de60
movsxd rcx, edi
sub rbp, r13
sub rsi, r13
add rcx, r13
add edi, ebx
nop word [rax + rax]
movzx eax, byte [rcx + rbp]
inc rcx
xor al, byte [rcx - 1]
dec rbx
mov byte [rsi + rcx - 1], al
jne 0x18007de90
mov rax, qword [rsp + 0xb0]
mov dword [rax], edi
jmp 0x18007deb2
mov dword [r8], edi
mov r13, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18007e4c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1801c83e0
sub rsp, rax
xor eax, eax
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x170], rax
cmp r8, 0xc
jne 0x18007e51d
mov rax, qword [rdx]
lea ebx, [r8 - 0xb]
mov qword [rcx], rax
mov eax, dword [rdx + 8]
mov byte [rcx + 0xf], 1
mov dword [rcx + 8], eax
jmp 0x18007e669
mov qword [rsp + 0x50], r14
mov r14, r8
cmp r8, 0x10
jb 0x18007e5b8
mov qword [rsp + 0x40], r12
mov r12, r8
mov rbx, rdx
shr r12, 4
sub rbx, rcx
mov qword [rsp + 0x48], r13
mov rax, r12
add rbx, 2
imul rax, rax, 0xfffffffffffffff0
add rsi, rax
mov rax, r12
shl rax, 4
add rbp, rax
nop
mov rcx, rdi
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rbx + rcx - 2]
add rcx, 4
xor byte [rcx - 4], al
movzx eax, byte [rbx + rcx - 5]
xor byte [rcx - 3], al
movzx eax, byte [rbx + rcx - 4]
xor byte [rcx - 2], al
movzx eax, byte [rbx + rcx - 3]
xor byte [rcx - 1], al
dec rdx
jne 0x18007e570
lea rdx, [rdi + 0x60]
mov rcx, rdi
call fcn.18007e0c0
add rbx, 0x10
dec r12
jne 0x18007e560
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
test rsi, rsi
je 0x18007e5eb
mov rcx, rdi
sub rbp, rdi
nop word [rax + rax]
movzx eax, byte [rcx + rbp]
inc rcx
xor byte [rcx - 1], al
dec rsi
jne 0x18007e5d0
lea rdx, [rdi + 0x60]
mov rcx, rdi
call fcn.18007e0c0
shl r14, 3
lea rdx, [rdi + 0x60]
mov rcx, rdi
xor byte [rdi + 0xf], r14b
mov rax, r14
shr rax, 0x38
xor byte [rdi + 8], al
mov rax, r14
shr rax, 0x30
xor byte [rdi + 9], al
mov rax, r14
shr rax, 0x28
xor byte [rdi + 0xa], al
mov rax, r14
shr rax, 0x20
xor byte [rdi + 0xb], al
mov rax, r14
shr rax, 0x18
xor byte [rdi + 0xc], al
mov rax, r14
shr rax, 0x10
xor byte [rdi + 0xd], al
mov rax, r14
shr rax, 8
xor byte [rdi + 0xe], al
call fcn.18007e0c0
movzx eax, byte [rdi + 0xd]
movzx ebx, byte [rdi + 0xc]
mov r14, qword [rsp + 0x50]
shl ebx, 8
or ebx, eax
movzx eax, byte [rdi + 0xe]
shl ebx, 8
or ebx, eax
movzx eax, byte [rdi + 0xf]
shl ebx, 8
or ebx, eax
mov r8, qword [rdi + 0x180]
lea rdx, [rdi + 0x20]
mov rcx, rdi
call qword [rdi + 0x178]
inc ebx
mov eax, ebx
mov byte [rdi + 0xf], bl
shr eax, 0x18
mov byte [rdi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [rdi + 0xd], al
mov eax, ebx
mov rbx, qword [rsp + 0x58]
shr eax, 8
mov byte [rdi + 0xe], al
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x18007e6b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1801c83e0
sub rsp, rax
cmp qword [rcx + 0x38], 0
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
je 0x18007e6ed
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rcx + 0x30]
lea rcx, [r8 + rax]
movabs rax, 0x2000000000000000
cmp rcx, rax
ja 0x18007e7bd
cmp rcx, rbx
jb 0x18007e7bd
mov qword [rsp + 0x30], rsi
mov esi, dword [rdi + 0x174]
mov qword [rdi + 0x30], rcx
test esi, esi
je 0x18007e753
test rbx, rbx
je 0x18007e742
movzx eax, byte [rbp]
mov ecx, esi
inc rbp
xor byte [rcx + rdi + 0x40], al
dec rbx
inc esi
and esi, 0xf
jne 0x18007e724
jmp 0x18007e746
test esi, esi
jne 0x18007e7a0
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
call fcn.18007e0c0
mov qword [rsp + 0x38], r12
mov r12, rbx
and r12, 0xfffffffffffffff0
je 0x18007e77a
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
mov r9, r12
mov r8, rbp
call fcn.18007e200
add rbp, r12
sub rbx, r12
mov r12, qword [rsp + 0x38]
test rbx, rbx
je 0x18007e7a0
mov esi, ebx
lea rcx, [rdi + 0x40]
sub rbp, rdi
nop dword [rax]
movzx eax, byte [rcx + rbp - 0x40]
inc rcx
xor byte [rcx - 1], al
dec rbx
jne 0x18007e790
mov dword [rdi + 0x174], esi
mov rsi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
or eax, 0xffffffff
add rsp, 0x20
pop rdi
ret
Function at 0x180080030
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x68
call fcn.1801c83e0
sub rsp, rax
mov rax, qword [0x1802d1460]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx edi, byte [rcx]
mov rax, qword [rcx + 0x28]
mov r12, qword [rsp + 0xd0]
mov rsi, r9
mov r9, qword [rcx + 0x30]
mov r15, r8
mov r13, rdx
mov rbx, rcx
mov byte [rsp + 0x30], dil
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x40], rax
test dil, 0x40
jne 0x18008009f
lea rdx, [rcx + 0x10]
mov r8, r9
call rax
inc qword [rbx + 0x20]
mov r9, qword [rsp + 0x38]
movzx eax, dil
mov r8d, reloc.WS2_32.dll_ntohs
xor ebp, ebp
and eax, 7
mov r14d, r8d
mov ecx, ebp
sub r14d, eax
mov byte [rbx], al
movsxd rax, r14d
cmp r14d, r8d
jae 0x1800800e5
lea rdx, [rax + rbx]
sub r8d, r14d
nop word [rax + rax]
movzx eax, byte [rdx]
mov byte [rdx], bpl
inc rdx
or rcx, rax
shl rcx, 8
dec r8
jne 0x1800800d0
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xf], 1
or rcx, rax
cmp rcx, rsi
je 0x1800800fd
or eax, 0xffffffff
jmp 0x18008029c
lea rax, [rsi + 0xf]
or rax, 8
shr rax, 3
add qword [rbx + 0x20], rax
movabs rax, 0x2000000000000000
cmp qword [rbx + 0x20], rax
jbe 0x180080127
mov eax, 0xfffffffe
jmp 0x18008029c
mov rdi, rsi
shr rdi, 4
test rdi, rdi
je 0x1800801b0
lea rax, [rbx + 0x10]
mov r8, rdi
mov rdx, r15
mov qword [rsp + 0x28], rax
mov rcx, r13
mov qword [rsp + 0x20], rbx
call r12
shl rdi, 4
add r13, rdi
add r15, rdi
sub rsi, rdi
je 0x18008024c
lea r9, [rbx + 8]
shr rdi, 4
mov rdx, rbp
lea r8, [r9 + 8]
neg r9
nop word [rax + rax]
movzx eax, byte [r8 - 1]
dec r8
movzx ecx, dil
add rdx, rax
lea rax, [r9 + r8]
shr rdi, 8
add rdx, rcx
mov byte [r8], dl
shr rdx, 8
test rax, rax
je 0x1800801b0
test rdi, rdi
jne 0x180080180
test rdx, rdx
jne 0x180080180
test rsi, rsi
je 0x18008024c
mov r8, r13
mov edx, ebp
lea rcx, [rbx + 0x10]
sub r8, rbx
nop word [rax + rax]
movzx eax, byte [r8 + rcx - 0x10]
inc edx
inc rcx
xor byte [rcx - 1], al
mov eax, edx
cmp rax, rsi
jb 0x1800801d0
mov rdi, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
lea rcx, [rbx + 0x10]
mov r8, rdi
mov rdx, rcx
call r12
lea rdx, [rsp + 0x48]
mov r8, rdi
mov rcx, rbx
call r12
test rsi, rsi
je 0x180080256
lea rax, [rsp + 0x48]
lea rcx, [rsp + 0x48]
sub r13, rax
lea rax, [rsp + 0x48]
sub r15, rax
nop word [rax + rax]
movzx eax, byte [r13 + rcx]
inc ebp
inc rcx
xor al, byte [rcx - 1]
mov byte [r15 + rcx - 1], al
mov eax, ebp
cmp rax, rsi
jb 0x180080230
jmp 0x180080256
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
movsxd rax, r14d
cmp r14d, 0x10
jae 0x180080273
mov r8d, reloc.WS2_32.dll_recv
lea rcx, [rax + rbx]
xor edx, edx
sub r8d, r14d
call fcn.1801c9e80
lea rdx, [rsp + 0x48]
mov r8, rdi
mov rcx, rbx
call r12
mov rax, qword [rsp + 0x48]
xor qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x50]
xor qword [rbx + 0x18], rax
movzx eax, byte [rsp + 0x30]
mov byte [rbx], al
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1801c74b0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret