joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005af0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 4]
call qword [0x180028808]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180005be5
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
jmp 0x180005bd4
cmp dword [rsp + 0x20], 0x10
jb 0x180005bbf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180005bbf
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180005bbf
mov r8, qword [rbx]
test r8, r8
jne 0x180005b80
mov dword [rbx + 8], 0x80
mov rcx, qword [0x180023870]
xor edx, edx
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x180005bdc
jmp 0x180005baf
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180005baf
mov rcx, qword [0x180023870]
lea r9d, [rax + rax]
xor edx, edx
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x180005bdc
mov ecx, dword [rbx + 8]
mov qword [rbx], rax
add ecx, ecx
mov dword [rbx + 8], ecx
mov edx, dword [rbx + 0xc]
mov rcx, qword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rcx + rdx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180005b2f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180005bf0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
and qword [rcx], 0
and dword [rcx + 8], 0
and dword [rcx + 0xc], 0
mov r12d, r8d
mov r13d, edx
mov rbx, rcx
call fcn.180005af0
cmp qword [rbx], 0
je 0x180005c76
xor edi, edi
cmp dword [rbx + 0xc], edi
jbe 0x180005c76
xor esi, esi
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rsi]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x180005c6b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, r12d
mov edx, r13d
mov rcx, rbp
call fcn.1800059f0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add rsi, 4
cmp edi, dword [rbx + 0xc]
jb 0x180005c31
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x180005c90
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x180005cff
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x180005ced
xor esi, esi
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rsi + rax]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x180005ce2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add rsi, 4
cmp edi, dword [rbx + 0xc]
jb 0x180005cb6
mov r8, qword [rbx]
mov rcx, qword [0x180023870]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800065a8
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
lea rbp, [rax - 0x818]
sub rsp, 0x910
mov rsi, rdx
mov r12, rcx
lea rcx, [rbp - 0x58]
lea rdx, str.MozillaFirefox
mov r8d, 0x20
call sub.msvcrt.dll_memcpy
xor r9d, r9d
lea r11, [rbp - 0x30]
lea edx, [r9 + 0x1a]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1800067a2
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.18000fc90
test eax, eax
je 0x1800067a2
mov rax, qword [str.profiles.ini]
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x58], rax
mov rax, qword [0x1800158c0]
lea rcx, [rbp + 0x1e0]
mov qword [rsp + 0x60], rax
mov rax, qword [0x1800158c8]
mov qword [rsp + 0x68], rax
movzx eax, word [0x1800158d0]
mov word [rsp + 0x70], ax
call fcn.18000fc90
test eax, eax
je 0x1800067a2
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800067a2
mov rax, qword [str.IsRelative]
xor bl, bl
mov qword [rsp + 0x40], rax
mov rax, qword [0x1800158a8]
mov qword [rsp + 0x48], rax
mov eax, dword [0x1800158b0]
mov dword [rsp + 0x50], eax
movzx eax, word [0x1800158b4]
mov word [rsp + 0x54], ax
mov rax, qword [str.Path]
mov qword [rsp + 0x30], rax
movzx eax, word [0x180015898]
mov word [rsp + 0x38], ax
lea r8, str.Profile_u
lea rcx, [rsp + 0x78]
movzx r9d, bl
mov edx, 0xf
call fcn.18000e54c
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x78]
mov r8d, 0x20
call fcn.18000d318
lea r9, [rbp + 0x1e0]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x78]
or r8d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
cmp eax, 0xffffffff
je 0x1800067a2
lea rax, [rbp + 0x1e0]
lea r9, [rbp + 0x3f0]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rcx, [rbp - 0x78]
xor r8d, r8d
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x180006797
lea rcx, [rbp + 0x3f0]
call fcn.18000fcc8
cmp edi, 1
jne 0x180006786
lea r8, [rbp + 0x3f0]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x600]
call fcn.18000fc90
test eax, eax
je 0x180006797
lea rcx, [rbp + 0x600]
jmp 0x18000678d
lea rcx, [rbp + 0x3f0]
mov rdx, rsi
call r12
test eax, eax
je 0x1800067a2
inc bl
cmp bl, 0xfa
jb 0x1800066cd
lea r11, [rsp + 0x910]
mov dword [0x180023890], 1
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180007ad8
Capabilities:
Create thread

