joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b9d0
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.0041b910
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 0x41bab9
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x41bb58
mov rcx, r12
call sub.msvcrt.dll_malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x41baf4
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x41bae0
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x41bb55
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.0041b950
cmp rax, rbx
mov rsi, rax
je 0x41bb70
mov rcx, rbx
call fcn.00425f70
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.0041b950
mov rsi, rax
jmp 0x41bb2f
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x41bb2f
mov rcx, rbx
call r13
jmp 0x41bb2f
Function at 0x426560
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rcx, qword [0x004c34b8]
mov esi, edx
test rcx, rcx
je 0x426500
call fcn.0042c110
cmp dword [rbx], 0xbab1f00d
jne 0x426527
mov eax, dword [rbx + 4]
test eax, eax
jle 0x426527
mov eax, dword [rbx + 4]
test eax, eax
jle 0x4264b3
mov eax, dword [rbx + 4]
sub eax, 1
mov dword [rbx + 4], eax
mov rcx, qword [0x004c34b8]
test rcx, rcx
je 0x4264d0
call fcn.0042c1c0
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea r8, [0x00426240]
lea rcx, str.mutex_global_shmem
mov edx, 8
call fcn.0042c2a0
mov rcx, rax
mov qword [0x004c34b8], rax
call fcn.0042c1c0
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea rcx, str.mutex_global_shmem
lea r8, [0x00426240]
mov edx, 8
call fcn.0042c2a0
mov rcx, rax
mov qword [0x004c34b8], rax
jmp 0x426487
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, [0x0049f6a0]
mov dword [rsp + 0x20], 0x39
call sub.msvcrt.dll_fprintf
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop
lea r8, [0x00426240]
lea rcx, str.mutex_global_shmem
mov edx, 8
jmp fcn.0042c2a0

Function at 0x427ca0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x004c3528]
test rbx, rbx
je 0x427cd0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x004c3528]
test rax, rax
je 0x427cf4
cmp dword [rax], 0xffffffff
je 0x427d15
add rsp, 0x20
pop rbx
ret
lea r8, [0x00427130]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.0042c2a0
mov rbx, rax
mov qword [0x004c3528], rax
jmp 0x427cb1
lea r8, [0x00427130]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.0042c2a0
mov qword [0x004c3528], rax
jmp 0x427cc5
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
Function at 0x4281b0
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 [0x004c3530]
test rcx, rcx
je 0x4282f0
call fcn.00428120
mov rax, qword [0x004c3528]
test rax, rax
je 0x428313
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4281f3
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.00427af0
test rax, rax
mov rbx, rax
je 0x42835b
cmp qword [0x004c6050], 0
je 0x42835b
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 0x428362
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 [0x004c3528]
test rax, rax
je 0x428337
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x428362
mov rax, rbx
jmp 0x4281ea
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.0042c2a0
mov rcx, rax
mov qword [0x004c3530], rax
jmp 0x4281c8
lea r8, [0x00427130]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.0042c2a0
mov qword [0x004c3528], rax
jmp 0x4281dd
lea r8, [0x00427130]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.0042c2a0
mov qword [0x004c3528], rax
jmp 0x4282d8
xor eax, eax
jmp 0x4281ea
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.0042c2a0
Function at 0x428370
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x004c3530]
test rcx, rcx
je 0x4282f0
call fcn.00428120
mov rax, qword [0x004c3528]
test rax, rax
je 0x428313
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4281f3
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.00427af0
test rax, rax
mov rbx, rax
je 0x42835b
cmp qword [0x004c6050], 0
je 0x42835b
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 0x428362
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 [0x004c3528]
test rax, rax
je 0x428337
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x428362
mov rax, rbx
jmp 0x4281ea
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.0042c2a0
mov rcx, rax
mov qword [0x004c3530], rax
jmp 0x4281c8
lea r8, [0x00427130]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.0042c2a0
mov qword [0x004c3528], rax
jmp 0x4281dd
lea r8, [0x00427130]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.0042c2a0
mov qword [0x004c3528], rax
jmp 0x4282d8
xor eax, eax
jmp 0x4281ea
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.0042c2a0
Function at 0x42c2a0
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.0041b910
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 0x42c389
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x42c422
mov rcx, r12
add r14d, 0x10
call sub.msvcrt.dll_malloc
mov r10d, 0x40
mov rbx, rax
bt rbx, r10
jae 0x42c3c4
mov r11d, r15d
sub r11d, r10d
movsxd r11, r11d
mov byte [rsi + r11], 0x41
sub r10d, 1
jne 0x42c3b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x42c41f
mov rdx, rsi
movzx ecx, ax
mov r9d, r14d
mov r8d, r15d
call fcn.0042c220
cmp rax, rbx
mov rsi, rax
je 0x42c439
mov rcx, rbx
call fcn.00425f70
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.0042c220
mov rsi, rax
jmp 0x42c3f9
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x42c3f9
mov rcx, rbx
call r13
jmp 0x42c3f9

Function at 0x42de30
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x00482a30]
lea rcx, str.__terminate_handler_sh
mov edx, 8
jmp fcn.0041b9d0

Function at 0x42de50
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x00482a40]
lea rcx, str.__unexpected_handler_sh
mov edx, 8
jmp fcn.0041b9d0
Function at 0x4618d0
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.004617b0
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x461920
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x4618ea
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140005970
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400059ba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400059ba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400059ba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400059ba
cmp dword [rcx + 0x84], 0xe
jbe 0x1400059ba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400059bc
xor al, al
add rsp, 0x28
ret
Function at 0x141c5d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141c5d1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141c5d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c5d06f
add dl, dl
jne 0x141c5d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c5d0f6
xor eax, eax
add dl, dl
jne 0x141c5d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c5d1ad
add dl, dl
jne 0x141c5d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c5d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c5d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c5d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141c5d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141c5d07e
mov eax, 1
add dl, dl
jne 0x141c5d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c5d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c5d0fb
sub eax, ebx
mov ebx, 1
jne 0x141c5d14c
mov ecx, 1
add dl, dl
jne 0x141c5d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141c5d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c5d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c5d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141c5d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141c5d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c5d15d
cmp eax, 0x7d00
jae 0x141c5d19b
cmp eax, 0x500
jb 0x141c5d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c5d07e
cmp eax, 0x7f
ja 0x141c5d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c5d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141c5d1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141c5d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400010e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov eax, dword [0x14000466c]
movabs rsi, 0x4e94914f0000
movabs rbp, 0x431bde82d7b634db
movabs r12, 0x7fffffffc46535ff
movabs r15, 0x7fffffffffffffff
movabs r14, 0xb2f4fc0794908cf3
nop word [rax + rax]
inc eax
lea rcx, [rsp + 0x20]
mov dword [0x14000466c], eax
call fcn.140001000
mov rax, qword [rsp + 0x20]
lea rdi, [rax + 0x3b9aca00]
cmp rax, r12
jl 0x140001166
mov rdi, r15
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
mov rcx, rax
cmp rbx, 0x989680
jne 0x140001187
imul rax, rcx, 0x64
jmp 0x1400011f8
cmp rbx, 0x16e3600
jne 0x1400011da
mov rax, r14
imul rcx
lea r8, [rcx + rdx]
sar r8, 0x18
mov rax, r8
shr rax, 0x3f
add r8, rax
imul rax, r8, 0x16e3600
sub rcx, rax
mov rax, r14
imul rcx, rcx, 0x3b9aca00
imul rcx
lea rax, [rcx + rdx]
sar rax, 0x18
mov rcx, rax
shr rcx, 0x3f
add rax, rcx
imul rcx, r8, 0x3b9aca00
jmp 0x1400011f5
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
imul rcx, rcx, 0x3b9aca00
add rax, rcx
cmp rax, rdi
jge 0x140001247
mov rcx, rdi
sub rcx, rax
cmp rcx, rsi
jle 0x140001219
mov edx, 0x5265c00
mov ecx, edx
call sub.KERNEL32.dll_Sleep
jmp 0x140001166
mov rax, rbp
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0xf4240
cmp rax, rcx
jge 0x14000123b
inc edx
mov ecx, edx
call sub.KERNEL32.dll_Sleep
jmp 0x140001166
mov eax, dword [0x14000466c]
cmp eax, 0xa
jne 0x140001140
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140001b7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bc6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bc6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bc6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bc6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bc6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001bc8
xor al, al
add rsp, 0x28
ret
Function at 0x140001270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov eax, 8
imul rax, rax, 0x753
lea rcx, [0x1400fd970]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x18]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x18]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp], 0
jmp 0x140001341
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 0x18]
mov eax, dword [rax + 0x14]
cmp dword [rsp], eax
jae 0x140001423
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x10], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x10]
movsx eax, byte [rcx + rax]
cmp eax, 0x52
jne 0x14000141e
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x10]
movsx eax, byte [rcx + rax]
cmp eax, 0x49
jne 0x14000141e
mov eax, 1
imul rax, rax, 0xa
mov rcx, qword [rsp + 0x10]
movsx eax, byte [rcx + rax]
cmp eax, 0x46
jne 0x14000141e
mov eax, 1
imul rax, rax, 0x12
mov rcx, qword [rsp + 0x10]
movsx eax, byte [rcx + rax]
cmp eax, 0x54
jne 0x14000141e
mov eax, 1
imul rax, rax, 0x17
mov rcx, qword [rsp + 0x10]
movsx eax, byte [rcx + rax]
cmp eax, 0x43
jne 0x14000141e
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [0x1400fd958], rax
jmp 0x140001423
jmp 0x140001339
xor eax, eax
add rsp, 0x68
ret

Function at 0x14000212c
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140004dd3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004dd3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004dd3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004dd3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004dd3
cmp dword [rcx + 0x84], 0xe
jbe 0x140004dd3
cmp dword [rcx + 0xf8], 0
je 0x140004dd3
mov ecx, ebx
call fcn.140004e84
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140004c60
nop
cmp dword [rbp + 0x20], 0
je 0x140004e21
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004e2c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140004d64

Function at 0x140004f68
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140004dd3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004dd3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004dd3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004dd3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004dd3
cmp dword [rcx + 0x84], 0xe
jbe 0x140004dd3
cmp dword [rcx + 0xf8], 0
je 0x140004dd3
mov ecx, ebx
call fcn.140004e84
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140004c60
nop
cmp dword [rbp + 0x20], 0
je 0x140004e21
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004e2c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140004d64
Function at 0x14000e178
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000e1a8
xor eax, eax
jmp 0x14000e26b
mov rbp, rbx
cmp word [rax], si
je 0x14000e1cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000e1b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000e1b0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000e098
movsxd r14, eax
test eax, eax
jne 0x14000e20b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000e1a1
mov rcx, r14
call fcn.14000b198
mov rdi, rax
test rax, rax
jne 0x14000e224
xor ecx, ecx
call fcn.140009aa0
jmp 0x14000e200
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000e098
test eax, eax
jne 0x14000e255
mov rcx, rdi
call fcn.140009aa0
jmp 0x14000e25f
xor ecx, ecx
call fcn.140009aa0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400107b8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400107ce
mov al, 1
jmp 0x14001082e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400107df
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001082c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000e97c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001082c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001082c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001082c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001082e
xor al, al
add rsp, 0x20
pop rbx
ret