joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1802b0590
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1803fc9f0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp dword [rcx + 0x20], 0
mov rbx, rcx
jne 0x1802b05ff
add rcx, 0x40
mov qword [rsp + 0x1e8], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0x20], 0
jne 0x1802b05ed
mov ecx, 0x202
mov dword [rbx + 0x20], 1
lea rdx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x1802b05ed
mov dword [rbx], 1
lea rcx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x1e8]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1802b85a0
add rsp, 0x1d0
pop rbx
ret

Function at 0x1802b1200
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1803fc9f0]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebx, ebx
lea rax, [0x1800935b8]
mov rdi, rcx
mov qword [rsp + 0x30], rbx
mov r9d, 0xc8
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x70]
mov ecx, 0x400
lea edx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea rax, [rsp + 0x70]
movzx ecx, byte [rax]
test cl, cl
je 0x1802b1270
nop word [rax + rax]
cmp cl, 0x3b
je 0x1802b1270
movzx ecx, byte [rax + 1]
inc rax
test cl, cl
jne 0x1802b1260
movzx r8d, byte [rax]
lea rcx, [rsp + 0x70]
cmp rax, rcx
lea rdx, [rax - 1]
lea ecx, [rbx + rbx*4]
cmovbe rdx, rax
movsx ebx, byte [rdx]
lea rax, [rdx + 2]
add ebx, 0xffffffd0
lea ebx, [rbx + rcx*2]
test r8b, r8b
jne 0x1802b1253
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp ebx, ecx
je 0x1802b12b8
lea edx, [rbx + rbx*4]
add edx, edx
mov r9d, reloc.WS2_32.dll_sendto
mov dword [rsp + 0x38], edx
lea r8, [rsp + 0x58]
mov ecx, 0x400
lea edx, [r9 - 5]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea rax, [rsp + 0x58]
mov r9d, 4
lea r8, [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov edx, 0x20001010
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea rax, [rsp + 0x140]
mov dword [rsp + 0x28], 0x104
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8, rdi
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea rax, [rsp + 0x140]
sub rdi, rax
lea rcx, [rsp + 0x140]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdi + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1802b1340
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1802b85a0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x1802b3b00
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x390
mov rax, qword [0x1803fc9f0]
xor rax, rsp
mov qword [rsp + 0x380], rax
xor ebx, ebx
lea rdx, [rsp + 0x160]
sub rdx, rcx
mov rdi, rcx
mov rax, rcx
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x1802b3b32
mov edx, 0x5c
lea rcx, [rsp + 0x160]
call fcn.1802c6fa8
test rax, rax
je 0x1802b3b59
mov byte [rax], bl
lea rdx, [rsp + 0x270]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1802b3be5
mov qword [rsp + 0x3a8], rsi
mov esi, 1
nop
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r8d, 0x140
lea rcx, [rsp + 0x20]
test eax, eax
cmovne ebx, esi
xor edx, edx
call fcn.1802c7550
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1802b3ba0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x3a8]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, ebx
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.1802b85a0
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x390
pop rdi
ret

Function at 0x1802b4080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1802b40a7
cmp byte [rcx], 0
je 0x1802b40a7
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1802b40a7
test al, 0x10
je 0x1802b40a7
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x1802b4620
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1803fc9f0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x1802b4788
cmp byte [rdx], 0
je 0x1802b4788
lea rax, [rsp + 0x48]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test ebx, ebx
je 0x1802b4698
test eax, eax
je 0x1802b46a0
lea rax, [rsp + 0x48]
mov r9d, 0xf013f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1802b4763
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x1a0], rbp
lea r8, [rsp + 0x60]
xor ebp, ebp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x30], rbp
xor edx, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1802b4744
nop word [rax + rax]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
xor r8d, r8d
call fcn.1802b4620
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x1802b477e
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1802b46f0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbp, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1802b85a0
add rsp, 0x170
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1802b475b
mov eax, gethostbyname
jmp 0x1802b4763
Function at 0x1802b4d40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x58
mov r8d, gethostbyname
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1802b4d8e
mov ecx, 0x5a4d
mov rax, qword [rsp + 0x28]
cmp word [rax], cx
je 0x1802b4d6d
xor eax, eax
jmp 0x1802b4d8e
movsxd rcx, dword [rax + 0x3c]
cmp dword [rcx + rax], 0x4550
je 0x1802b4d7e
xor eax, eax
jmp 0x1802b4d8e
cmp word [rcx + rax + 0x14], 0
jne 0x1802b4d8a
xor eax, eax
jmp 0x1802b4d8e
jmp 0x1802b4d8e
add rsp, 0x58
ret

Function at 0x1802b4de0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, gethostbyname
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x1802b4e0e
xor al, al
jmp 0x1802b4e4c
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x1802b4e1f
xor al, al
jmp 0x1802b4e4c
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x1802b4e46
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x1802b4e46
mov al, 1
jmp 0x1802b4e4c
xor al, al
jmp 0x1802b4e4c
add rsp, 0x50
pop rbx
ret
Function at 0x1802b5260
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x180413cf0], eax
je 0x1802b5287
mov eax, 0x10dd
add rsp, 0x28
pop rsi
pop rbx
ret
mov eax, dword [0x180413d08]
test eax, eax
jne 0x1802b53eb
test rsi, rsi
je 0x1802b52b1
cmp qword [rsi], 0
jne 0x1802b52bd
mov dword [0x180413d08], 6
mov qword [0x180413d10], rsi
mov eax, 6
add rsp, 0x28
pop rsi
pop rbx
ret
mov qword [rsp + 0x40], rbp
mov ecx, gethostbyname
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x20], r14
call fcn.18011da30
mov rdi, rax
test rax, rax
jne 0x1802b52e6
lea ebx, [rax + 8]
jmp 0x1802b53bb
mov rbp, qword [rsi]
test rbx, rbx
je 0x1802b5339
movzx eax, byte [rbx]
cmp al, 0xff
jne 0x1802b5319
cmp byte [rbx + 1], 0x25
jne 0x1802b5319
movsxd r14, dword [rbx + 2]
lea rdx, [rbx + 6]
add rdx, r14
mov rcx, rbx
call fcn.1802b4de0
test al, al
je 0x1802b5339
mov rbx, qword [r14 + rbx + 6]
jmp 0x1802b5339
cmp al, 0xeb
jne 0x1802b5339
movsx rax, byte [rbx + 1]
add rbx, 2
add rbx, rax
cmp byte [rbx], 0xe9
jne 0x1802b5339
movsxd rax, dword [rbx + 1]
add rbx, 5
add rbx, rax
movzx ecx, byte [rbp + 0x1f]
mov r14, qword [rbp + 0x20]
sub r14, rcx
lea eax, [rcx - 1]
cmp eax, 0x1e
ja 0x1802b53ad
cmp qword [rbp + 0x28], rbx
jne 0x1802b53ad
mov edx, ecx
mov dword [rsp + 0x50], 0
mov rcx, r14
lea r9, [rsp + 0x50]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1802b537e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1802b53bb
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x20], rbp
mov qword [rdi + 0x18], r14
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x28], eax
mov rax, qword [0x180413d20]
mov qword [rdi], rax
xor eax, eax
mov qword [0x180413d20], rdi
jmp 0x1802b53dc
cmp dword [0x180413cf4], 0
mov ebx, 9
jne 0x1802b53c1
mov dword [0x180413d08], ebx
test rdi, rdi
je 0x1802b53d3
mov edx, gethostbyname
mov rcx, rdi
call fcn.1802b8d50
mov qword [0x180413d10], rsi
mov eax, ebx
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
Function at 0x1802b5400
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x180413cf0], eax
je 0x1802b541c
mov eax, 0x10dd
add rsp, 0x28
ret
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x180413d20]
mov qword [rsp + 0x48], rsi
xor esi, esi
mov qword [rsp + 0x20], rdi
test rbx, rbx
je 0x1802b54b8
nop dword [rax]
mov rax, qword [rbx + 0x20]
lea r9, [rsp + 0x30]
mov r8d, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x18]
movzx edx, byte [rax + 0x1f]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [rbx + 8], esi
jne 0x1802b54a0
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x1802b54a0
mov rcx, rdx
and rcx, 0xffffffffffff0000
xor eax, eax
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
mov qword [rdx + 0x20], rax
mov qword [rdx + 0x28], rax
mov qword [rdx + 0x30], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x20], rax
mov qword [rcx + 0x10], rdx
mov qword [rbx + 0x20], rsi
mov rdi, qword [rbx]
mov edx, gethostbyname
mov rcx, rbx
call fcn.1802b8d50
mov rbx, rdi
test rdi, rdi
jne 0x1802b5440
mov rbx, qword [0x180413cf8]
mov qword [0x180413d20], rsi
test rbx, rbx
je 0x1802b54f2
nop dword [rax + rax]
lea r9, [rsp + 0x38]
mov edx, 0x10000
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1802b54d0
mov rdi, qword [0x180413d18]
test rdi, rdi
je 0x1802b5522
nop
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rdi]
mov edx, reloc.WSOCK32.dll_recv
mov rcx, rdi
call fcn.1802b8d50
mov rdi, rbx
test rbx, rbx
jne 0x1802b5500
mov rdi, qword [rsp + 0x20]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov qword [0x180413d18], rsi
mov dword [0x180413cf0], esi
mov rsi, qword [rsp + 0x48]
add rsp, 0x28
ret

Function at 0x1802b5550
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x180413cf0], 0
je 0x1802b5567
mov eax, 0x10dd
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x180413cf0], ecx
jne 0x1802b555d
xor eax, eax
mov qword [rsp + 0x20], rbx
mov rbx, qword [0x180413cf8]
mov dword [0x180413cf4], eax
mov qword [0x180413d20], rax
mov qword [0x180413d18], rax
mov dword [0x180413d08], eax
mov qword [0x180413d10], rax
test rbx, rbx
je 0x1802b55d2
nop
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1802b55b0
xor eax, eax
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x1802b59c0
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x180413d08]
mov rdi, rcx
test eax, eax
jne 0x1802b5a63
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x1802b59ea
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, reloc.WSOCK32.dll_recv
mov qword [rsp + 0x30], rbx
call fcn.18011da30
mov rbx, rax
test rax, rax
jne 0x1802b5a06
lea edi, [rax + 8]
jmp 0x1802b5a29
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1802b5a47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, reloc.WSOCK32.dll_recv
mov rcx, rbx
call fcn.1802b8d50
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x180413d08], edi
mov qword [0x180413d10], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x180413d18]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x180413d18], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1802b5ae0
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
push r15
sub rsp, 0x50
mov qword [rax - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov r15, r8
mov rdi, rdx
mov r14, rcx
xor ebx, ebx
lea rsi, [rcx + r9]
mov qword [rax - 0x18], rsi
mov qword [rax - 0x30], rbx
mov dword [rax - 0x38], esi
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000004
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rdi], rax
test rax, rax
je 0x1802b5b82
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1802b5b72
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.1802c7550
lea rcx, [rbx + r14]
mov qword [r15], rcx
jmp 0x1802b5b82
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0
mov rax, rbx
jmp 0x1802b5b8c
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop r15
ret

Function at 0x1802b5d70
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1802b5dcc
mov rbx, qword [rax + 0x20]
test rbx, rbx
je 0x1802b5dc4
add rbx, 0xffffffffffffffd0
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
mov qword [rsp + 0x30], rbx
jmp 0x1802b5dcc
add rax, 0x30
mov qword [rcx + 0x20], rax
mov rax, rcx
jmp 0x1802b5dd6
add rsp, 0x40
pop rbx
ret
Function at 0x1802b5e80
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov esi, r8d
mov rbx, rdx
mov r14, rcx
mov dword [rax - 0x48], 0
xor eax, eax
cmp qword [rcx], rax
je 0x1802b6045
mov r13d, 1
lock cmpxchg dword [rcx + 0x20], r13d
jne 0x1802b6041
lea ecx, [r13 + 0x27]
call fcn.18011da30
mov rdi, rax
test rax, rax
je 0x1802b5ef6
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
jmp 0x1802b5ef8
xor edi, edi
mov qword [rdi], r14
mov rax, qword [r14]
mov qword [rdi + 8], rax
mov dword [rdi + 0x20], esi
mov rcx, rbx
call fcn.1802a1690
mov ecx, eax
mov qword [rdi + 0x18], rcx
mov eax, 0x2038
mul rcx
mov r15, 0xffffffffffffffff
cmovo rax, r15
mov rcx, rax
call fcn.1802b8484
mov qword [rdi + 0x10], rax
imul r8, qword [rdi + 0x18], 0x2038
xor edx, edx
mov rcx, rax
call fcn.1802c7550
xor esi, esi
mov qword [rsp + 0x38], rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1802a1d60
nop
nop dword [rax]
lea rcx, [rsp + 0x48]
call fcn.1802a17e0
mov rbx, rax
test rax, rax
je 0x1802b6009
mov rdx, qword [rax]
mov rcx, r15
nop dword [rax]
inc rcx
cmp byte [rdx + rcx], 0
jne 0x1802b5f80
inc rcx
call fcn.1802b8484
mov r9, rax
mov rdx, qword [rbx]
mov r8, rax
nop word [rax + rax]
movzx ecx, byte [rdx]
mov byte [r8], cl
lea rdx, [rdx + 1]
lea r8, [r8 + 1]
test cl, cl
jne 0x1802b5fa0
mov rax, r15
lea rax, [rax + 1]
cmp byte [r9 + rax], 0
jne 0x1802b5fb5
cmp byte [rax + r9 - 1], 0x5c
jne 0x1802b5fe1
mov rax, r15
nop dword [rax + rax]
lea rax, [rax + 1]
cmp byte [r9 + rax], 0
jne 0x1802b5fd0
mov byte [rax + r9 - 1], 0
imul rdx, rsi, 0x2038
mov rax, qword [rdi + 0x10]
mov qword [rax + rdx + 0x20], r9
mov ecx, dword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov dword [rax + rdx + 0x28], ecx
inc rsi
mov qword [rsp + 0x38], rsi
jmp 0x1802b5f60
lea rax, [r14 + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rdi
lea r8, [0x1802b6120]
xor edx, edx
xor ecx, ecx
call fcn.1802d0f10
mov qword [r14 + 8], rax
mov dword [rsp + 0x30], r13d
lea rcx, [rsp + 0x48]
call fcn.1802a1010
nop
mov eax, dword [rsp + 0x30]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x1802b68f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
movzx esi, word [r8 + 0xe]
lea rdi, [r8 + 0x10]
movzx eax, word [r8 + 0xc]
mov rbx, r9
mov r11, rcx
add esi, eax
je 0x1802b69c7
mov qword [rsp + 0x60], rbp
mov ebp, dword [rsp + 0x70]
mov eax, dword [rdi + 4]
cmp eax, 0x80000000
jb 0x1802b695b
test ebp, ebp
jne 0x1802b693a
cmp word [rdi], 0x18
je 0x1802b69b5
btr eax, 0x1f
lea ecx, [rbp + 1]
mov dword [rsp + 0x20], ecx
mov r9, rbx
mov rcx, r11
lea r8, [rdx + rax]
call fcn.1802b68f0
mov r11, qword [rsp + 0x50]
jmp 0x1802b69b0
btr eax, 0x1f
mov r8d, dword [rax + rdx]
mov r9d, dword [rax + rdx + 4]
add r8, r11
shr r9d, 2
test r9d, r9d
je 0x1802b69b5
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rbx]
xor dword [r8], eax
lea r8, [r8 + 4]
mov ecx, dword [rbx]
mov eax, 0x8fd66c05
mul ecx
shr edx, 0x11
imul eax, edx, 0x38f40
sub ecx, eax
imul eax, ecx, 0x2455
add eax, 0xc091
mov dword [rbx], eax
sub r9d, 1
jne 0x1802b6980
mov rdx, qword [rsp + 0x58]
add rdi, 8
sub esi, 1
jne 0x1802b6926
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1802b69d0
Capabilities:
Check mutex on windows
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x160
mov rax, qword [0x1803fc9f0]
xor rax, rsp
mov qword [rsp + 0x150], rax
movsxd rdi, dword [rcx + 0x3c]
xor ebp, ebp
add rdi, rcx
mov r14, rcx
mov ebx, ebp
movzx eax, word [rdi + 0x14]
lea rsi, [rdi + 0x18]
add rsi, rax
cmp bp, word [rdi + 6]
jae 0x1802b6a41
nop word [rax + rax]
lea rdx, [0x1800773d8]
mov rcx, rsi
call fcn.1802d57c0
test eax, eax
je 0x1802b6a41
movzx eax, word [rdi + 6]
add rsi, 0x28
inc ebx
cmp ebx, eax
jl 0x1802b6a20
movzx eax, word [rdi + 6]
cmp ebx, eax
jge 0x1802b6be1
xor edx, edx
mov qword [rsp + 0x188], r15
mov r8d, 0x104
lea rcx, [rsp + 0x40]
call fcn.1802c7550
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, [0x1800773e0]
lea rcx, [rsp + 0x40]
call fcn.1800fe670
lea r8, [rsp + 0x40]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov r15, rax
test rax, rax
je 0x1802b6bd9
mov edx, 0x3e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1802b6bd0
mov edi, dword [rsi + 0xc]
add rdi, r14
mov ecx, dword [rdi]
mov dword [rsp + 0x30], ecx
test ecx, ecx
je 0x1802b6bc7
mov eax, ecx
shr eax, 0x10
xor al, 0x76
cmp cl, al
jne 0x1802b6bc7
mov eax, ecx
shr ecx, 8
shr eax, 0x18
xor al, 0x5a
cmp cl, al
jne 0x1802b6bc7
mov edx, dword [rsi + 0x10]
lea r9, [rsp + 0x34]
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [rdi + 0xc]
lea rbx, [rdi + 0x10]
mov dword [rdi], ebp
movzx ebp, word [rdi + 0xe]
add ebp, eax
je 0x1802b6bb1
mov eax, dword [rsp + 0x30]
nop dword [rax + rax]
mov ecx, dword [rbx + 4]
cmp ecx, 0x80000000
jb 0x1802b6b57
cmp word [rbx], 0x18
je 0x1802b6ba4
btr ecx, 0x1f
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x30]
mov rdx, rdi
lea r8, [rdi + rcx]
mov rcx, r14
call fcn.1802b68f0
mov eax, dword [rsp + 0x30]
jmp 0x1802b6ba4
btr ecx, 0x1f
mov r9d, dword [rcx + rdi]
mov r10d, dword [rcx + rdi + 4]
add r9, r14
shr r10d, 2
test r10d, r10d
je 0x1802b6ba4
xor dword [r9], eax
lea r9, [r9 + 4]
mov eax, 0x8fd66c05
mul dword [rsp + 0x30]
imul eax, dword [rsp + 0x30], 0x2455
shr edx, 0x11
imul r8d, edx, 0x7eac6fc0
add eax, 0xc091
add eax, r8d
mov dword [rsp + 0x30], eax
sub r10d, 1
jne 0x1802b6b70
add rbx, 8
sub ebp, 1
jne 0x1802b6b20
mov edx, dword [rsi + 0x10]
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1802b85a0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret