joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016810
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
xor ebx, ebx
mov dword [0x14055f170], eax
mov eax, dword [rsp + 0x24]
mov dword [0x14055f174], eax
mov eax, dword [rsp + 0x48]
mov dword [0x14055f178], eax
mov dword [rsp + 0x60], ebx
mov byte [0x14055f17d], bl
call fcn.140017a80
test al, al
je 0x14001687e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
test eax, eax
je 0x14001687e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14001687e
inc eax
mov byte [0x14055f17d], 1
mov dword [0x14055f200], eax
mov byte [0x14055f17e], bl
mov word [rsp + 0x60], bx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessGroupAffinity]
mov edi, 1
test eax, eax
jne 0x1400168bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400168bb
movzx eax, word [rsp + 0x60]
jmp 0x1400168c2
mov eax, edi
mov word [rsp + 0x60], ax
cmp ax, di
seta cl
call fcn.140017970
test al, al
je 0x1400168eb
call fcn.1400165f0
test al, al
je 0x1400168eb
cmp dword [0x14055f204], edi
seta al
mov byte [0x14055f17e], al
jmp 0x1400168f2
movzx eax, byte [0x14055f17e]
test al, al
je 0x140016940
mov r9d, dword [0x14055f208]
test r9, r9
je 0x1400169c3
lea r8, [0x14055f180]
nop dword [rax]
mov rcx, rbx
mov rax, rbx
shr rax, 6
and ecx, 0x3f
lea rdx, [r8 + rax*8]
inc rbx
mov rax, qword [rdx]
bts rax, rcx
mov qword [rdx], rax
cmp rbx, r9
jb 0x140016910
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x1400169c3
mov r9, qword [rsp + 0x60]
lea r8, [0x14055f180]
nop dword [rax]
test r9, rdi
je 0x140016991
mov rcx, rbx
mov rax, rbx
shr rax, 6
and ecx, 0x3f
lea rdx, [r8 + rax*8]
mov rax, qword [r8 + rax*8]
bts rax, rcx
mov qword [rdx], rax
rol rdi, 1
test r9, rdi
je 0x1400169b6
lea rdx, [rbx + 1]
mov rax, rdx
and edx, 0x3f
shr rax, 6
lea rcx, [r8 + rax*8]
mov rax, qword [r8 + rax*8]
bts rax, rdx
mov qword [rcx], rax
rol rdi, 1
add rbx, 2
cmp rbx, 0x40
jb 0x140016970
mov rbx, qword [rsp + 0x70]
mov al, 1
add rsp, 0x50
pop rdi
ret

Function at 0x14004b440
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004b48a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004b48a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004b48a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004b48a
cmp dword [rcx + 0x84], 0xe
jbe 0x14004b48a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004b48c
xor al, al
add rsp, 0x28
ret

Function at 0x14004ebd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004ebf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14004ebf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400555a8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov rsi, r8
mov rdi, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140188e80
nop
test rbx, rbx
je 0x1400555fe
add rbx, 0xc
mov rdx, rbx
jmp 0x140055600
xor edx, edx
mov qword [rbp - 0x50], rdx
mov rcx, qword [rbp - 0x48]
mov rbx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rbx
mov rbx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rbx
mov rcx, qword [rcx + 8]
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x88], rdx
mov r8, rsi
mov qword [rbp - 0x90], r8
mov r9, rdi
mov qword [rbp - 0x98], r9
lea rcx, [rbp - 0x78]
call fcn.140009f30
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x88]
mov r8, qword [rbp - 0x90]
mov r9, qword [rbp - 0x98]
call sub.ADVAPI32.dll_RegQueryValueExW
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.140009f80
nop
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x140055689
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.140188ec0
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140058a10
Capabilities:
Set console window title

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
xor eax, eax
mov qword [rbp - 0x40], rax
test rcx, rcx
je 0x140058a3c
add rcx, 0xc
mov rbx, rcx
jmp 0x140058a3e
xor ebx, ebx
mov qword [rbp - 0x40], rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbx
mov qword [rbp - 0x70], rcx
lea rcx, [rbp - 0x68]
call fcn.140009f30
mov rcx, qword [rbp - 0x70]
call sub.KERNEL32.dll_SetConsoleTitleW
mov ebx, eax
lea rcx, [rbp - 0x68]
call fcn.140009f80
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x140564774]
mov edx, reloc.WS2_32.dll_recv
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x140058ab9
mov dword [rdi + 0xd0], esi
test ebx, ebx
setne al
movzx eax, al
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x14019bfbc]
call rax
mov rdi, rax
jmp 0x140058a9a
Function at 0x140058acc
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
xor ecx, ecx
mov dword [r9], ecx
mov qword [rbp - 0x40], r9
mov r14, r9
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x74], rcx
mov rdx, rsi
mov qword [rbp - 0x7c], rdx
mov r8d, edi
mov dword [rbp - 0x6c], r8d
mov r9, r14
mov qword [rbp - 0x84], r9
lea rcx, [rbp - 0x68]
call fcn.140009f30
mov rcx, qword [rbp - 0x74]
mov rdx, qword [rbp - 0x7c]
mov r8d, dword [rbp - 0x6c]
mov r9, qword [rbp - 0x84]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x68]
call fcn.140009f80
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x140564774]
mov edx, reloc.WS2_32.dll_recv
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x140058b98
mov dword [rdi + 0xd0], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x14019bfbc]
call rax
mov rdi, rax
jmp 0x140058b7f
Function at 0x1400611a0
Capabilities:
Create process on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0x110]
xor eax, eax
mov qword [rbp - 0x68], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x60], xmm4
mov qword [rbp - 0x50], rax
mov rbx, rdx
mov r14, qword [rbp + 0x48]
mov rsi, qword [rbp + 0x50]
mov rdi, qword [rbp + 0x58]
cmp byte [rbp + 0x30], 0
setne r15b
movzx r15d, r15b
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x48], rsi
test r14, r14
je 0x1400611fa
add r14, 0xc
jmp 0x1400611fd
xor r14d, r14d
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x58], r9
mov r13, r9
mov qword [rbp - 0x60], r8
mov r12, r8
test rcx, rcx
je 0x14006121d
add rcx, 0xc
mov rax, rcx
jmp 0x14006121f
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x98], rax
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov dword [rsp + 0x20], r15d
mov r15d, dword [rbp + 0x38]
mov dword [rsp + 0x28], r15d
mov r15, qword [rbp + 0x40]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov rcx, qword [rbp - 0x98]
mov qword [rbp - 0xa0], rcx
mov rdx, rbx
mov qword [rbp - 0xa8], rdx
mov r8, r12
mov qword [rbp - 0xb0], r8
mov r9, r13
mov qword [rbp - 0xb8], r9
lea rcx, [rbp - 0x90]
call fcn.140009f30
mov rcx, qword [rbp - 0xa0]
mov rdx, qword [rbp - 0xa8]
mov r8, qword [rbp - 0xb0]
mov r9, qword [rbp - 0xb8]
call sub.KERNEL32.dll_CreateProcessW
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.140009f80
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x140564774]
mov edx, reloc.WS2_32.dll_recv
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x140061321
mov dword [rdi + 0xd0], esi
test ebx, ebx
setne al
movzx eax, al
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x14019bfbc]
call rax
mov rdi, rax
jmp 0x1400612ff
Function at 0x140061a18
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0xe0]
xor eax, eax
mov qword [rbp - 0x58], rax
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov r14d, r9d
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
mov qword [rbp + 0x10], rbx
mov qword [rbx], rcx
mov qword [rbp + 0x18], rsi
mov qword [rsi], rcx
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x50], rcx
mov byte [rbp - 0x84], 0
lea rcx, [0x14033ffd8]
call fcn.1402f8ddc
mov qword [rbp - 0x90], rax
mov byte [rbp - 0x88], 0
lea rcx, [0x14033ffd8]
call fcn.1402f8ddc
mov qword [rbp - 0x98], rax
mov qword [rbp - 0x58], rdi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
lea rcx, [rbp - 0x48]
mov qword [rbp - 0xa4], rcx
lea rdx, [rbp - 0x50]
mov qword [rbp - 0xac], rdx
mov r8, rdi
mov qword [rbp - 0xb4], r8
mov r9d, r14d
mov dword [rbp - 0x9c], r9d
lea rcx, [rbp - 0x80]
call fcn.140009f30
mov rcx, qword [rbp - 0xa4]
mov rdx, qword [rbp - 0xac]
mov r8, qword [rbp - 0xb4]
mov r9d, dword [rbp - 0x9c]
call sub.KERNEL32.dll_CreatePipe
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.140009f80
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x58], rcx
mov dword [rbp - 0x3c], 1
mov rcx, qword [rbp - 0x50]
mov byte [rbp - 0x84], 1
mov rax, qword [rbp - 0x90]
mov qword [rax + 8], rcx
mov rcx, qword [rbp - 0x48]
mov byte [rbp - 0x88], 1
mov r8, qword [rbp - 0x98]
mov qword [r8 + 8], rcx
test ebx, ebx
setne bl
movzx ebx, bl
mov rcx, qword [rbp + 0x18]
mov rdx, rax
call fcn.140008450
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x98]
call fcn.140008450
nop
mov rax, qword gs:[0x58]
mov ecx, dword [0x140564774]
mov edx, reloc.WS2_32.dll_recv
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x140061ba0
mov dword [rdi + 0xd0], esi
movzx eax, bl
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x14019bfbc]
call rax
mov rdi, rax
jmp 0x140061b83
Function at 0x140066bb4
Capabilities:
Enumerate process modules

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x140344078]
cmp qword [rcx - 8], 0
jne 0x140066bf2
mov rcx, rbx
call fcn.140066974
test eax, eax
jne 0x140066be0
add rsp, 0x20
pop rbx
jmp fcn.140067d40
mov rcx, rbx
mov edx, 1
add rsp, 0x20
pop rbx
jmp fcn.140067cc0
call fcn.140001074
jmp 0x140066bca
Function at 0x140113350
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x64], r8d
mov rdx, rcx
mov qword [rbp - 0x70], rdx
xor ecx, ecx
mov qword [rbp - 0x78], rcx
mov r9d, 2
mov dword [rbp - 0x68], r9d
lea rcx, [rbp - 0x60]
call fcn.140009f30
mov r8d, dword [rbp - 0x64]
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
mov r9d, dword [rbp - 0x68]
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
lea rcx, [rbp - 0x60]
call fcn.140009f80
test ebx, ebx
jne 0x1401133c4
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp ebx, 0xc0000017
je 0x1401133ec
lea rcx, [0x14035c680]
call fcn.1400081d0
mov rbx, rax
mov rcx, rbx
call fcn.1401353b0
mov rcx, rbx
call fcn.140008750
int3
lea rcx, [0x14035ce50]
call fcn.1400081d0
mov rbx, rax
mov rcx, rbx
call fcn.140139bf4
mov rcx, rbx
call fcn.140008750
int3

Function at 0x140113874
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x50]
mov rbx, rcx
mov eax, dword [rbx + 0x38]
cmp eax, 0xffffffff
je 0x140113891
add rsp, 0x48
pop rbx
pop rbp
ret
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r9d, 4
call fcn.1401a27d0
mov ecx, eax
test ecx, ecx
jne 0x14011391e
xor eax, eax
mov ecx, 0x40000000
test byte [rbp - 0x10], 0x30
cmove eax, ecx
mov ecx, eax
or ecx, 0x80000000
test byte [rbp - 0x10], 2
cmovne eax, ecx
mov ecx, eax
or ecx, 0x10000000
test dword [rbp - 0x10], 0x800
cmovne eax, ecx
mov ecx, eax
or ecx, 0x8000000
test byte [rbp - 0x10], 4
cmovne eax, ecx
mov ecx, eax
or ecx, 0x4000000
test dword [rbp - 0x10], 0x1000
cmovne eax, ecx
mov ecx, eax
or ecx, 0x20000000
test byte [rbp - 0x10], 8
cmovne eax, ecx
mov dword [rbx + 0x38], eax
add rsp, 0x48
pop rbx
pop rbp
ret
call fcn.1401a2774
mov ecx, eax
lea rdx, [0x1403019a0]
xor r8d, r8d
call fcn.14017d170
mov rcx, rax
call fcn.140008750
int3

Function at 0x14011772c
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14011773e
add rsp, 0x28
jmp fcn.140117ea0
lea rcx, [0x140335370]
call fcn.140056f14
int3
Function at 0x140117860
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x20]
xorps xmm4, xmm4
movaps xmmword [rbp + 0x50], xmm4
movaps xmmword [rbp + 0x60], xmm4
xor eax, eax
mov qword [rbp + 0x70], rax
mov rax, qword [0x140550cc0]
mov qword [rbp + 0x18], rax
test dword [rsp], esp
sub rsp, 0x210
lea rcx, [rsp + 0x20]
mov qword [rbp + 0x68], rcx
mov dword [rbp + 0x70], 0x104
xor ecx, ecx
mov dword [rbp + 0x60], ecx
mov rcx, qword gs:[0x58]
mov eax, dword [0x140564774]
mov edx, reloc.WS2_32.dll_recv
add rdx, qword [rcx + rax*8]
mov rbx, qword [rdx]
test rbx, rbx
je 0x1401179ff
mov qword [rbp + 0x20], rbx
jmp 0x1401178eb
mov edx, ebx
sub edx, dword [rbp + 0x60]
lea rcx, [rbp + 0x58]
call fcn.140062b38
mov esi, dword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov qword [rbp + 0x50], rdi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, esi
mov dword [rbp + 0x14], ecx
mov rdx, rdi
mov qword [rbp + 0xc], rdx
lea rcx, [rbp + 0x28]
call fcn.140009f30
mov ecx, dword [rbp + 0x14]
mov rdx, qword [rbp + 0xc]
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebx, eax
lea rcx, [rbp + 0x28]
call fcn.140009f80
call sub.KERNEL32.dll_GetLastError
xor edx, edx
mov qword [rbp + 0x50], rdx
mov rsi, qword [rbp + 0x20]
mov dword [rsi + 0xd0], eax
mov edx, ebx
movsxd rcx, dword [rbp + 0x70]
cmp rdx, rcx
jg 0x140117963
test ebx, ebx
je 0x140117a20
mov dword [rbp + 0x60], ebx
mov r8d, dword [rbp + 0x60]
cmp r8d, dword [rbp + 0x70]
jbe 0x14011796d
jmp 0x140117a1a
cmp ebx, dword [rbp + 0x70]
jbe 0x1401178eb
jmp 0x1401178dd
mov rcx, qword [rbp + 0x68]
mov edx, 0x7e
call fcn.14013b5a0
test eax, eax
je 0x1401179f1
lea rcx, [rbp + 0x58]
xor edx, edx
call fcn.14017cbc0
mov rbx, rax
mov rsi, qword [rbp + 0x58]
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
movups xmmword [rbp + 0x68], xmm0
test rsi, rsi
je 0x1401179c7
lea rcx, [0x140344de8]
cmp qword [rcx - 8], 0
jne 0x140117a13
mov rcx, qword [0x14054f4e0]
mov rcx, qword [rcx + 8]
mov rdx, rsi
xor r8d, r8d
cmp dword [rcx], ecx
call fcn.140255b20
mov rax, rbx
lea rcx, [0x140550cc0]
mov rcx, qword [rcx]
cmp qword [rbp + 0x18], rcx
je 0x1401179df
call fcn.140007a10
nop
lea rsp, [rbp + 0x78]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0x58]
call fcn.140062914
mov rbx, rax
jmp 0x1401179c7
mov rcx, rdx
lea rax, [0x14019bfbc]
call rax
mov rbx, rax
jmp 0x1401178d7
call fcn.140002f12
jmp 0x1401179af
call fcn.14013c570
int3
lea rcx, [0x1403019a0]
call fcn.14017d11c
mov rcx, rax
call fcn.140008750
int3
Function at 0x1401257a0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbp
push rbx
mov qword [rsp + 0x60], r9
mov r10, qword [rcx]
mov ecx, dword [rcx + 8]
mov r11, qword [rdx]
mov ebx, ecx
and ebx, 0xfffffffc
mov esi, dword [rdx + 8]
xor edi, edi
xor ebp, ebp
test ecx, ecx
je 0x1401259bc
lea r14, [0x140439910]
mov eax, ebx
sar eax, 2
lea eax, [rax + rax*2]
cmp esi, eax
jl 0x1401257e7
lea r15d, [rbx - 4]
jmp 0x1401257fe
mov edx, 0x55555556
mov eax, edx
imul esi
mov r15d, edx
shr r15d, 0x1f
add r15d, edx
shl r15d, 2
test r15d, r15d
jle 0x1401258a1
movsxd rax, edi
lea rax, [r10 + rax*2]
movzx edx, word [rax]
movzx r13d, word [rax + 2]
movzx r12d, word [rax + 4]
movzx eax, word [rax + 6]
mov r9d, edx
or r9d, r13d
or r9d, r12d
or r9d, eax
test r9d, 0xffffff00
je 0x14012583c
mov r9d, 0xffffffff
jmp 0x14012586e
movsxd rdx, edx
movsx rdx, byte [r14 + rdx]
shl edx, 0x12
movsxd r9, eax
movsx rax, byte [r14 + r9]
or edx, eax
movsxd rax, r13d
movsx rax, byte [r14 + rax]
shl eax, 0xc
or edx, eax
movsxd rax, r12d
movsx rax, byte [r14 + rax]
shl eax, 6
or edx, eax
mov r9d, edx
test r9d, r9d
jl 0x1401259d9
movsxd rax, ebp
add rax, r11
mov edx, r9d
sar edx, 0x10
mov byte [rax], dl
mov edx, r9d
sar edx, 8
mov byte [rax + 1], dl
mov byte [rax + 2], r9b
add ebp, 3
add edi, 4
cmp edi, r15d
jl 0x140125807
lea eax, [rbx - 4]
cmp r15d, eax
jne 0x1401259d9
cmp edi, ebx
je 0x1401259d9
lea eax, [rbx - 4]
cdqe
movzx eax, word [r10 + rax*2]
lea edx, [rbx - 3]
movsxd rdx, edx
movzx edx, word [r10 + rdx*2]
lea r9d, [rbx - 2]
movsxd r9, r9d
movzx r9d, word [r10 + r9*2]
lea r15d, [rbx - 1]
movsxd r15, r15d
movzx r10d, word [r10 + r15*2]
mov r15d, eax
or r15d, edx
or r15d, r9d
or r15d, r10d
test r15d, 0xffffff00
jne 0x1401259d9
cdqe
movsx rax, byte [r14 + rax]
shl eax, 0x12
movsxd rdx, edx
movsx rdx, byte [r14 + rdx]
shl edx, 0xc
or eax, edx
cmp r10d, 0x3d
je 0x140125960
movsxd rdx, r10d
movsx rdx, byte [r14 + rdx]
or eax, edx
movsxd r9, r9d
movsx rdx, byte [r14 + r9]
shl edx, 6
or eax, edx
jl 0x1401259d9
add esi, 0xfffffffd
cmp ebp, esi
jg 0x1401259d9
movsxd rdx, ebp
add r11, rdx
mov edx, eax
sar edx, 0x10
mov byte [r11], dl
mov edx, eax
sar edx, 8
mov byte [r11 + 1], dl
mov byte [r11 + 2], al
add ebp, 3
jmp 0x1401259b5
cmp r9d, 0x3d
je 0x14012599e
movsxd rdx, r9d
movsx rdx, byte [r14 + rdx]
shl edx, 6
or edx, eax
mov eax, edx
test eax, eax
jl 0x1401259d9
lea edx, [rsi - 2]
cmp ebp, edx
jg 0x1401259d9
mov edx, eax
sar edx, 0x10
movsxd r10, ebp
mov byte [r11 + r10], dl
sar eax, 8
lea edx, [rbp + 1]
movsxd rdx, edx
mov byte [r11 + rdx], al
add ebp, 2
jmp 0x1401259b5
test eax, eax
jl 0x1401259d9
lea edx, [rsi - 1]
cmp ebp, edx
jg 0x1401259d9
sar eax, 0x10
movsxd rdx, ebp
mov byte [r11 + rdx], al
inc ebp
add edi, 4
cmp ebx, ecx
jne 0x1401259d9
mov dword [r8], edi
mov r9, qword [rsp + 0x60]
mov dword [r9], ebp
mov eax, 1
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [r8], edi
mov r9, qword [rsp + 0x60]
mov dword [r9], ebp
xor eax, eax
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140126040
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rdi
push rsi
push rbp
push rbx
push rax
xor eax, eax
mov qword [rsp], rax
mov r10, rdx
mov r11d, dword [rsp + 0x60]
mov edx, 0x55555556
mov eax, edx
imul r9d
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [rax + rax*2]
mov edx, r9d
sub edx, eax
sub r9d, edx
add r9d, r8d
xor eax, eax
xor ebx, ebx
lea rsi, [0x1404302b0]
mov qword [rsp], rsi
cmp r8d, r9d
jge 0x14012617f
movzx edi, r11b
test edi, edi
je 0x1401260be
cmp ebx, 0x4c
jne 0x1401260bb
lea ebx, [rax + 1]
cdqe
mov word [rcx + rax*2], recv
mov eax, ebx
lea ebx, [rax + 1]
cdqe
mov word [rcx + rax*2], 0xa
xor eax, eax
mov ebp, eax
mov eax, ebx
mov ebx, ebp
add ebx, 4
movsxd rbp, r8d
movzx r14d, byte [r10 + rbp]
and r14d, 0xfc
sar r14d, 2
movsxd r14, r14d
movzx r14d, byte [r14 + rsi]
movsxd r15, eax
mov word [rcx + r15*2], r14w
movzx ebp, byte [r10 + rbp]
and ebp, 3
shl ebp, 4
lea r14d, [r8 + 1]
movsxd r14, r14d
movzx r15d, byte [r10 + r14]
and r15d, 0xf0
sar r15d, 4
or ebp, r15d
movsxd rbp, ebp
movzx ebp, byte [rsi + rbp]
lea r15d, [rax + 1]
movsxd r15, r15d
mov word [rcx + r15*2], bp
movzx ebp, byte [r10 + r14]
and ebp, 0xf
shl ebp, 2
lea r14d, [r8 + 2]
movsxd r14, r14d
movzx r15d, byte [r10 + r14]
and r15d, 0xc0
sar r15d, 6
or ebp, r15d
movsxd rbp, ebp
movzx ebp, byte [rsi + rbp]
lea r15d, [rax + 2]
movsxd r15, r15d
mov word [rcx + r15*2], bp
movzx ebp, byte [r10 + r14]
and ebp, 0x3f
movsxd rbp, ebp
movzx ebp, byte [rsi + rbp]
lea r14d, [rax + 3]
movsxd r14, r14d
mov word [rcx + r14*2], bp
add eax, 4
add r8d, 3
cmp r8d, r9d
jl 0x140126092
movzx edi, r11b
test edi, edi
je 0x1401261b2
test edx, edx
je 0x1401261b2
cmp ebx, 0x4c
jne 0x1401261b2
mov r8d, eax
lea eax, [r8 + 1]
movsxd r8, r8d
mov word [rcx + r8*2], recv
mov r8d, eax
lea eax, [r8 + 1]
movsxd r8, r8d
mov word [rcx + r8*2], 0xa
cmp edx, 1
je 0x140126240
cmp edx, 2
jne 0x14012629c
movsxd rdx, r9d
movzx edx, byte [r10 + rdx]
and edx, 0xfc
sar edx, 2
movsxd rdx, edx
movzx edx, byte [rdx + rsi]
movsxd r8, eax
mov word [rcx + r8*2], dx
movsxd rdx, r9d
movzx edx, byte [r10 + rdx]
and edx, 3
shl edx, 4
inc r9d
movsxd r8, r9d
movzx r9d, byte [r10 + r8]
and r9d, 0xf0
sar r9d, 4
or edx, r9d
movsxd rdx, edx
movzx edx, byte [rdx + rsi]
lea r9d, [rax + 1]
movsxd r9, r9d
mov word [rcx + r9*2], dx
movzx r10d, byte [r10 + r8]
and r10d, 0xf
shl r10d, 2
movsxd rdx, r10d
movzx edx, byte [rdx + rsi]
lea r8d, [rax + 2]
movsxd r8, r8d
mov word [rcx + r8*2], dx
jmp 0x14012628d
movsxd rdx, r9d
movzx edx, byte [r10 + rdx]
and edx, 0xfc
sar edx, 2
movsxd rdx, edx
movzx edx, byte [rdx + rsi]
movsxd r8, eax
mov word [rcx + r8*2], dx
movsxd rdx, r9d
movzx edx, byte [r10 + rdx]
and edx, 3
shl edx, 4
movsxd rdx, edx
movzx edx, byte [rdx + rsi]
lea r8d, [rax + 1]
movsxd r8, r8d
mov word [rcx + r8*2], dx
lea edx, [rax + 2]
movsxd rdx, edx
mov word [rcx + rdx*2], 0x3d
lea edx, [rax + 3]
movsxd rdx, edx
mov word [rcx + rdx*2], 0x3d
add eax, 4
xor ecx, ecx
mov qword [rsp], rcx
add rsp, 8
pop rbx
pop rbp
pop rsi
pop rdi
pop r14
pop r15
ret
Function at 0x140135620
Capabilities:
Encode data using xor

Disassembly:
cmp edx, 8
jae 0x14013565d
cmp edx, 4
jae 0x1401356ba
mov eax, 0x80
test dl, 1
je 0x140135647
mov eax, edx
and rax, 2
movzx eax, byte [rcx + rax]
or eax, 0x8000
test dl, 2
je 0x1401356f4
shl eax, 0x10
movzx edx, word [rcx]
or eax, edx
jmp 0x1401356f4
mov eax, edx
shr eax, 3
add r8d, dword [rcx]
mov r10d, dword [rcx + 4]
xor r9d, r8d
rol r8d, 0x14
add r8d, r9d
rol r9d, 9
xor r9d, r8d
rol r8d, 0x1b
add r8d, r9d
rol r9d, 0x13
add r10d, r8d
mov r8d, r9d
xor r8d, r10d
rol r10d, 0x14
add r10d, r8d
rol r8d, 9
xor r8d, r10d
rol r10d, 0x1b
add r10d, r8d
rol r8d, 0x13
mov r9d, r8d
add rcx, 8
dec eax
mov r8d, r10d
jne 0x140135662
test dl, 4
je 0x1401356d9
add r8d, dword [rcx]
xor r9d, r8d
rol r8d, 0x14
add r8d, r9d
rol r9d, 9
xor r9d, r8d
rol r8d, 0x1b
add r8d, r9d
rol r9d, 0x13
mov eax, edx
and rax, 7
mov eax, dword [rcx + rax - 4]
shr eax, 8
or eax, 0x80000000
mov ecx, edx
not ecx
shl ecx, 3
shr eax, cl
add eax, r8d
mov ecx, r9d
xor ecx, eax
rol eax, 0x14
add eax, ecx
rol ecx, 9
xor ecx, eax
rol eax, 0x1b
add eax, ecx
rol ecx, 0x13
xor ecx, eax
rol eax, 0x14
add eax, ecx
rol ecx, 9
xor ecx, eax
rol eax, 0x1b
add eax, ecx
rol ecx, 0x13
xor eax, ecx
ret