joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f560
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1403f42b0]
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 0x14000f583
lea rax, [0x1403f42b8]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x15]
jmp 0x14000f5cb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000f5c8
lea rax, [0x1403f42e0]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x14]
jmp 0x14000f5fb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000f5f8
xor ecx, ecx
mov byte [0x1403f42f4], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1403f42fd], rdx
lea r8, [0x1403f42b0]
lea rbx, [0x1403f42f5]
mov qword [0x1403f430d], rdx
mov qword [0x1403f431d], rdx
mov qword [0x1403f432d], rdx
xor edx, edx
mov qword [0x1403f42f5], rax
mov qword [0x1403f4305], rax
mov qword [0x1403f4315], rax
mov qword [0x1403f4325], rax
mov byte [0x1403f4335], 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 0x14000f7d6
lea rcx, [0x1403f42e0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14000f721
lea rsi, [0x1403f4220]
lea r8, [0x1403f4335]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14000f6cd
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x14000f6c0
lea rcx, [0x1403f42e0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x14000f7c3
lea rcx, [0x14000f470]
mov qword [0x1403f4220], 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 [0x1403f4220]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x56
lea rdx, [0x1403f42e0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1403f4335]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x14000f7f6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x14000f773
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x14000f760
mov rax, rdx
mov qword [0x1403f4220], rax
lea rsi, [0x1403f4220]
jmp 0x14000f799
cmp rdx, rsi
je 0x14000f6ff
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x14000f790
cmp rdx, rsi
je 0x14000f6ff
mov qword [rdx + 8], rsi
lea rcx, [0x14000f470]
call sub.msvcrt.dll__onexit
jmp 0x14000f6ff
lea rcx, [0x1403e9d10]
call fcn.14000f3e0
xor eax, eax
jmp 0x14000f718
lea rcx, [0x1403e9ce8]
call fcn.14000f3e0
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, [0x1403e9d38]
call fcn.14000f3e0
xor eax, eax
jmp 0x14000f77f
Function at 0x140011e80
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1403ea820]
mov rax, qword [rsi]
test rax, rax
je 0x140011f10
cmp qword [rax + 0x30], 0
jne 0x140011f30
lea rbx, [0x1403e6dd8]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140011ee0
cmp qword [rax + 0x30], 0
jne 0x140011f00
lea rdx, [0x1403e6dd8]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400324d0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140016d80
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140011ec2
test rax, rax
jne 0x140011f00
call fcn.140016d80
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140011ed0
call fcn.140016d80
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140011ea0
test rax, rax
jne 0x140011f30
call fcn.140016d80
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140011eab
call sub.msvcrt.dll_abort
nop

Function at 0x140011f40
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 0x140012052
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001202a
add rax, 1
cmp rax, 0x6b
je 0x140012047
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140012020
cmp edx, 0x6a
je 0x140012047
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 0x14001203b
Function at 0x140016c00
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 0x140016c20
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 0x140016c68
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140016c14
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 0x140016c55
Function at 0x140016d80
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1403f44a0]
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 0x140016da3
lea rax, [0x1403f44a8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140016deb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140016de8
lea rax, [0x1403f44e0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140016e1b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140016e18
xor ecx, ecx
mov byte [0x1403f44f9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1403f4502], rdx
lea r8, [0x1403f44a0]
lea rbx, [0x1403f44fa]
mov qword [0x1403f4512], rdx
mov qword [0x1403f4522], rdx
mov qword [0x1403f4532], rdx
xor edx, edx
mov qword [0x1403f44fa], rax
mov qword [0x1403f450a], rax
mov qword [0x1403f451a], rax
mov qword [0x1403f452a], rax
mov byte [0x1403f453a], 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 0x140016ff6
lea rcx, [0x1403f44e0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140016f41
lea rsi, [0x1403f43e0]
lea r8, [0x1403f453a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140016eed
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140016ee0
lea rcx, [0x1403f44e0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140016fe3
lea rcx, [0x140016c90]
mov qword [0x1403f43e0], 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 [0x1403f43e0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1403f44e0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1403f453a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140017016
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140016f93
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140016f80
mov rax, rdx
mov qword [0x1403f43e0], rax
lea rsi, [0x1403f43e0]
jmp 0x140016fb9
cmp rdx, rsi
je 0x140016f1f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140016fb0
cmp rdx, rsi
je 0x140016f1f
mov qword [rdx + 8], rsi
lea rcx, [0x140016c90]
call sub.msvcrt.dll__onexit
jmp 0x140016f1f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140016c00
xor eax, eax
jmp 0x140016f38
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140016c00
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.140016c00
xor eax, eax
jmp 0x140016f9f
Function at 0x180003500
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.180016630
test al, al
jne 0x180003524
nop dword [rax]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.180016630
test al, al
je 0x180003510
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x180003530
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x20a
call fcn.18001b264
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
mov rbx, rax
call fcn.18001d870
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str.mstsc
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x1800035a4
call fcn.180016630
test al, al
jne 0x1800035a4
nop dword [rax + rax]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.180016630
test al, al
je 0x180003590
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x18000b5b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18000b5e4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18000b5d0
ret
Function at 0x18000f330
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x18000f3fc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x18000f3fc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x18000f415
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x18000f3ec
cmp byte [rax], 0x5c
jne 0x18000f3e6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x18000f3e6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x18000f3d2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x18000f3e3
test r8b, 0x10
jne 0x18000f3e6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x18000f3e6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.18000bca0
test edi, edi
jne 0x18000f350
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.18000bc90
int3
Function at 0x180013840
Capabilities:
Encode data using xor

Disassembly:
movzx r10d, byte [rdx]
mov r11, rdx
mov r9, qword [rcx + 0x18]
movzx r8d, r10b
movzx eax, byte [r9 + 0x1d]
xor r8b, byte [rax + rcx + 0x71]
xor byte [r9], r8b
mov r9, qword [rcx + 0x18]
movzx eax, byte [r9 + 0x1e]
movzx r8d, byte [rax + rcx + 0x71]
xor byte [r9 + 1], r8b
mov r9d, 5
mov r8, qword [rcx + 0x18]
movzx eax, byte [r8 + 0x1f]
movzx edx, byte [rax + rcx + 0x71]
xor byte [r8 + 2], dl
mov r8, qword [rcx + 0x18]
movzx eax, byte [r8 + 0x1c]
movzx edx, byte [rax + rcx + 0x71]
movzx eax, r10b
xor byte [r8 + 3], dl
add r10b, r10b
shr al, 7
movzx eax, al
imul edx, eax, 0x1b
xor dl, r10b
mov r10b, 4
mov byte [r11], dl
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rcx + 0x18]
movzx eax, r10b
add r10b, 4
lea r8, [rdx + r9]
movzx edx, byte [rax + rdx - 4]
xor byte [r8 - 1], dl
mov rax, qword [rcx + 0x18]
lea rdx, [rax + r9]
movzx eax, byte [rax + r9 - 4]
xor byte [rdx], al
mov rax, qword [rcx + 0x18]
lea rdx, [r9 + rax]
movzx eax, byte [r9 + rax - 3]
xor byte [rdx + 1], al
mov rax, qword [rcx + 0x18]
lea rdx, [r9 + rax]
movzx eax, byte [r9 + rax - 2]
xor byte [rdx + 2], al
lea r9, [r9 + 4]
cmp r10b, 0x10
jb 0x1800138c0
mov r8, qword [rcx + 0x18]
mov r10b, 0x14
mov r9d, 0x15
movzx eax, byte [r8 + 0xc]
movzx edx, byte [rax + rcx + 0x71]
xor byte [r8 + 0x10], dl
mov r8, qword [rcx + 0x18]
movzx eax, byte [r8 + 0xd]
movzx edx, byte [rax + rcx + 0x71]
xor byte [r8 + 0x11], dl
mov r8, qword [rcx + 0x18]
movzx eax, byte [r8 + 0xe]
movzx edx, byte [rax + rcx + 0x71]
xor byte [r8 + 0x12], dl
mov r8, qword [rcx + 0x18]
movzx eax, byte [r8 + 0xf]
movzx edx, byte [rax + rcx + 0x71]
xor byte [r8 + 0x13], dl
nop word [rax + rax]
mov rdx, qword [rcx + 0x18]
movzx eax, r10b
add r10b, 4
lea r8, [rdx + r9]
movzx edx, byte [rax + rdx - 4]
xor byte [r8 - 1], dl
mov rax, qword [rcx + 0x18]
lea rdx, [rax + r9]
movzx eax, byte [rax + r9 - 4]
xor byte [rdx], al
mov rax, qword [rcx + 0x18]
lea rdx, [r9 + rax]
movzx eax, byte [r9 + rax - 3]
xor byte [rdx + 1], al
mov rax, qword [rcx + 0x18]
lea rdx, [r9 + rax]
movzx eax, byte [r9 + rax - 2]
xor byte [rdx + 2], al
lea r9, [r9 + 4]
cmp r10b, 0x20
jb 0x180013970
ret
Function at 0x180014240
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, rdx
mov rdi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 0xf
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
mov esi, ebp
lea r15, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx ebx, byte [rsp + 0x70]
nop dword [rax]
nop dword [rax + rax]
mov rax, rsi
shr rax, 3
cmp rax, 0x20
jb 0x180014318
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1800142d6
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1800142ce
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x1800142e8
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.18000e770
mov eax, 6
inc rbp
add rsi, rax
cmp rsi, 0x108
jb 0x1800142a0
mov rax, rdi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
lea rcx, [rsi + 6]
shr rcx, 3
cmp rcx, 0x20
jb 0x18001432a
xor cl, cl
jmp 0x18001432f
movzx ecx, byte [rcx + r14]
movzx edx, byte [rax + r14]
mov rax, rbp
and eax, 3
je 0x180014376
sub rax, 1
je 0x180014366
sub rax, 1
je 0x180014356
cmp rax, 1
jne 0x18001437c
movzx ebx, dl
and bl, 0x3f
jmp 0x18001437c
movzx ebx, dl
and bl, 0xf
shl bl, 2
shr cl, 6
add bl, cl
jmp 0x18001437c
movzx ebx, dl
and bl, 3
shl bl, 4
shr cl, 4
add bl, cl
jmp 0x18001437c
movzx ebx, dl
shr bl, 2
movzx eax, bl
movzx r9d, byte [rax + r15]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1800142d9
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1800143a9
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1800142e8
Function at 0x1800143c0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rcx
mov dword [rsp + 0x60], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor edi, edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 0xf
mov byte [rcx], dil
mov dword [rsp + 0x60], 1
test r8b, 3
jne 0x180014519
lea rbp, [r8 - 1]
test rbp, rbp
je 0x180014519
lea rsi, [rdx + 1]
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx eax, byte [rsi - 1]
cmp al, 0x3d
je 0x180014519
movzx r8d, byte [rsi]
cmp r8b, 0x3d
je 0x180014519
xor cl, cl
mov edx, eax
movsx rax, cl
movsx eax, byte [rax + r14]
cmp edx, eax
je 0x18001445b
inc cl
cmp cl, 0x40
jae 0x180014519
jmp 0x180014441
cmp cl, 0xff
je 0x180014519
xor r9b, r9b
nop word [rax + rax]
movsx rax, r9b
movsx eax, byte [rax + r14]
cmp r8d, eax
je 0x18001448d
inc r9b
cmp r9b, 0x40
jae 0x180014519
jmp 0x180014470
cmp r9b, 0xff
je 0x180014519
mov rax, rdi
and eax, 3
je 0x1800144c1
sub rax, 1
je 0x1800144b4
cmp rax, 1
jne 0x18001450a
and r9b, 0x3f
shl cl, 6
jmp 0x1800144cc
shr r9b, 2
and r9b, 0xf
shl cl, 4
jmp 0x1800144cc
shr r9b, 4
and r9b, 3
shl cl, 2
add r9b, cl
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x1800144fb
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1800144f0
mov rax, qword [rbx]
mov byte [rax + rcx + 1], 0
mov byte [rax + rcx], r9b
jmp 0x18001450a
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.18000e770
inc rdi
inc rsi
cmp rdi, rbp
jb 0x180014423
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1800157e0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180015837
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x180015879
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180015810
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.18001d870
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
nop
cmp qword [rsp + 0x48], rdi
je 0x18001588a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x180015860
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x180015879
mov rcx, rdi
cmp eax, 1
je 0x1800158a5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1800157f0
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
Function at 0x1800172f0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rdi, rcx
test rcx, rcx
jne 0x18001730e
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180017357
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x180017399
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180017330
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.18001d870
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
nop
cmp qword [rsp + 0x48], rdi
je 0x1800173ac
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x180017380
xor eax, eax
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
lea rcx, [rsp + 0x50]
call fcn.180013fa0
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
Function at 0x180017b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov r8d, 6
lea rdx, str.TargetResource
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x180017ce9
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180017ce9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x180017ce9
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x180017ce9
mov r14d, eax
mov ecx, eax
call fcn.18001b264
mov rdi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call fcn.18001d0f0
mov r14d, dword [rdi]
lea rcx, [r14 + 1]
call fcn.18001b264
mov rsi, rax
lea r8, [r14 + 1]
xor edx, edx
mov rcx, rax
call fcn.18001d870
mov r8d, dword [rdi]
lea rdx, [rdi + 4]
mov rcx, rsi
call fcn.18001d0f0
mov rdx, rsi
mov rcx, rbx
call fcn.180017d10
mov rcx, rsi
test al, al
jne 0x180017c3a
call fcn.18001add0
mov rcx, rdi
call fcn.18001add0
xor al, al
jmp 0x180017ce9
call fcn.18001add0
mov r14d, dword [rdi]
add r14, 4
add r14, rdi
movzx eax, byte [r14]
mov qword [rbx + 0x28], rax
movzx eax, byte [r14]
test al, al
je 0x180017cc8
mov esi, eax
lea rcx, [rax + 1]
call fcn.18001b264
mov r15, rax
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
call fcn.18001d870
mov qword [rbx + 0x30], r15
movzx r8d, byte [r14]
lea rdx, [r14 + 1]
mov rcx, r15
call fcn.18001d0f0
movzx eax, byte [r14]
add r14, rax
mov eax, dword [r14 + 1]
mov qword [rbx + 0x38], rax
mov r15d, dword [r14 + 1]
mov ecx, r15d
call fcn.18001b264
mov rsi, rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.18001d870
mov qword [rbx + 0x40], rsi
mov r8d, dword [r14 + 1]
lea rdx, [r14 + 5]
mov rcx, rsi
call fcn.18001d0f0
mov rcx, rdi
call fcn.18001add0
mov rcx, qword [rbx + 0x18]
call fcn.180017680
mov rcx, qword [rbx + 0x20]
call fcn.180017680
nop
mov al, 1
jmp 0x180017ce9
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
Function at 0x180018f90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
cmp byte [rcx + 0x3c], sil
je 0x1800190cd
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x180018fe7
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1800190b6
lea rdx, [rsp + 0x90]
call fcn.180013d30
mov r13, rax
mov rdx, rax
lea rcx, [0x18004c1c8]
call fcn.180013c30
mov r14, rax
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x180019021
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop dword [rax]
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov rcx, r12
cmp r8d, 0x400
jbe 0x180019067
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180019077
add ebx, dword [rsp + 0x30]
jmp 0x180019082
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x180019088
cmp ebx, edi
je 0x18001908d
jmp 0x180019040
mov esi, 0x6d
mov dword [rsp + 0x30], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test r13, r13
je 0x1800190a8
mov rcx, r13
call fcn.18001add0
test r14, r14
je 0x1800190b6
mov rcx, r14
call fcn.18001add0
nop
jmp 0x1800190c4
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret