joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012e38
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14009f1b0]
xor rax, rsp
mov qword [rsp + 0x48], rax
and qword [rsp + 0x30], 0
xor bl, bl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140012ec9
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140012ec9
and qword [rsp + 0x28], 0
lea r8, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov edi, 1
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x44], 2
lea r9d, [rdi + 0xf]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
movzx ebx, bl
cmovne ebx, edi
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140012ed9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004b030
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140012ef4
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x14009f1b0]
xor rax, rsp
mov qword [rsp + 0x260], rax
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
call fcn.140012e38
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
xor ebx, ebx
call fcn.14004d3c0
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140012fb3
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140012faa
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140012f86
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x140012f5c
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x140012faa
mov ebx, dword [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14004b030
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x140013874
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x400
mov rax, qword [0x14009f1b0]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
lea rdx, [0x140088e1c]
call qword [sym.imp.SHLWAPI.dll_StrStrA]
test rax, rax
je 0x1400138e3
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x3d0
call fcn.14004d3c0
lea rcx, [rsp + 0x20]
call fcn.140011c60
lea rcx, [rsp + 0x20]
call fcn.140011ff8
lea rcx, [rsp + 0x20]
call fcn.140011d88
jmp 0x140013982
mov edi, 0x430
mov ecx, edi
call fcn.14004b618
mov r8d, edi
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.14004d3c0
mov edi, pe_nt_image_headers64
mov dword [rbx + 0x424], 1
mov edx, edi
lea r8, str.WindowsTaskHostProcSvc
mov rcx, rbx
call fcn.140059924
lea rcx, [rbx + 0x200]
mov edx, edi
lea r8, [0x140088e20]
call fcn.140059924
and qword [rbx + 0x400], 0
and dword [rbx + 0x414], 0
and dword [rbx + 0x418], 0
and dword [rbx + 0x41c], 0
and dword [rbx + 0x420], 0
mov dword [rbx + 0x408], 0x10
mov dword [rbx + 0x40c], 1
mov dword [rbx + 0x410], 1
mov qword [0x1400a4b40], rbx
call fcn.1400139a8
xor eax, eax
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.14004b030
mov rbx, qword [rsp + 0x410]
add rsp, 0x400
pop rdi
ret

Function at 0x1400139a8
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x14009f1b0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, qword [0x1400a4b40]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and qword [rbp - 0x19], rdi
lea r8, [rbp - 0x19]
mov rcx, rax
lea edx, [rdi + 0x18]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140013ab0
mov rcx, qword [rbp - 0x19]
lea rax, [rbp - 0x11]
and dword [rbp - 0x11], edi
lea r9d, [rdi + 0x38]
lea r8, [rbp + 0xf]
mov qword [rsp + 0x20], rax
lea edx, [rdi + 0xa]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140013a5c
and dword [rbp - 5], edi
and dword [rbp + 3], edi
and dword [rbp + 0xb], edi
mov rax, qword [rbp + 0x17]
mov dword [rbp - 9], 0x3e7
mov dword [rbp - 1], 0x3e5
mov dword [rbp + 7], 0x3e4
cmp qword [rbp - 9], rax
je 0x140013a57
cmp qword [rbp - 1], rax
je 0x140013a57
cmp qword [rbp + 7], rax
jne 0x140013a5c
mov edi, 1
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140013a6b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140013ab0
and qword [rbp + 0x1f], 0
lea rcx, [0x14001372c]
and qword [rbp + 0x27], 0
mov qword [rbp + 0x17], rcx
lea rcx, [rbp + 0xf]
mov dword [rbx + 0x424], 1
mov qword [rbp + 0xf], rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140013aac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x414], eax
mov al, 1
jmp 0x140013aba
mov rcx, rbx
call fcn.14001643c
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14004b030
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400140ac
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 4], 0
mov rdx, rcx
je 0x1400140df
xor r8d, r8d
mov cl, r8b
movabs rax, 0xe1f511d51961f783
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 4
jb 0x1400140b8
mov byte [rdx + 4], 0
mov rax, rdx
ret

Function at 0x1400140e4
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 5], 0
mov rdx, rcx
je 0x140014117
xor r8d, r8d
mov cl, r8b
movabs rax, 0x730b5fc175f311ed
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 5
jb 0x1400140f0
mov byte [rdx + 5], 0
mov rax, rdx
ret

Function at 0x14001411c
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 5], 0
mov rdx, rcx
je 0x14001414f
xor r8d, r8d
mov cl, r8b
movabs rax, 0x9b3b417967055da1
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 5
jb 0x140014128
mov byte [rdx + 5], 0
mov rax, rdx
ret
Function at 0x140018f6c
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14009f1b0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.140001728
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x60]
mov r9d, 0xff
xor esi, esi
mov qword [rsp + 0x28], rsi
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call fcn.140055b24
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x424], esi
jne 0x140018ff2
lea rcx, [rsp + 0x60]
call fcn.14005b184
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140019042
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov ecx, 1
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov word [rsp + 0x28], cx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea edx, [rcx + 3]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14004b030
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret

Function at 0x140031284
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140031297
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14003ad64
lea rdx, [0x14009bfd0]
lea rcx, [rsp + 0x20]
call fcn.14004ce70
int3

Function at 0x14003b6fc
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400a33c8]
xor edx, edx
jmp fcn.140031284

Function at 0x14003c094
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400a33c8]
jmp fcn.140031284

Function at 0x140047d08
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140047dc4]
mov r9, qword [r9 + 8]
jmp fcn.140038ec0

Function at 0x140047d9c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140047dd4]
mov r9, qword [r9 + 8]
jmp fcn.140038ec0
Function at 0x14005c3f4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14005c42b
call fcn.14005af70
mov dword [rax], 0x16
call fcn.14005ada4
xor eax, eax
jmp 0x14005c4b9
mov rdx, r9
mov rcx, r8
call fcn.14005c390
mov rbx, rax
test rax, rax
je 0x14005c4b6
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14005c2bc]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14005c4a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14005aee4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14005c48a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14005c499
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140062078
jmp 0x14005c4b6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005c4b3
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14005f780
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14005f57c

Function at 0x140067120
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140067136
mov al, 1
jmp 0x140067196
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140067147
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140067194
mov ecx, dword [rcx + 0x18]
nop
call fcn.14006a1cc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140067194
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140067194
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140067194
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140067196
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140069d08
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140069d8f
mov rsi, rbx
cmp word [rax], bp
je 0x140069d4e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140069d38
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140069d34
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400620b4
mov rdi, rax
test rax, rax
je 0x140069d7c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14004cf60
mov rbp, rdi
xor ecx, ecx
call fcn.140062078
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14006c720
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400639a8
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14006c7c1
cmp ebx, dword [rsp + 0x30]
je 0x14006c7ba
test esi, esi
je 0x14006c7ba
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14006c795
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14006c7a2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14006c77f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14006c7a6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14006c7c3
mov eax, 1
jmp 0x14006c7c3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001ba0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, r8
mov rsi, rdx
test rdx, rdx
jne 0x140001bbb
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rdx, [0x1401e5a54]
mov qword [rsp + 0x50], rbp
call fcn.140163044
mov rbp, rax
test rax, rax
jne 0x140001be0
mov rbp, qword [rsp + 0x50]
add rsp, 0x28
pop rdi
pop rsi
ret
mov qword [rsp + 0x40], rbx
test rdi, rdi
jne 0x140001bfc
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
mov rcx, rdi
call fcn.14015fd20
mov rbx, rax
test rax, rax
jne 0x140001c27
mov rcx, rbp
call fcn.140162e94
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.140160e80
xor r9d, r9d
mov r11d, edi
mov r10d, edi
mov r8, r9
test edi, edi
je 0x140001c8c
mov rsi, qword [0x14021cc58]
mov qword [rsp + 0x20], r12
lea r12, [0x1401e5aa0]
nop dword [rax + rax]
movsx ecx, byte [r8 + rbx]
mov eax, r11d
xor edx, edx
div rsi
inc r8
inc r11d
movzx eax, byte [rdx + r12]
add r9d, ecx
xor al, cl
mov byte [r8 + rbx - 1], al
cmp r8, r10
jb 0x140001c60
mov r12, qword [rsp + 0x20]
mov eax, r9d
mov edx, 8
lea rcx, [0x1401e5a58]
lea r8d, [rdx - 7]
mov r9, rbp
mov qword [rsp + 0x48], rax
call fcn.14016321c
mov edx, 4
lea rcx, [rsp + 0x48]
lea r8d, [rdx - 3]
mov r9, rbp
call fcn.14016321c
mov r9, rbp
mov r8d, 1
mov rdx, rdi
mov rcx, rbx
call fcn.14016321c
mov rcx, rbx
call fcn.14015fdd8
mov rcx, rbp
call fcn.140162e94
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov eax, 1
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140003ae0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r13
push r14
sub rsp, 0x20
mov r13, r9
mov r14, r8
mov rbx, rdx
mov rbp, rcx
cmp rdx, 0xffff
jbe 0x140003b1b
mov qword [r9], 0
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop rbp
ret
mov qword [rsp + 0x40], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
test rsi, rsi
je 0x140003b4d
cmp byte [rsi], 0
je 0x140003b4d
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea r12, [rcx - 1]
jmp 0x140003b5b
mov r12, qword [0x14021cc58]
lea rsi, [0x1401e5aa0]
lea rax, [rdx + 4]
lea rdi, [r8 + 4]
mov qword [r9], rax
call qword [0x140186580]
mov ecx, dword [r14]
xor ecx, eax
xor edx, edx
and ecx, 0x7ffff
xor ecx, dword [r14]
mov rax, rcx
and eax, 0x7ffff
div r12
shl edx, 0x13
xor edx, ecx
and edx, 0x1f80000
xor edx, ecx
mov dword [r14], edx
cmp rbx, 0x7f
jbe 0x140003bb5
and edx, 0x1ffffff
add rdi, 2
add qword [r13], 2
mov dword [r14], edx
mov word [rdi - 2], bx
jmp 0x140003bc5
mov eax, ebx
and edx, 0x1ffffff
shl eax, 0x19
or edx, eax
mov dword [r14], edx
mov edx, dword [r14]
shr edx, 0x13
and edx, 0x3f
test rbx, rbx
je 0x140003c01
sub rbp, rdi
nop word [rax + rax]
movsxd rax, edx
inc rdi
movzx ecx, byte [rax + rsi]
lea eax, [rdx + 3]
xor edx, edx
xor cl, byte [rdi + rbp - 1]
cdqe
mov byte [rdi - 1], cl
div r12
sub rbx, 1
jne 0x140003be0
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x20
pop r14
pop r13
pop rbp
ret

Function at 0x1400042f0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor r10d, r10d
mov r11d, edx
test edx, edx
je 0x14000434e
mov qword [rsp + 0x10], rbx
mov rbx, qword [0x14021cc58]
mov qword [rsp], rdi
lea rdi, [0x1401e5aa0]
nop word [rax + rax]
mov eax, r9d
xor edx, edx
inc r10
div rbx
inc r9d
movzx eax, byte [rdx + rdi]
xor byte [r10 + rcx - 1], al
movsx eax, byte [r10 + rcx - 1]
add r8d, eax
cmp r10, r11
jb 0x140004320
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
mov eax, r8d
add rsp, 8
ret

Function at 0x140004860
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x830
mov rax, qword [0x14021af98]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rdi, rdx
lea rdx, [0x1401e5a74]
xor ebx, ebx
call fcn.140163044
mov rsi, rax
test rax, rax
je 0x14000491d
lea rdx, [0x1401e5a54]
mov rcx, rdi
call fcn.140163044
mov rdi, rax
test rax, rax
je 0x140004915
mov ebx, 1
lea rcx, [rsp + 0x20]
mov r9, rsi
mov rdx, rbx
mov r8d, 0x800
call fcn.140162a58
test eax, eax
jle 0x14000490d
nop word [rax + rax]
lea rcx, [rsp + 0x20]
movsxd rdx, eax
mov r9, rdi
mov r8, rbx
call fcn.14016321c
lea rcx, [rsp + 0x20]
mov r9, rsi
mov r8d, 0x800
mov rdx, rbx
call fcn.140162a58
test eax, eax
jg 0x1400048e0
mov rcx, rdi
call fcn.140162e94
mov rcx, rsi
call fcn.140162e94
mov eax, ebx
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.140160000
lea r11, [rsp + 0x830]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180001930
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 1
je 0x180001953
jmp 0x180001988
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180001850]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x48
ret

Function at 0x180006684
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180011f70
sub rsp, rax
mov rax, qword [0x18001e018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180008558
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800066d3
mov rax, rbp
jmp 0x1800067db
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1f3c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800092d4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x1f3c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800067d7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800067d7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800092d4
test rax, rax
js 0x1800067d7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800067d7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800067c9
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800067c9
cmp byte [rcx], 0xd
jne 0x1800067af
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800067be
cmp byte [rcx + 1], 0xa
jne 0x1800067be
inc rcx
jmp 0x1800067be
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1e180]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180006791
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800067db
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180001a20
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180008580
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x18001f3c0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1800085de
cmp word [rdx], r12w
jne 0x1800085de
or byte [rax + r8*8 + 0x38], cl
jmp 0x1800085e4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18000873f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18000871a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18000861d
mov rcx, r9
jmp 0x180008640
cmp r9, rdx
jae 0x180008657
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x180008601
jmp 0x18000873f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180008714
cmp dword [rsp + 0x80], edi
je 0x180008714
mov rdx, r14
lea r11, [0x18001f3c0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1800086ed
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1800086c0
mov word [rbx], r12w
jmp 0x18000873b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1800086c9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18000873b
cmp word [rsp + 0x70], r12w
jne 0x1800086fa
cmp rbx, rsi
je 0x1800086ba
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1800092dc
cmp word [rsp + 0x70], r12w
je 0x18000873f
mov word [rbx], r13w
jmp 0x18000873b
lea r11, [0x18001f3c0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x180008737
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18000873f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret