joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000c114
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rdx], 0
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
jge 0x18000c17c
mov edx, 0x8b1f
call fcn.18000d650
mov edx, 0x808
mov rcx, rbx
call fcn.18000d650
mov edx, dword [rdi + 4]
mov rcx, rbx
call fcn.18000d650
movzx edx, word [rdi + 6]
mov rcx, rbx
call fcn.18000d650
mov edx, 0xb02
mov rcx, rbx
call fcn.18000d650
mov r8d, dword [rdi + 0x20]
lea rdx, [rdi + 0x50]
inc r8d
jmp 0x18000c2d0
mov edx, 0x4034b50
call fcn.18000d650
mov edx, 0x403
mov rcx, rbx
call fcn.18000d650
mov edx, 0x2d
mov rcx, rbx
call fcn.18000d650
movzx edx, word [rdi + 0x30]
mov rcx, rbx
call fcn.18000d650
movzx edx, word [rdi + 2]
mov rcx, rbx
call fcn.18000d650
mov edx, dword [rdi + 4]
mov rcx, rbx
call fcn.18000d650
movzx edx, word [rdi + 6]
mov rcx, rbx
call fcn.18000d650
mov edx, dword [rdi + 8]
mov rcx, rbx
call fcn.18000d650
movzx edx, word [rdi + 0xa]
mov rcx, rbx
call fcn.18000d650
or edx, 0xffffffff
mov rcx, rbx
call fcn.18000d650
or edx, 0xffffffff
mov rcx, rbx
call fcn.18000d650
or edx, 0xffffffff
mov rcx, rbx
call fcn.18000d650
or edx, 0xffffffff
mov rcx, rbx
call fcn.18000d650
mov edx, dword [rdi + 0x20]
mov rcx, rbx
call fcn.18000d650
mov edx, dword [rdi + 0x24]
mov rcx, rbx
add edx, 0x14
call fcn.18000d650
mov r8d, dword [rdi + 0x20]
lea rdx, [rdi + 0x50]
mov rcx, rbx
call fcn.18000d720
mov edx, 1
mov rcx, rbx
call fcn.18000d650
mov edx, select
mov rcx, rbx
call fcn.18000d650
mov edx, dword [rdi + 0x18]
mov rcx, rbx
call fcn.18000d650
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
shr rdx, 0x10
call fcn.18000d650
mov rdx, qword [rdi + 0x18]
mov rcx, rbx
shr rdx, 0x20
call fcn.18000d650
movzx edx, word [rdi + 0x1e]
mov rcx, rbx
call fcn.18000d650
mov edx, dword [rdi + 0x10]
mov rcx, rbx
call fcn.18000d650
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
shr rdx, 0x10
call fcn.18000d650
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
shr rdx, 0x20
call fcn.18000d650
movzx edx, word [rdi + 0x16]
mov rcx, rbx
call fcn.18000d650
mov r8d, dword [rdi + 0x24]
test r8d, r8d
je 0x18000c2d8
mov rdx, qword [rdi + 0x40]
mov rcx, rbx
call fcn.18000d720
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18000c5bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
test dword [rcx], 0x40000000
mov rbp, rdx
mov rdi, rcx
je 0x18000c5e7
mov dword [rcx + 0x28], shutdown
jmp 0x18000c65d
test byte [rcx], 0x80
je 0x18000c63a
mov rcx, qword [rcx + 0x98]
cmp rcx, qword [rdi + 0x90]
jae 0x18000c65d
mov esi, dword [rdi + 0x90]
sub esi, ecx
mov dword [rsp + 0x40], esi
mov eax, esi
cmp esi, r8d
jbe 0x18000c61a
mov esi, r8d
mov dword [rsp + 0x40], r8d
mov eax, r8d
mov rdx, qword [rdi + 0x88]
add rdx, rcx
mov r8d, eax
mov rcx, rbp
mov ebx, eax
call fcn.180056680
add qword [rdi + 0x98], rbx
jmp 0x18000c665
mov rcx, qword [rcx + 0x88]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000c661
mov dword [rdi + 0x28], 7
xor eax, eax
jmp 0x18000c684
mov esi, dword [rsp + 0x40]
mov ecx, esi
mov r8d, esi
add qword [rdi + 0x78], rcx
mov rdx, rbp
mov ecx, dword [rdi + 0x80]
call fcn.180007a0c
mov dword [rdi + 0x80], eax
mov eax, esi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x18000c69c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
test byte [rcx], 1
mov r10, rdx
mov esi, r8d
mov rdi, rcx
jne 0x18000c6e6
mov rcx, qword [rcx + 8]
lea r9, [rax + 8]
xor ebx, ebx
mov r8d, esi
mov qword [rax - 0x18], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000c6de
mov dword [rdi + 0x10], 7
jmp 0x18000c6e2
mov ebx, dword [rsp + 0x40]
mov eax, ebx
jmp 0x18000c713
mov rcx, qword [rcx + 0x20]
lea rax, [rcx + rsi]
cmp rax, qword [rdi + 0x18]
jbe 0x18000c6f9
mov esi, dword [rdi + 0x18]
sub esi, ecx
mov rdx, qword [rdi + 8]
add rdx, rcx
mov r8d, esi
mov rcx, r10
mov ebx, esi
call fcn.180056680
add qword [rdi + 0x20], rbx
mov eax, esi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18000d3b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
lea rbx, [0x1800a1b70]
mov r9d, ecx
not r9d
cmp r8d, 8
jb 0x18000d3fc
mov r10d, r8d
shr r10, 3
mov r11d, 8
movzx ecx, byte [rdx]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc rdx
xor r9d, dword [rbx + rax*4]
sub r11, 1
jne 0x18000d3d5
add r8d, 0xfffffff8
sub r10, 1
jne 0x18000d3cf
test r8d, r8d
je 0x18000d41e
movzx ecx, byte [rdx]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc rdx
xor r9d, dword [rbx + rax*4]
add r8d, 0xffffffff
jne 0x18000d401
mov rbx, qword [rsp + 8]
not r9d
mov eax, r9d
ret
Function at 0x18000d42c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rdi, rdx
mov r14d, 1
mov edx, r14d
mov ebp, r9d
mov rsi, r8
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
xor r15d, r15d
test eax, eax
jne 0x18000d631
cmp qword [rbx + 0x38], 0xffffffffffffffff
je 0x18000d631
mov dword [rbx + 0x10], r15d
test r14b, bpl
je 0x18000d4de
cmp word [rbx + 0x80], r15w
jne 0x18000d4a5
mov rdx, rsi
mov rcx, rbx
call fcn.18000b558
cmp dword [rbx + 0x10], r15d
jne 0x18000d624
mov word [rbx + 0x80], r14w
mov r8, qword [rsi + 0x28]
mov rdx, rdi
mov rcx, rbx
call fcn.18000c2e8
mov qword [rsi + 0x28], rax
cmp dword [rbx + 0x10], r15d
jne 0x18000d4d1
cmp qword [rbx + 0xf8], r15
je 0x18000d4d1
mov eax, 5
jmp 0x18000d636
mov word [rbx + 0x80], r15w
jmp 0x18000d624
test byte [rsi + 8], 0x10
je 0x18000d50f
test bpl, 2
je 0x18000d508
mov edx, r14d
mov rcx, rdi
test ebp, ebp
jns 0x18000d4fb
call fcn.180007b50
jmp 0x18000d500
call fcn.180007a90
test eax, eax
je 0x18000d620
xor eax, eax
jmp 0x18000d636
cmp ebp, 4
je 0x18000d568
xor edx, edx
mov rcx, rdi
test ebp, ebp
jns 0x18000d524
call fcn.180007b50
jmp 0x18000d529
call fcn.180007a90
test eax, eax
je 0x18000d620
mov eax, dword [rsi + 8]
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rdi
test ebp, ebp
jns 0x18000d55f
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x18000d565
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rdi, 0xffffffffffffffff
je 0x18000d620
mov rdx, rsi
mov rcx, rbx
call fcn.18000b558
cmp dword [rbx + 0x10], r15d
jne 0x18000d610
cmp qword [rbx + 0x58], r15
jne 0x18000d5aa
mov edx, 0x4000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0x58], rax
test rax, rax
jne 0x18000d5aa
mov dword [rbx + 0x10], 2
cmp dword [rbx + 0x10], r15d
jne 0x18000d610
mov rdx, qword [rbx + 0x58]
mov r8d, 0x4000
mov rcx, rbx
call fcn.18000c2e8
mov r14, rax
test eax, eax
je 0x18000d5f5
mov rdx, qword [rbx + 0x58]
lea r9, [rsp + 0x40]
mov r8d, r14d
mov qword [rsp + 0x20], r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000d5ee
cmp dword [rsp + 0x40], r14d
je 0x18000d5aa
mov dword [rbx + 0x10], 3
cmp dword [rbx + 0x10], r15d
jne 0x18000d610
lea r9, [rsi + 0x1c]
mov rcx, rdi
lea r8, [rsi + 0xc]
lea rdx, [rsi + 0x14]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp ebp, 4
je 0x18000d624
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000d624
mov dword [rbx + 0x10], r14d
mov rcx, rbx
call fcn.180007690
mov eax, dword [rbx + 0x10]
jmp 0x18000d636
mov eax, 9
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov r9d, 0x80000002
jmp 0x18000d42c
Function at 0x18000d650
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x28], 0
mov rdi, rcx
jne 0x18000d70e
mov esi, edx
mov byte [rax + 8], dl
shr esi, 8
mov byte [rax + 9], sil
mov eax, dword [rcx]
test al, 0x10
je 0x18000d69e
add rcx, 0x48
call fcn.18000d85c
lea rcx, [rdi + 0x48]
mov byte [rsp + 0x40], al
mov dl, sil
call fcn.18000d85c
mov byte [rsp + 0x41], al
mov eax, dword [rdi]
test al, 1
je 0x18000d6cd
mov rdx, qword [rdi + 0x38]
lea rax, [rdx + 2]
cmp rax, qword [rdi + 0x40]
jb 0x18000d6b9
mov dword [rdi + 0x28], ntohl
jmp 0x18000d70e
mov rcx, qword [rdi + 8]
movzx eax, word [rsp + 0x40]
mov word [rdx + rcx], ax
add qword [rdi + 0x38], 2
jmp 0x18000d6ff
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000d6f8
cmp dword [rsp + 0x50], 2
je 0x18000d6ff
mov dword [rdi + 0x28], 3
test dword [rdi], 0x40000000
je 0x18000d70e
mov dword [rdi + 0x28], shutdown
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x18000d720
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x18000d858
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
cmp dword [rcx + 0x28], 0
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
jne 0x18000d846
test byte [rcx], 0x10
je 0x18000d7da
mov rcx, qword [rcx + 0x58]
mov rax, rcx
test rcx, rcx
je 0x18000d775
cmp dword [rbx + 0x60], edi
jae 0x18000d775
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbx + 0x58], 0
jmp 0x18000d77a
test rax, rax
jne 0x18000d79f
lea eax, [rdi + rdi]
xor ecx, ecx
mov edx, eax
mov dword [rbx + 0x60], eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0x58], rax
test rax, rax
jne 0x18000d79f
mov dword [rbx + 0x28], 2
jmp 0x18000d837
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbp, rdi
call fcn.180056680
test edi, edi
je 0x18000d7d6
xor esi, esi
mov rax, qword [rbx + 0x58]
lea rcx, [rbx + 0x48]
mov dl, byte [rsi + rax]
call fcn.18000d85c
mov rcx, qword [rbx + 0x58]
mov byte [rsi + rcx], al
inc rsi
sub rbp, 1
jne 0x18000d7b6
mov rsi, qword [rbx + 0x58]
test byte [rbx], 1
je 0x18000d80b
mov rcx, qword [rbx + 0x38]
lea rax, [rcx + rdi]
cmp rax, qword [rbx + 0x40]
jb 0x18000d7f6
mov dword [rbx + 0x28], ntohl
jmp 0x18000d837
add rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.180056680
add qword [rbx + 0x38], rdi
jmp 0x18000d837
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x60]
and qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000d830
cmp dword [rsp + 0x60], edi
je 0x18000d837
mov dword [rbx + 0x28], 3
test dword [rbx], 0x40000000
je 0x18000d846
mov dword [rbx + 0x28], shutdown
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x18000d85c
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r9d, dword [rcx]
mov r11, rcx
mov r10d, dword [rcx + 8]
mov r8d, r9d
mov ebx, r10d
movsx rax, dl
xor r8, rax
shr r9d, 8
movzx eax, r8b
and ebx, 0xfffd
or ebx, 2
lea r8, [0x1800a1b70]
xor r9d, dword [r8 + rax*4]
mov dword [rcx], r9d
movzx eax, r9b
add eax, dword [rcx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [r11 + 4], ecx
movzx eax, byte [r11 + 7]
movzx ecx, r10b
xor rcx, rax
shr r10d, 8
mov eax, ebx
xor eax, 1
imul eax, ebx
xor r10d, dword [r8 + rcx*4]
mov rbx, qword [rsp + 8]
mov dword [r11 + 8], r10d
shr eax, 8
xor al, dl
ret
Function at 0x18000d958
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rdi, rdx
mov r14d, 1
mov edx, r14d
mov ebp, r9d
mov rsi, r8
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
xor r15d, r15d
test eax, eax
jne 0x18000d631
cmp qword [rbx + 0x38], 0xffffffffffffffff
je 0x18000d631
mov dword [rbx + 0x10], r15d
test r14b, bpl
je 0x18000d4de
cmp word [rbx + 0x80], r15w
jne 0x18000d4a5
mov rdx, rsi
mov rcx, rbx
call fcn.18000b558
cmp dword [rbx + 0x10], r15d
jne 0x18000d624
mov word [rbx + 0x80], r14w
mov r8, qword [rsi + 0x28]
mov rdx, rdi
mov rcx, rbx
call fcn.18000c2e8
mov qword [rsi + 0x28], rax
cmp dword [rbx + 0x10], r15d
jne 0x18000d4d1
cmp qword [rbx + 0xf8], r15
je 0x18000d4d1
mov eax, 5
jmp 0x18000d636
mov word [rbx + 0x80], r15w
jmp 0x18000d624
test byte [rsi + 8], 0x10
je 0x18000d50f
test bpl, 2
je 0x18000d508
mov edx, r14d
mov rcx, rdi
test ebp, ebp
jns 0x18000d4fb
call fcn.180007b50
jmp 0x18000d500
call fcn.180007a90
test eax, eax
je 0x18000d620
xor eax, eax
jmp 0x18000d636
cmp ebp, 4
je 0x18000d568
xor edx, edx
mov rcx, rdi
test ebp, ebp
jns 0x18000d524
call fcn.180007b50
jmp 0x18000d529
call fcn.180007a90
test eax, eax
je 0x18000d620
mov eax, dword [rsi + 8]
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rdi
test ebp, ebp
jns 0x18000d55f
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x18000d565
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rdi, 0xffffffffffffffff
je 0x18000d620
mov rdx, rsi
mov rcx, rbx
call fcn.18000b558
cmp dword [rbx + 0x10], r15d
jne 0x18000d610
cmp qword [rbx + 0x58], r15
jne 0x18000d5aa
mov edx, 0x4000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0x58], rax
test rax, rax
jne 0x18000d5aa
mov dword [rbx + 0x10], 2
cmp dword [rbx + 0x10], r15d
jne 0x18000d610
mov rdx, qword [rbx + 0x58]
mov r8d, 0x4000
mov rcx, rbx
call fcn.18000c2e8
mov r14, rax
test eax, eax
je 0x18000d5f5
mov rdx, qword [rbx + 0x58]
lea r9, [rsp + 0x40]
mov r8d, r14d
mov qword [rsp + 0x20], r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000d5ee
cmp dword [rsp + 0x40], r14d
je 0x18000d5aa
mov dword [rbx + 0x10], 3
cmp dword [rbx + 0x10], r15d
jne 0x18000d610
lea r9, [rsi + 0x1c]
mov rcx, rdi
lea r8, [rsi + 0xc]
lea rdx, [rsi + 0x14]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp ebp, 4
je 0x18000d624
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000d624
mov dword [rbx + 0x10], r14d
mov rcx, rbx
call fcn.180007690
mov eax, dword [rbx + 0x10]
jmp 0x18000d636
mov eax, 9
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov r9d, 0x80000002
jmp 0x18000d42c
Function at 0x18000dba0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2b30]
mov eax, 0x2c30
call fcn.180054c40
sub rsp, rax
mov rax, qword [0x1800c6d50]
lea rdx, [rbp + 0x2b88]
mov rdi, rcx
mov dword [rbp + 0x2b88], 0x2c00
xor esi, esi
lea rcx, [rsp + 0x30]
movzx r15d, si
call rax
test eax, eax
jne 0x18000de31
lea rbx, [rsp + 0x30]
xor r12b, r12b
movabs r14, 0x8fb823ee08fb823f
cmp dword [rbx + 0x198], esi
jne 0x18000dc1d
cmp word [rbx + 0x19c], r15w
je 0x18000de0d
mov rax, qword [0x1800c6d00]
lea rcx, [rbx + 0x1c0]
call rax
test eax, eax
je 0x18000de0d
mov esi, dword [rbx + 0x198]
xor r8d, r8d
movzx r15d, word [rbx + 0x19c]
mov dword [rsp + 0x28], eax
movzx eax, word [0x1800a20ec]
mov word [rbp + 0x2b78], ax
mov al, byte [0x1800a20ee]
mov byte [rbp + 0x2b7a], al
mov rax, r14
mul r8
shr rdx, 5
movsx eax, dl
imul ecx, eax, 0x39
mov al, r8b
sub al, cl
add al, 0x30
xor byte [rbp + r8 + 0x2b78], al
inc r8
cmp r8, 3
jb 0x18000dc64
lea r14, [rbx + 0x110]
mov rcx, r14
lea rdx, [rbp + 0x2b78]
call fcn.1800570cc
test rax, rax
jne 0x18000de03
cmp byte [0x1800a20f3], 0
mov eax, dword [str.fa3dpb3dD_QY6]
mov dword [rbp + 0x2b80], eax
je 0x18000dcf5
xor r8d, r8d
movabs r9, 0x8fb823ee08fb823f
mov rax, r9
mul r8
shr rdx, 5
movsx eax, dl
imul ecx, eax, 0x39
mov al, r8b
sub al, cl
add al, 0x30
xor byte [rbp + r8 + 0x2b80], al
inc r8
cmp r8, 4
jb 0x18000dccd
lea rdx, [rbp + 0x2b80]
mov rcx, r14
call fcn.1800570cc
test rax, rax
jne 0x18000de03
cmp byte [0x1800a20f7], 0
mov eax, dword [0x1800a20f4]
mov dword [rbp + 0x2b80], eax
je 0x18000dd57
xor r8d, r8d
movabs r13, 0x8fb823ee08fb823f
mov rax, r13
mul r8
shr rdx, 5
movsx eax, dl
imul ecx, eax, 0x39
mov al, r8b
sub al, cl
add al, 0x30
xor byte [rbp + r8 + 0x2b80], al
inc r8
cmp r8, 4
jb 0x18000dd2f
lea rdx, [rbp + 0x2b80]
mov rcx, r14
call fcn.1800570cc
test rax, rax
jne 0x18000de03
mov eax, dword [0x1800a20f8]
xor r8d, r8d
mov dword [rsp + 0x20], eax
movabs r13, 0x8fb823ee08fb823f
movzx eax, word [0x1800a20fc]
mov word [rsp + 0x24], ax
mov al, byte [0x1800a20fe]
mov byte [rsp + 0x26], al
mov rax, r13
mul r8
shr rdx, 5
movsx eax, dl
imul edx, eax, 0x39
mov al, r8b
sub al, dl
add al, 0x30
xor byte [rsp + r8 + 0x20], al
inc r8
cmp r8, 7
jb 0x18000dd9c
lea rdx, [rsp + 0x20]
mov rcx, r14
lea r13, [rbx + 0x1c0]
call fcn.1800570cc
test rax, rax
jne 0x18000de03
mov rax, qword [0x1800c6d00]
mov rcx, r13
call rax
test eax, eax
je 0x18000de03
mov dword [rdi + 4], esi
mov rcx, r13
mov word [rdi + 8], r15w
mov rax, qword [0x1800c6d00]
call rax
mov dword [rdi], eax
mov r12b, 1
movabs r14, 0x8fb823ee08fb823f
mov rbx, qword [rbx]
test rbx, rbx
je 0x18000de1e
test r12b, r12b
je 0x18000dc07
test r12b, r12b
jne 0x18000de31
mov eax, dword [rsp + 0x28]
mov dword [rdi + 4], esi
mov word [rdi + 8], r15w
mov dword [rdi], eax
mov rbx, qword [rsp + 0x2c70]
add rsp, 0x2c30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000dfb0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r13
push r14
lea rbp, [rax - 0x188]
sub rsp, 0x270
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.180056d30
mov dword [rbx], 0x50001
lea rcx, [rsp + 0x60]
mov edi, 1
mov edx, 0x104
lea eax, [rdi + 0xf]
mov word [rbx + 4], ax
mov rax, qword [0x1800c6c08]
call rax
xor r13d, r13d
test eax, eax
je 0x18000e18a
lea rdx, [0x1800a2114]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
cmp word [0x1800a2112], r13w
movups xmm0, xmmword [str.CR__Re_YQ9_]
mov eax, dword [0x1800a2110]
mov dword [rsp + 0x50], eax
movups xmmword [rsp + 0x40], xmm0
je 0x18000e07d
mov r8d, r13d
movabs rax, 0x8fb823ee08fb823f
mul r8
shr rdx, 5
movzx eax, dx
imul ecx, eax, 0x39
movzx eax, r8w
sub ax, cx
add ax, 0x30
xor word [rsp + r8*2 + 0x40], ax
add r8, rdi
cmp r8, 0xa
jb 0x18000e04c
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rax, qword [0x1800c6bc0]
lea rcx, [rsp + 0x60]
mov r8d, 3
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000e18a
lea rdx, [rbx + 8]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x190]
mov r8d, 4
mov rcx, rax
call qword [0x1800c6bd0]
lea r9, [rbp + 0x190]
mov qword [rsp + 0x20], r13
mov r8d, 2
mov rdx, rbx
mov rcx, rdi
call qword [0x1800c6bd0]
lea rdx, [rbx + 0xc]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x190]
mov r8d, 4
mov rcx, rdi
call qword [0x1800c6bd0]
lea r9, [rbp + 0x190]
mov qword [rsp + 0x20], r13
mov r8d, 2
lea rdx, [rbx + 2]
mov rcx, rdi
call qword [0x1800c6bd0]
lea r9, [rbp + 0x190]
mov qword [rsp + 0x20], r13
mov r8d, 2
lea rdx, [rbx + 4]
mov rcx, rdi
call qword [0x1800c6bd0]
lea rdx, [rbx + 0x10]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x190]
mov r8d, 8
mov rcx, rdi
call qword [0x1800c6bd0]
mov rcx, rdi
call qword [0x1800c6bf0]
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret

Function at 0x18000eadc
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x18], r8
push r14
sub rsp, 0x20
mov r14, rcx
mov rsi, rdx
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
test rax, rax
je 0x18000eb12
mov rdx, qword [rax + 8]
mov cl, byte [rsp + 0x40]
mov r9d, 8
mov r8d, 0xf0
call fcn.180012a70
mov rdx, rsi
mov rdi, rax
lea rcx, [rax + 8]
call fcn.18001b320
movups xmm0, xmmword [rsi + 0xd0]
lea rax, [0x180013934]
mov rcx, rsi
movdqu xmmword [rdi + 0xd8], xmm0
mov qword [rdi], rax
mov qword [r14], rdi
call fcn.18001fbd0
mov rbx, qword [rsp + 0x30]
mov rax, r14
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18000eb74
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18000eba5
mov rdx, qword [rax + 8]
jmp 0x18000eba7
xor edx, edx
mov cl, byte [rsp + 0x40]
mov r9d, 8
mov r8d, 0xa0
call fcn.180012a70
mov rcx, qword [rsi]
lea rdx, [rsi + 0x10]
mov rbx, rax
mov qword [rax + 8], rcx
mov rcx, qword [rsi + 8]
mov qword [rax + 0x10], rcx
lea rcx, [rax + 0x18]
call fcn.1800193fc
movups xmm0, xmmword [rsi + 0x80]
lea rax, [0x180013a10]
movdqu xmmword [rbx + 0x88], xmm0
mov qword [rbx], rax
mov qword [rdi], rbx
mov rbx, qword [rsi + 0x78]
test rbx, rbx
je 0x18000ec2b
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18000ec2b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18000ec2b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea rcx, [rsi + 0x18]
call fcn.180020174
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18000ec48
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rdi, rdx
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
test rax, rax
je 0x18000ec79
mov rdx, qword [rax + 8]
mov cl, byte [rsp + 0x40]
mov r9d, 8
mov r8d, 0xd0
call fcn.180012a70
mov rdx, rdi
mov rbx, rax
lea rcx, [rax + 8]
call fcn.18001a260
lea rax, [0x180013b40]
mov qword [rbx], rax
lea rcx, [rdi + 0x50]
mov qword [rsi], rbx
call fcn.180020174
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18000ecc8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rdi, rdx
mov ecx, dword [0x1800c6a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
test rax, rax
je 0x18000ecf9
mov rdx, qword [rax + 8]
mov cl, byte [rsp + 0x40]
mov r9d, 8
mov r8d, 0xd8
call fcn.180012a70
mov rdx, rdi
mov rbx, rax
lea rcx, [rax + 8]
call fcn.18001a344
lea rax, [0x180013c2c]
mov rcx, rdi
mov qword [rbx], rax
mov qword [rsi], rbx
call fcn.18001ff40
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret