joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800015d0
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.steam_api64.dll_SteamAPI_Init]
test al, al
je 0x180001631
lea rcx, [0x1800199f0]
call qword [sym.imp.steam_api64.dll_SteamInternal_ContextInit]
mov edx, 0x1057fc
mov rcx, qword [rax]
mov rax, qword [rcx]
call qword [rax + 0x30]
test al, al
je 0x18000160c
call fcn.180001060
mov eax, 2
add rsp, 0x28
ret
lea r8, str.signature
mov rcx, 0xffffffff80000001
lea rdx, str.SOFTWAREGlobal_DelightBoom3D
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueA]
mov eax, 1
add rsp, 0x28
ret
call fcn.1800013b0
movzx eax, al
inc eax
add rsp, 0x28
ret
Function at 0x1800090d8
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180009108
xor eax, eax
jmp 0x1800091cb
mov rbp, rbx
cmp word [rax], si
je 0x18000912d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180009114
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180009110
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180008ff8
movsxd r14, eax
test eax, eax
jne 0x18000916b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180009101
mov rcx, r14
call fcn.180006c74
mov rdi, rax
test rax, rax
jne 0x180009184
xor ecx, ecx
call fcn.18000749c
jmp 0x180009160
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180008ff8
test eax, eax
jne 0x1800091b5
mov rcx, rdi
call fcn.18000749c
jmp 0x1800091bf
xor ecx, ecx
call fcn.18000749c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18000e800
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000e828
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000e828
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001df47
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140045040]
jne 0x140018f6a
rol rcx, 0x10
test cx, 0xffff
jne 0x140018f66
repz ret
ror rcx, 0x10
jmp 0x14001dea0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14004ab60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14004ac58]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001df25
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14004ab60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001df47
mov rax, qword [rsp + 0x88]
mov qword [0x14004ac58], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14004abf8], rax
mov rax, qword [0x14004ac58]
mov qword [0x14004aad0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14004abe0], rax
mov dword [0x14004aac0], 0xc0000409
mov dword [0x14004aac4], 1
mov rax, qword [0x140045040]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140045048]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14004ab58], eax
mov ecx, 1
call fcn.140027ce0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140038f18]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14004ab58], 0
jne 0x14001dfce
mov ecx, 1
call fcn.140027ce0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x14001e18e
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [str.KERNEL32.DLL]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [str.InitOnceExecuteOnce]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
lea rcx, [rsp + 0x20]
xor r9d, r9d
mov rdx, qword [0x1400450d0]
call rax
test eax, eax
je 0x14001e1d5
add rsp, 0x28
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x14001e190
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [str.KERNEL32.DLL]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [str.InitOnceExecuteOnce]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
lea rcx, [rsp + 0x20]
xor r9d, r9d
mov rdx, qword [0x1400450d0]
call rax
test eax, eax
je 0x14001e1d5
add rsp, 0x28
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x14001e2d0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x68
mov rcx, qword [str.KERNEL32.DLL]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, dword [0x1400450d8]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
xor ecx, ecx
mov rdx, rbp
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r8d, r8d
xor eax, eax
movzx r9d, word [rbp + r8*2]
cmp r9d, 0x5c
je 0x14001e6f6
test r9d, r9d
je 0x14001e32e
inc r8
jmp 0x14001e314
lea r13, [rbp + rax*2 + 2]
mov rbp, qword [0x1400450b4]
cmp dword [rbp], 0
je 0x14001e38c
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movzx eax, al
cmp al, byte [rbp]
je 0x14001e35a
cmp al, byte [rbp + 1]
jne 0x14001e427
movzx r8d, word [r13]
xor edx, edx
xor eax, eax
test r8d, r8d
je 0x14001e37e
movsxd rax, r8d
jmp 0x14001e329
Function at 0x1800021d0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
movdqa xmm2, xmmword [str.ZZZZZZZZZZZZZZZZ]
xor ecx, ecx
test rdx, rdx
je 0x180002269
test r8d, r8d
je 0x180002264
cmp r8d, 0x20
jb 0x18000223e
movdqa xmm1, xmmword [0x180016700]
mov eax, r8d
and eax, 0x1f
mov r9d, r8d
sub r9d, eax
nop word [rax + rax]
movdqu xmm0, xmmword [rdx]
add ecx, 0x20
pxor xmm0, xmm2
pandn xmm0, xmm1
movdqu xmmword [rdx], xmm0
movdqu xmm0, xmmword [rdx + 0x10]
pxor xmm0, xmm2
pandn xmm0, xmm1
movdqu xmmword [rdx + 0x10], xmm0
add rdx, 0x20
cmp ecx, r9d
jb 0x180002210
cmp ecx, r8d
jae 0x180002264
sub r8d, ecx
mov ecx, r8d
nop dword [rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
xor al, 0x5a
not al
mov byte [rdx - 1], al
sub rcx, 1
jne 0x180002250
add rsp, 0x28
ret
call fcn.180007604
int3

Function at 0x180002270
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
movsx r9d, cl
xor ecx, ecx
movd xmm1, r9d
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
test rdx, rdx
je 0x18000230a
test r8d, r8d
je 0x180002305
cmp r8d, 0x20
jb 0x1800022de
movdqa xmm2, xmmword [0x180016700]
mov eax, r8d
and eax, 0x1f
mov r10d, r8d
sub r10d, eax
movdqu xmm0, xmmword [rdx]
add ecx, 0x20
pandn xmm0, xmm2
pxor xmm0, xmm1
movdqu xmmword [rdx], xmm0
movdqu xmm0, xmmword [rdx + 0x10]
pandn xmm0, xmm2
pxor xmm0, xmm1
movdqu xmmword [rdx + 0x10], xmm0
add rdx, 0x20
cmp ecx, r10d
jb 0x1800022b0
cmp ecx, r8d
jae 0x180002305
sub r8d, ecx
mov ecx, r8d
nop dword [rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
not al
xor al, r9b
mov byte [rdx - 1], al
sub rcx, 1
jne 0x1800022f0
add rsp, 0x28
ret
call fcn.180007604
int3

Function at 0x180002310
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x180019008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, qword [r14 + 8]
mov rbp, rax
sub rsi, qword [r14]
inc rsi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rcx, rax
mov rdx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call fcn.180005da0
mov r8, qword [r14]
mov r9, rsi
mov rdx, rbx
mov qword [0x18001aba8], rbx
mov rcx, rdi
mov dword [0x18001abb0], esi
mov qword [rsp + 0x20], 0
call fcn.180002b80
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov r8, rbx
mov rdx, rbx
mov rcx, rbp
call fcn.180002bc0
lea r8d, [rsi - 1]
mov rdx, rbx
mov cl, 0x34
call fcn.180002270
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov rcx, rbp
call fcn.180002c00
mov rcx, r14
call fcn.1800026f0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180002c90
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x180002920
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x28
cmp dword [0x18001ac20], 0
je 0x180002937
mov eax, 1
add rsp, 0x28
ret
mov rax, qword gs:[0x60]
mov qword [rsp + 0x18], r12
xor r12d, r12d
mov edx, r12d
mov rcx, qword [rax + 0x18]
mov r8, qword [rcx + 0x10]
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x180002b34
mov r10, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r10 + 0x88]
test ecx, ecx
je 0x18000299d
lea rdx, [r10 + rcx]
mov ecx, dword [r10 + rcx + 0xc]
mov eax, dword [rcx + r10]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x18000299d
mov eax, dword [rcx + r10 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x1800029a9
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x180002960
test rdx, rdx
je 0x180002b34
mov r11d, dword [rdx + 0x18]
mov qword [rsp + 0x30], rbx
mov ebx, r12d
mov qword [rsp + 0x38], rbp
mov ebp, dword [rdx + 0x24]
mov qword [rsp + 0x40], rsi
mov esi, dword [rdx + 0x20]
mov qword [rsp + 0x20], rdi
add rsi, r10
mov qword [rsp + 0x10], r13
mov r13d, 0x775a
mov qword [rsp + 8], r14
mov r14d, dword [rdx + 0x1c]
add r14, r10
mov qword [rsp], r15
add rbp, r10
lea r15, [0x18001ac20]
nop dword [rax + rax]
dec r11d
mov edx, dword [rsi + r11*4]
add rdx, r10
cmp word [rdx], r13w
jne 0x180002a65
mov r9d, r12d
mov r8d, 0x9fcb6aa6
cmp byte [rdx], r9b
je 0x180002a3d
mov rax, rdx
movzx eax, word [rax]
mov ecx, r8d
ror ecx, 8
inc r9d
add ecx, eax
mov eax, r9d
add rax, rdx
xor r8d, ecx
cmp byte [rax], r12b
jne 0x180002a21
mov edx, ebx
inc ebx
add rdx, rdx
mov dword [r15 + rdx*8 + 8], r8d
movzx eax, word [rbp + r11*2]
mov ecx, dword [r14 + rax*4]
mov dword [r15 + rdx*8 + 0xc], ecx
mov qword [r15 + rdx*8 + 0x10], r12
cmp ebx, 0x1f4
je 0x180002a6a
test r11d, r11d
jne 0x180002a00
mov r14, qword [rsp + 8]
lea eax, [rbx - 1]
mov r13, qword [rsp + 0x10]
mov r11d, r12d
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov dword [0x18001ac20], ebx
test eax, eax
je 0x180002b17
mov ecx, ebx
mov eax, r12d
sub ecx, r11d
cmp ecx, 1
je 0x180002b08
nop
lea r10d, [rax + 1]
mov r8d, eax
add r8, r8
mov r9d, r10d
add r9, r9
mov edi, dword [r15 + r8*8 + 0xc]
cmp edi, dword [r15 + r9*8 + 0xc]
jbe 0x180002af9
mov eax, dword [r15 + r9*8 + 8]
mov edx, dword [r15 + r8*8 + 8]
mov rcx, qword [r15 + r8*8 + 0x10]
mov dword [r15 + r8*8 + 8], eax
mov eax, dword [r15 + r9*8 + 0xc]
mov dword [r15 + r8*8 + 0xc], eax
mov rax, qword [r15 + r9*8 + 0x10]
mov qword [r15 + r8*8 + 0x10], rax
mov dword [r15 + r9*8 + 8], edx
mov dword [r15 + r9*8 + 0xc], edi
mov qword [r15 + r9*8 + 0x10], rcx
mov ebx, dword [0x18001ac20]
mov ecx, ebx
mov eax, r10d
sub ecx, r11d
dec ecx
cmp r10d, ecx
jb 0x180002aa0
inc r11d
lea eax, [rbx - 1]
cmp r11d, eax
jb 0x180002a92
mov r15, qword [rsp]
mov eax, 1
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
mov r12, qword [rsp + 0x18]
add rsp, 0x28
ret
xor eax, eax
mov r12, qword [rsp + 0x18]
add rsp, 0x28
ret
Function at 0x180002b80
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x1789392f
call fcn.180002b40
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x180002bc0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xf450e6e7
call fcn.180002b40
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x180002c00
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x46e45445
call fcn.180002b40
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1800030e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x180003171
movsxd rax, dword [0x18000003c]
lea rdx, [0x180000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x180003171
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180003171
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x180003155
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x18000314f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x180003157
add rdx, 0x28
jmp 0x180003134
xor edx, edx
test rdx, rdx
jne 0x180003160
xor al, al
jmp 0x180003177
test dword [rdx + 0x24], 0x80000000
je 0x18000316d
xor al, al
jmp 0x180003177
mov al, 1
jmp 0x180003177
xor al, al
jmp 0x180003177
add rsp, 0x18
ret
Function at 0x180007604
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x180007424
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180007424
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180007424
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180007424
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180007424
cmp dword [rcx + 0x84], 0xe
jbe 0x180007424
cmp dword [rcx + 0xf8], esi
je 0x180007424
mov ecx, r14d
call fcn.18000756c
mov ecx, 2
call fcn.180008bac
nop
cmp byte [0x18001a238], 0
jne 0x1800074ee
mov r15d, 1
mov eax, r15d
xchg dword [0x18001a228], eax
test ebx, ebx
jne 0x180007497
mov rdi, qword [0x180019008]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x18001a230]
cmp rcx, rax
je 0x18000748e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.180003c58]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x18001a268]
jmp 0x1800074a3
cmp ebx, r15d
jne 0x1800074a9
lea rcx, [0x18001a280]
call fcn.180007f04
nop
test ebx, ebx
jne 0x1800074c0
lea rdx, [0x18000f2f0]
lea rcx, [0x18000f2d0]
call fcn.18000815c
lea rdx, [0x18000f300]
lea rcx, [0x18000f2f8]
call fcn.18000815c
movzx eax, byte [0x18001a238]
test esi, esi
cmove eax, r15d
mov byte [0x18001a238], al
jmp 0x1800074ee
mov ecx, 2
call fcn.180008c00
test esi, esi
jne 0x180007505
mov ecx, r14d
call fcn.180007520
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1800073b4
Function at 0x140001e00
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1d8
mov rsi, qword [rdx + 8]
mov rbx, rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x220], rcx
mov rdi, rdx
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rax
call fcn.1400aebe0
and ebx, 3
jne 0x140001f3a
mov rdx, qword [rdi]
lea rax, [rsi - 1]
cmp byte [rdx + rsi - 1], 0x3d
je 0x140002013
mov rbp, qword [rsp + 0x20]
and rbp, 0xfffffffffffffffc
je 0x140001f30
lea rsi, [0x1400c8060]
lea r13, [rsp + 0x3f]
lea r12, [rsp + 0x50]
lea r14, [rsp + 0x3e]
lea r15, [rsp + 0x3d]
jmp 0x140001e8b
mov rdx, qword [rdi]
movsx rax, byte [rdx + rbx + 1]
movsx rdx, byte [rdx + rbx]
mov r8d, 1
mov rcx, r12
movzx eax, byte [rsi + rax]
movzx edx, byte [rsi + rdx]
shr al, 4
and eax, 3
lea eax, [rax + rdx*4]
mov rdx, r13
mov byte [rsp + 0x3f], al
call fcn.1400bb480
mov rcx, qword [rdi]
mov r8d, 1
movsx rax, byte [rcx + rbx + 2]
movzx eax, byte [rsi + rax]
shr al, 2
and eax, 0xf
mov edx, eax
movsx rax, byte [rcx + rbx + 1]
mov rcx, r12
movzx eax, byte [rsi + rax]
shl eax, 4
add eax, edx
mov rdx, r14
mov byte [rsp + 0x3e], al
call fcn.1400bb480
mov rdx, qword [rdi]
mov r8d, 1
mov rcx, r12
movsx rax, byte [rdx + rbx + 2]
movsx rdx, byte [rdx + rbx + 3]
movzx eax, byte [rsi + rax]
shl eax, 6
add al, byte [rsi + rdx]
mov rdx, r15
mov byte [rsp + 0x3d], al
call fcn.1400bb480
add rbx, 4
cmp rbp, rbx
ja 0x140001e88
mov r9, qword [rsp + 0x20]
cmp r9, rbp
ja 0x140001f72
mov rcx, qword [rsp + 0x220]
lea rdx, [rsp + 0x58]
call fcn.140030580
mov rcx, qword [rsp + 0x28]
call fcn.1400af610
mov rax, qword [rsp + 0x220]
add rsp, 0x1d8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rdi]
lea rsi, [0x1400c8060]
lea rbx, [rbp + 1]
movsx rax, byte [rcx + rbp]
movzx eax, byte [rsi + rax]
lea edx, [rax*4]
xor eax, eax
cmp rbx, r9
jb 0x140002032
lea r12, [rsp + 0x50]
add eax, edx
mov r8d, 1
lea rdx, [rsp + 0x3c]
mov rcx, r12
mov byte [rsp + 0x3c], al
call fcn.1400bb480
mov r10, qword [rsp + 0x20]
xor eax, eax
cmp rbx, r10
jae 0x140001ff7
mov rcx, qword [rdi]
lea r8, [rbp + 2]
movsx rax, byte [rcx + rbp + 1]
movzx eax, byte [rsi + rax]
shl eax, 4
mov edx, eax
xor eax, eax
cmp r8, r10
jae 0x140001ff2
movsx rax, byte [rcx + rbp + 2]
movzx eax, byte [rsi + rax]
shr al, 2
and eax, 0xf
add eax, edx
movsx eax, al
lea rdx, [rsp + 0x3b]
mov r8d, 1
mov rcx, r12
mov byte [rsp + 0x3b], al
call fcn.1400bb480
jmp 0x140001f3a
sub qword [rsp + 0x20], 2
mov rcx, qword [rsp + 0x20]
cmp byte [rdx + rcx], 0x3d
je 0x140001e57
mov qword [rsp + 0x20], rax
jmp 0x140001e57
movsx rax, byte [rcx + rbp + 1]
movzx eax, byte [rsi + rax]
shr al, 4
and eax, 3
jmp 0x140001f9b
Function at 0x140012640
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14001ec20
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001ec20
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x1400126b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400f60b4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140012860
mov rax, qword [0x1400f60b8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400126fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140012787
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400126e0
mov rcx, r12
call fcn.140013160
mov rbp, rax
test rax, rax
je 0x1400128bd
mov rax, qword [0x1400f60b8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140013290
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400f60b8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400128a2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140012780
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140012810
add dword [0x1400f60b4], 1
cmp ebx, 8
jae 0x1400127b8
test bl, 4
jne 0x140012870
test ebx, ebx
je 0x1400127a9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140012890
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1400127a9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1400127ea
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400f60b8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140012780
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140012640
xor edi, edi
jmp 0x140012707
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400127a9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400127a9
mov rax, qword [0x1400f60b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140012640
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140012640
nop
nop dword [rax]