Disassembly:
mov rax, rsp
sub rsp, 0x78
mov rcx, qword [0x180028230]
and qword [rax + 8], 0
call fcn.18000d214
mov r8d, dword [0x18002801c]
lea rcx, [rsp + 0x48]
mov rdx, rax
mov qword [rsp + 0x80], rax
call fcn.1800104a8
lea rcx, [rsp + 0x80]
or rdx, 0xffffffffffffffff
call fcn.18000ca70
lea rcx, [rsp + 0x30]
call fcn.1800102c4
xor r8d, r8d
xor edx, edx
lea r9, [rsp + 0x48]
test eax, eax
jns 0x180007b39
xor ecx, ecx
jmp 0x180007b3e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1800238b8], rax
test rax, rax
jne 0x180007b54
xor eax, eax
jmp 0x180007bc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180007b8c
mov rcx, qword [0x1800238b8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x180007b81
mov rcx, qword [0x1800238b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180007b50
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [0x18002389c]
lea r8, [0x180007a6c]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1800238a0], rax
test rax, rax
je 0x180007b72
mov eax, 1
add rsp, 0x78
ret

Function at 0x180007c50
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rcx
mov qword [0x1800238c0], rcx
cmp edx, 1
jne 0x180007d53
cmp dword [r8 + 0x2fb], 0xe291a0f3
je 0x180007c84
xor eax, eax
jmp 0x180007db4
call fcn.18000ca20
mov ecx, 1
call fcn.18000de44
test eax, eax
js 0x180007c7d
mov r8d, 5
mov rdx, rbx
mov rcx, rdi
call fcn.180010dd8
call fcn.180007ad8
test eax, eax
je 0x180007c7d
call fcn.18000d670
call fcn.18000f2a0
mov rcx, qword [0x1800289a8]
lea r9, [0x180023898]
xor r8d, r8d
mov dl, 0x3b
call fcn.18000d498
mov qword [0x1800238a8], rax
call fcn.18000269c
mov rcx, qword [0x180028230]
call fcn.180007bc8
test eax, eax
je 0x180007cf6
call fcn.18000287c
jmp 0x180007d4a
call fcn.180004548
call fcn.180003894
call fcn.18000bd80
call fcn.180001000
call fcn.18000845c
call fcn.180002218
call fcn.18000be94
call fcn.180002ed8
call fcn.180008188
call fcn.18000287c
call fcn.180002854
call fcn.180002868
call fcn.180002bf0
call fcn.180002b68
call fcn.180007dc0
test eax, eax
je 0x180007d4a
call fcn.180002890
xor ecx, ecx
call fcn.180002704
jmp 0x180007daf
test edx, edx
jne 0x180007daf
call fcn.18000270c
call fcn.180008fdc
call fcn.180004574
mov ecx, 1
call fcn.18000ddb0
call fcn.18000160c
call fcn.180002250
call fcn.18000f01c
call fcn.180002f1c
lea rdx, [0x180023898]
lea rcx, [0x1800238a8]
call fcn.18000d5d0
cmp dword [0x1800222e4], 0
je 0x180007daf
mov rcx, qword [0x1800238a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180008030
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x180023908], 0
mov esi, r8d
mov edi, edx
mov rbx, rcx
jne 0x180008054
xor eax, eax
jmp 0x180008086
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, edi
je 0x180008050
test esi, esi
jne 0x18000806b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, edi
mov rcx, rbx
call fcn.180007f50
mov edi, eax
test esi, esi
jne 0x180008084
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180008098
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
xor ebx, ebx
mov r12d, ecx
cmp dword [0x180023908], ebx
mov esi, ebx
jne 0x1800080c6
xor eax, eax
jmp 0x18000816e
mov r13d, dword [0x18002801c]
xor edx, edx
lea ecx, [rdx + 4]
call qword [0x180028808]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1800080bf
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180008163
cmp dword [rsp + 0x2c], r13d
jne 0x180008150
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 0x4a]
call qword [0x1800286f0]
mov rdi, rax
test rax, rax
je 0x180008150
mov edx, dword [rsp + 0x28]
xor r8d, r8d
mov rcx, rax
call fcn.180008030
test eax, eax
je 0x180008147
mov rcx, rdi
test r12d, r12d
je 0x18000813c
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x180008142
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov esi, 1
mov rcx, rdi
call qword [0x180028748]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800080fa
mov ebx, esi
mov rcx, rbp
call qword [0x180028748]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x1800083a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [0x180029290]
mov rcx, qword [0x1800238c0]
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x1800083d8
xor eax, eax
jmp 0x180008412
mov rcx, qword [0x1800238c0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [0x1800238c0]
mov rdx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1800083d4
mov r9d, 4
xor r8d, r8d
mov edx, edi
mov rcx, rax
call fcn.1800113f0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180008480
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
and qword [0x180026578], 0
and qword [rbp + 0x30], 0
mov edi, 1
mov ecx, 0x361
mov dword [0x180023920], edi
call fcn.18000e134
lea r8d, [rdi + 0x1e]
lea rdx, [rbp - 0x20]
mov rcx, rax
mov qword [rbp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x18000854b
and qword [rbp + 0x28], 0
and qword [rbp + 0x38], 0
mov ecx, 0x106e
call fcn.18000e054
lea rdx, [0x1800159ec]
lea rcx, [0x180027e10]
mov r8, rax
xor r9d, r9d
mov qword [rbp + 0x38], rax
call fcn.18000d360
lea rcx, [rbp + 0x38]
mov qword [rbp + 0x28], rax
call fcn.18000e218
mov rcx, qword [rbp + 0x28]
call fcn.18000fd08
test eax, eax
jne 0x18000853b
lea rcx, [rbp + 0x30]
mov dword [0x180023924], edi
call fcn.18000e218
lea rcx, [rbp + 0x28]
mov rdx, 0xfffffffffffffffe
call fcn.18000ca70
xor eax, eax
jmp 0x1800086b8
lea rcx, [rbp + 0x28]
mov rdx, 0xfffffffffffffffe
call fcn.18000ca70
lea rcx, [rbp + 0x30]
call fcn.18000e218
call fcn.18000d6a0
lea rsi, [0x180026664]
test eax, eax
jne 0x180008594
mov edx, dword [0x1800284c0]
mov rcx, qword [0x1800284b8]
mov r9d, edi
mov r8, rsi
call fcn.18000db70
mov edx, dword [0x1800284d0]
mov rcx, qword [0x1800284c8]
xor r9d, r9d
mov r8, rsi
call fcn.18000db70
mov ecx, 0x14
call fcn.18000dae0
test rax, rax
je 0x1800085a8
cmp byte [rax], 0x31
je 0x180008534
mov edx, 0x3a98
xor ecx, ecx
call fcn.18000c9c4
mov qword [0x180023918], rax
test rax, rax
je 0x180008534
mov ecx, dword [0x180022390]
imul rcx, rcx, 0xfc50
call fcn.18000ca40
mov qword [0x180023910], rax
test rax, rax
jne 0x1800085ed
and dword [0x180022390], eax
jmp 0x180008534
call fcn.1800083a8
mov qword [rbp + 0x20], rax
test rax, rax
je 0x18000860e
mov rcx, rax
call fcn.180009acc
lea rcx, [rbp + 0x20]
xor edx, edx
call fcn.180011628
mov edx, dword [0x180028490]
mov rcx, qword [0x180028488]
mov r9d, edi
mov r8, rsi
call fcn.1800113f0
mov qword [rbp + 0x20], rax
test rax, rax
je 0x180008642
mov rcx, rax
call fcn.180009acc
lea rcx, [rbp + 0x20]
xor edx, edx
call fcn.180011628
mov edx, dword [0x1800284a0]
mov rcx, qword [0x180028498]
mov r9d, edi
mov r8, rsi
call fcn.1800113f0
mov qword [rbp + 0x20], rax
test rax, rax
je 0x180008676
mov rcx, rax
call fcn.180009acc
lea rcx, [rbp + 0x20]
xor edx, edx
call fcn.180011628
mov edx, dword [0x1800284b0]
mov rcx, qword [0x1800284a8]
mov r9d, edi
mov r8, rsi
call fcn.1800113f0
mov qword [rbp + 0x20], rax
test rax, rax
je 0x1800086aa
mov rcx, rax
call fcn.180009acc
lea rcx, [rbp + 0x20]
xor edx, edx
call fcn.180011628
mov rcx, qword [0x180023918]
call fcn.18000c9ac
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000c9c4
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov r8, rcx
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x18000ca11
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18000ca0e
mov edx, edi
mov rcx, rbx
call fcn.18000c990
test eax, eax
jns 0x18000ca0e
mov rcx, rbx
call qword [0x180028748]
xor ebx, ebx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18000de44
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov esi, ecx
lea r9, str.83271x
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x18000de9c
lea edx, [rbx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x18000de93
lea eax, [rbx - 0xa]
jmp 0x18000e041
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x180015a40]
mov edx, 0x271d
call fcn.18000cb10
mov r11, rax
mov qword [0x180026470], rax
test rax, rax
jne 0x18000dec4
or eax, 0xffffffff
jmp 0x18000e041
test sil, 3
je 0x18000dfb0
movabs rax, 0xdfcbe139f7ca5e
lea rcx, [rsp + 0x31]
xor edx, edx
mov qword [rbp + 0x68], rax
movabs rax, 0xbaa4a5579fa514
mov byte [rsp + 0x30], bl
mov qword [rsp + 0x20], rax
mov eax, dword [0x180015a30]
mov dword [rbp + 0x60], eax
movzx eax, word [0x180015a34]
mov word [rbp + 0x64], ax
mov al, byte [0x180015a36]
mov byte [rbp + 0x66], al
xor eax, eax
lea r8d, [rax + 0x7f]
mov byte [rbp + 0x67], al
call sub.msvcrt.dll_memset
lea rdx, [rbp + 0x58]
lea rcx, [rsp + 0x30]
mov edi, 0x80
mov dword [rbp + 0x58], edi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea r8, [rbp + 0x58]
lea rdx, [rbp - 0x50]
xor ecx, ecx
mov dword [rbp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
mov r11d, ebx
mov rdx, rbx
movzx eax, byte [rbp + rdx + 0x68]
movsx ecx, byte [rsp + rdx + 0x30]
xor ecx, eax
movzx eax, byte [rsp + rdx + 0x20]
cmp ecx, eax
jne 0x18000df72
inc r11d
inc rdx
cmp r11d, 7
jb 0x18000df51
cmp r11d, 7
jne 0x18000dfa9
mov r8d, ebx
mov rdx, rbx
movzx eax, byte [rbp + rdx + 0x68]
movsx ecx, byte [rbp + rdx - 0x50]
xor ecx, eax
movzx eax, byte [rbp + rdx + 0x60]
cmp ecx, eax
jne 0x18000df9f
inc r8d
inc rdx
cmp r8d, 6
jb 0x18000df7e
cmp r8d, 6
je 0x18000debc
mov r11, qword [0x180026470]
mov qword [0x180026468], rbx
mov r9d, 1
mov r8, r11
mov rdx, rbx
mov r10d, 0x271c
lea rdi, [0x180000000]
mov rax, rdx
and eax, 0x3f
mov al, byte [rax + rdi + 0x223f0]
xor byte [r8], al
jne 0x18000dff5
mov eax, r9d
lea rcx, [r11 + rdx + 1]
inc r9d
mov qword [rdi + rax*8 + 0x288c0], rcx
inc rdx
inc r8
dec r10
jne 0x18000dfd0
mov qword [0x1800288c0], r11
mov ecx, ebx
lea rdx, [0x180029660]
lea eax, [rcx - 0x41]
cmp eax, 0x19
ja 0x18000e01f
lea eax, [rcx + 0x20]
mov byte [rdx], al
jmp 0x18000e021
mov byte [rdx], cl
inc ecx
inc rdx
cmp ecx, 0x100
jb 0x18000e010
mov ecx, esi
call fcn.18000e370
mov ecx, 0xfffffffe
test eax, eax
cmovs ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x150]
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000e054
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
movsxd rsi, ecx
lea r12, str.64_
cmp qword [0x180026468], rbx
mov edi, ebx
jne 0x18000e0a5
mov edx, 0x1bb1
mov rcx, r12
call fcn.18000cb10
mov qword [0x180026468], rax
test rax, rax
jne 0x18000e0a5
lea rax, [0x18002647c]
jmp 0x18000e11a
mov r8d, 0x1bb0
mov ecx, esi
lea r13, str.WBE
cmp esi, r8d
jae 0x18000e0da
lea rdx, [r12 + rsi]
mov eax, ecx
and eax, 0x3f
mov al, byte [rax + r13]
xor al, byte [rdx]
je 0x18000e0d6
inc ecx
inc rdx
cmp ecx, r8d
jb 0x18000e0bd
jmp 0x18000e0da
mov edi, ecx
sub edi, esi
lea ecx, [rdi + 1]
add rcx, rcx
call fcn.18000ca40
mov r11, rax
test rax, rax
je 0x18000e09c
test edi, edi
je 0x18000e117
lea rcx, [r12 + rsi]
mov rdx, rax
lea eax, [rbx + rsi]
inc ebx
and eax, 0x3f
mov al, byte [rax + r13]
xor al, byte [rcx]
inc rcx
movsx eax, al
mov word [rdx], ax
add rdx, 2
cmp ebx, edi
jb 0x18000e0f8
mov rax, r11
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x18000e134
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov rax, qword [0x180026468]
xor ebx, ebx
movsxd rsi, ecx
mov edi, ebx
test rax, rax
jne 0x18000e186
lea rcx, str.64_
mov edx, 0x1bb1
call fcn.18000cb10
mov qword [0x180026468], rax
test rax, rax
jne 0x18000e186
lea rax, [0x180026478]
jmp 0x18000e1fd
mov r8d, 0x1bb0
mov ecx, esi
mov rbp, rsi
lea r12, str.WBE
cmp esi, r8d
jae 0x18000e1be
lea rdx, [rax + rsi]
mov eax, ecx
and eax, 0x3f
mov al, byte [rax + r12]
xor al, byte [rdx]
je 0x18000e1ba
inc ecx
inc rdx
cmp ecx, r8d
jb 0x18000e1a1
jmp 0x18000e1be
mov edi, ecx
sub edi, esi
lea ecx, [rdi + 1]
call fcn.18000ca40
mov r11, rax
test rax, rax
je 0x18000e17d
test edi, edi
je 0x18000e1fa
mov rdx, qword [0x180026468]
sub rbp, rax
mov rcx, rax
add rdx, rbp
lea eax, [rbx + rsi]
inc ebx
and eax, 0x3f
mov al, byte [rax + r12]
xor al, byte [rdx + rcx]
mov byte [rcx], al
inc rcx
cmp ebx, edi
jb 0x18000e1e2
mov rax, r11
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x18000e434
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, r8
movzx r10d, dx
mov rbx, rcx
xor edi, edi
mov r8d, r9d
mov rdx, rax
and dword [rsp + 0x44], edi
movzx ecx, r10w
mov esi, r9d
mov dword [rsp + 0x40], 2
call fcn.18000e3c0
mov qword [rsp + 0x48], rax
test rax, rax
je 0x18000e539
and qword [rsp + 0x30], rdi
and dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18000e51c
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x18000e4e8
mov byte [rsp + 0x5f], dil
xor ecx, ecx
lea rdx, [rsp + 0x50]
lea eax, [rcx + 0x41]
inc ecx
mov byte [rdx], al
inc rdx
cmp ecx, 0xf
jb 0x18000e4cd
lea rcx, [rsp + 0x50]
call fcn.18000cf64
jmp 0x18000e51c
mov rdx, qword [rsp + 0x48]
and qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
mov r8d, dword [rdx + 4]
mov rcx, rbx
add r8d, 8
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
je 0x18000e51c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, 1
test rbx, rbx
je 0x18000e52a
mov rcx, rbx
call qword [0x180028748]
lea rcx, [rsp + 0x48]
mov rdx, rsi
call fcn.18000ca70
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x18000e7b8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rdx], ecx
mov dword [rdx + 0x9c0], 1
movsxd rcx, dword [rdx + 0x9c0]
mov eax, dword [rdx + rcx*4 - 4]
shr eax, 0x1e
xor eax, dword [rdx + rcx*4 - 4]
imul eax, eax, 0x6c078965
add eax, ecx
mov dword [rdx + rcx*4], eax
inc dword [rdx + 0x9c0]
cmp dword [rdx + 0x9c0], 0x270
jl 0x18000e7c4
repz ret