joyce8/EMBER2024-capa huggingface dataset:
Function at 0x753edb
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov r8, qword [rbp - 0x30]
mov edx, 0
lea rcx, [0x00753f49]
mov rax, qword [sym.imp.msvcrt.dll__beginthread]
call rax
mov qword [rbp - 0x58], rax
cmp qword [rbp - 0x58], 0xffffffffffffffff
jne 0x753f41
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov ebx, dword [rax]
mov ecx, 2
mov rax, qword [fcn.00755960]
call rax
mov r8d, ebx
lea rdx, str.runtime:_failed_to_create_new_OS_thread___d__n
mov rcx, rax
call sub.msvcrt.dll_fprintf
call sub.msvcrt.dll_abort
nop
add rsp, 0x38
pop rbx
pop rbp
ret

Function at 0x7544f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00a05784]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x7546a4
mov rax, qword [0x00a05788]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x75453c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x7545c9
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x754520
mov rcx, rbx
call fcn.007551c0
test rax, rax
mov r12, rax
je 0x7546d9
mov rax, qword [0x00a05788]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.007552f0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00a05788]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
je 0x7546bc
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x7545c2
sub eax, 0x40
and eax, 0xffffffbf
jne 0x754644
add dword [0x00a05784], 1
cmp edi, 8
jae 0x754600
test dil, 4
jne 0x754690
test edi, edi
je 0x7545ec
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x7546ab
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x7545ec
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x754630
jmp 0x7545ec
add rsi, qword [0x00a05788]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x7545c2
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.007559d0
nop dword [rax + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x7545ec
xor esi, esi
jmp 0x754547
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x7545ec
mov rax, qword [0x00a05788]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call fcn.007559d0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.007559d0
nop
nop dword [rax]
Function at 0x754e30
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00a05a60]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x00a05a40]
test rbx, rbx
je 0x754e84
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 0x754e7b
test rsi, rsi
je 0x754e7b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x754e60
lea rcx, [0x00a05a60]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]

Function at 0x7551c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x009a60c0]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x75522d
mov rcx, r8
call fcn.007550a0
test eax, eax
je 0x75522d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x75522d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x755224
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x75522f
add rax, 0x28
cmp rax, r9
jne 0x755210
xor eax, eax
add rsp, 0x28
ret

Function at 0x7559d0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00755960
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00755960
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140003070
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14003b010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000309d
xor eax, eax
jmp 0x1400031e3
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400030d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400030d7
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 0x1400031e3
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400031d6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000311a
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 0x140003129
movsx ecx, dil
jmp 0x14000317d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
js 0x1400031d6
cmp eax, 1
jle 0x140003197
cmp eax, 3
jne 0x1400031d6
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14000c54c
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400031db
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400031c4
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14000d0f4
cmp rsi, rax
jne 0x1400031d6
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x1400031db
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004650
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x140004570
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x14003b010]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.140007960
mov eax, 1
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0xac], eax
xor r9d, r9d
mov word [rsp + 0xb0], ax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x48], rax
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140004615
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140004617
xor al, al
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140004650
add rsp, 0xf0
pop rbx
ret

Function at 0x14000c528
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000c354
Function at 0x140001194
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0xcabd5e5
mov rbx, rcx
jne 0x1400011e7
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400011e7
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400011e7
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x1400011e7
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret

Function at 0x140001224
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx], 0xcabd5e5
mov rdi, rcx
jne 0x1400012fb
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400012fb
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400012fb
call fcn.140001170
mov rcx, qword [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
mov rsi, qword [rdi + 0x20]
call fcn.1400013f8
test rax, rax
je 0x1400012fb
mov ecx, eax
mov edx, 0x1000
and ecx, 0xfff
sub edx, ecx
mov ecx, dword [rdi + 8]
cmp edx, esi
cmovl esi, edx
and qword [rsp + 0x48], 0
movsxd r8, esi
cmp ecx, 0x27b
jne 0x1400012e0
lea rcx, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x20], rcx
mov rdx, rax
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x140001300
cmp ecx, 0xdfd
jne 0x1400012fb
mov rdx, qword [rdi + 0x18]
lea r9, [rsp + 0x48]
mov rcx, rax
call fcn.140001660
jmp 0x1400012dc
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400015ac
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x40
cmp dword [rcx], 0xcabd5e5
mov rbx, rcx
jne 0x140001652
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001652
and qword [rsp + 0x58], 0
lea rdx, [rsp + 0x50]
and qword [rsp + 0x50], 0
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov eax, dword [rbx + 8]
cmp eax, 0xfc6
jne 0x140001628
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r9, qword [rbx + 0x18]
mov r8, rax
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rax, qword [rbx + 0x20]
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call fcn.140001717
xor eax, eax
jmp 0x140001657
cmp eax, 0x359
jne 0x140001647
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r9, qword [rbx + 0x10]
mov rcx, rax
mov r8, qword [rsp + 0x50]
mov rdx, qword [rbx + 0x18]
jmp 0x140001607
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc0000001
add rsp, 0x40
pop rbx
ret
Function at 0x140001dec
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
xor r9d, r9d
mov rbx, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rbx + 0x18], rax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rbx + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
nop dword [rax + rax]
cmp qword [rbx + 0x18], 0
mov qword [rbx + 0x28], rax
je 0x140001ead
cmp qword [rbx + 0x20], 0
je 0x140001ead
test rax, rax
je 0x140001ead
and qword [rsp + 0x28], 0
lea r8, [0x140002214]
and dword [rsp + 0x20], 0
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [rbx + 0x30], rax
test rax, rax
je 0x140001e91
add rsp, 0x50
pop rbx
ret
lea rcx, [rsp + 0x30]
call fcn.140001bc8
lea rdx, [0x14007faf0]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
int3
lea rcx, [rsp + 0x30]
call fcn.140001bc8
lea rdx, [0x14007faf0]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x140028e24
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, r9
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test r9, r9
je 0x140028ea0
lea r9, [r11 + 0x18]
xor r8d, r8d
mov rdx, rax
call fcn.140028f2c
test eax, eax
jns 0x140028ea0
mov r9d, 0x34
lea r8, str.Sync_Error
lea rdx, str.Failed_to_open_viewer_sync_connection_to_host._This_trace_will_not_be_synchronized_with_the_host_trace._n_nWould_you_like_to_continue_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop dword [rax + rax]
cmp eax, 7
jne 0x140028ea0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop dword [rax + rax]
xor ebx, ebx
test rdi, rdi
je 0x140028f0d
xor r9d, r9d
mov r8b, 1
mov rdx, rbp
mov rcx, rsi
call fcn.140028f2c
test eax, eax
cmovs ebx, eax
add rbp, 0x18
sub rdi, 1
jne 0x140028ea7
test ebx, ebx
jns 0x140028f0d
lea r9d, [rdi + 0x34]
xor ecx, ecx
lea r8, str.Sync_Error
lea rdx, str.Failed_to_open_viewer_sync_connection_to_guest._This_trace_will_not_be_synchronized_with_one_or_more_guest_traces._n_nWould_you_like_to_continue_
call qword [sym.imp.USER32.dll_MessageBoxA]
nop dword [rax + rax]
cmp eax, 7
jne 0x140028f0d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140029948
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and dword [rsp + 0x68], 0
lea rax, [r11 - 0x18]
mov qword [r11 - 0x20], rax
lea r9, [r11 - 0x14]
lea rax, [r11 + 0x20]
mov dword [rsp + 0x30], 4
mov rbx, r8
mov qword [r11 - 0x28], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x140029990
cmp dword [rsp + 0x68], eax
setne al
mov byte [rbx], al
add rsp, 0x40
pop rbx
ret
Function at 0x14002c6c4
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
lea rcx, [0x140084ff8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
nop dword [rax + rax]
mov qword [0x1400870d0], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
nop dword [rax + rax]
mov qword [0x1400870c8], rax
cmp qword [0x1400870d0], 0
je 0x14002c896
test rax, rax
je 0x14002c896
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rsi, [0x1400870c8]
mov r9, rsi
lea r8, [0x140007aac]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [0x1400870d8], rax
test rax, rax
je 0x14002c8b2
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
nop dword [rax + rax]
mov qword [0x140087120], rax
test rax, rax
je 0x14002c87a
mov ebx, 1
mov edx, ebx
mov rcx, rsi
call fcn.140007674
lea edx, [rbx + 1]
mov rcx, rsi
call fcn.140007674
cmp byte [0x140085368], 0
je 0x14002c7cd
lea edx, [rbx + 2]
mov rcx, rsi
call fcn.140007674
mov edx, 4
mov rcx, rsi
call fcn.140007674
mov edx, 0xc
mov rcx, rsi
call fcn.140007674
mov edx, 5
mov rcx, rsi
call fcn.140007674
mov edx, 7
mov rcx, rsi
call fcn.140007674
mov edx, 6
mov rcx, rsi
call fcn.140007674
mov edx, 8
mov rcx, rsi
call fcn.140007674
mov edx, 9
mov rcx, rsi
call fcn.140007674
cmp byte [0x140085360], 0
jne 0x14002c859
cmp byte [0x14008536c], 0
je 0x14002c841
mov edx, 0xb
jmp 0x14002c84f
cmp byte [0x14008536b], 0
je 0x14002c857
mov edx, 0xa
mov rcx, rsi
call fcn.140007674
xor bl, bl
lea rcx, [0x140084ff8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov al, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rsi
ret
lea rcx, [rsp + 0x38]
call fcn.140001bc8
lea rdx, [0x14007faf0]
lea rcx, [rsp + 0x38]
call sub.msvcrt.dll__CxxThrowException
int3
lea rcx, [rsp + 0x38]
call fcn.140001bc8
lea rdx, [0x14007faf0]
lea rcx, [rsp + 0x38]
call sub.msvcrt.dll__CxxThrowException
int3
lea rcx, [rsp + 0x38]
call fcn.140001bc8
lea rdx, [0x14007faf0]
lea rcx, [rsp + 0x38]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x14004e184
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx], rsi
je 0x14004e1ca
test rdx, rdx
je 0x14004e1b4
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov rcx, qword [rbx]
mov edx, 1
call qword [sym.imp.USER32.dll_SwitchToThisWindow]
nop dword [rax + rax]
jmp 0x14004e1ff
cmp word [0x140087240], si
jne 0x14004e1d8
call fcn.14004a3b8
mov qword [rsp + 0x28], rsi
lea r8, [0x140048990]
mov r9, rbx
mov dword [rsp + 0x20], esi
xor edx, edx
mov qword [rbx + 0x38], rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140050ca8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x140083bc0]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rax, r8
mov rbx, rcx
shr rax, 0x10
movzx eax, ax
sub eax, dword [rcx + 0x60]
add eax, dword [rcx + 0x168]
sub eax, dword [rcx + 0x64]
js 0x140050e0c
mov rcx, qword [rcx + 0xc8]
cdq
idiv dword [rbx + 0x64]
jmp 0x140050cf5
dec eax
mov rcx, qword [rcx]
test eax, eax
jg 0x140050cf3
mov rdx, qword [rcx + 0x10]
test rdx, rdx
je 0x140050e0c
cmp qword [rdx + 0x20], 0xffffffffffffffff
je 0x140050e0c
mov rcx, qword [rbx + 0xa8]
movzx r9d, r8w
add r9d, dword [rbx + 0x174]
xor r8d, r8d
mov rcx, qword [rcx]
mov rax, qword [rcx]
jmp 0x140050d41
mov r10, qword [rax + 0x10]
add r8d, dword [r10 + 0xc]
cmp r9d, r8d
jl 0x140050d4b
mov rax, qword [rax]
cmp rax, rcx
jne 0x140050d31
jmp 0x140050e0c
test r10, r10
je 0x140050e0c
mov rax, qword [r10]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov rcx, r10
mov rax, qword [rax + 0x10]
call rax
nop dword [rax]
cmp qword [rsp + 0x20], 0
je 0x140050e0c
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_OpenClipboard]
nop dword [rax + rax]
call qword [sym.imp.USER32.dll_EmptyClipboard]
nop dword [rax + rax]
mov rdx, qword [rsp + 0x20]
mov ecx, 2
inc rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop dword [rax + rax]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
nop dword [rax + rax]
mov r8, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
mov byte [rbx + rdx], 0
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop dword [rax + rax]
mov rdx, rdi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
nop dword [rax + rax]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140061140
mov rbx, qword [rsp + 0x458]
add rsp, 0x440
pop rdi
ret
Function at 0x14005d72c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
test rax, rax
je 0x14005d7b5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14005d7b5
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14005d7a2
cmp rbx, rcx
jae 0x14005d7b5
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14005d78d
cmp rbx, rcx
jae 0x14005d7b5
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x14005d7b7
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140060eb8
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140061a84
add rsp, 0x28
jmp 0x140060eb8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x1400872e0], rbx
je 0x140060f02
cmp rax, rbx
jne 0x140060f1a
mov edi, 1
mov eax, dword [0x1400872e8]
cmp eax, 1
jne 0x140060f27
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140060f9e
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140060eeb
mov eax, dword [0x1400872e8]
test eax, eax
jne 0x140060f94
mov dword [0x1400872e8], 1
lea r14, [0x140067d90]
lea rbx, [0x140067d78]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x140060f86
test eax, eax
jne 0x140060f8a
cmp qword [rbx], 0
je 0x140060f7b
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [0x140067cc0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x140060f52
test eax, eax
je 0x140060f9e
mov eax, 0xff
jmp 0x1400610fb
mov dword [0x140084518], 1
mov eax, dword [0x1400872e8]
cmp eax, 1
jne 0x140060fc6
lea rdx, [0x140067d70]
lea rcx, [0x140067cd8]
call fcn.1400062bc
mov dword [0x1400872e8], 2
test edi, edi
jne 0x140060fd3
xor eax, eax
xchg qword [0x1400872e0], rax
cmp qword [0x140087300], 0
je 0x140061011
lea rcx, [0x140087300]
call fcn.1400619f0
test eax, eax
je 0x140061011
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140087300]
mov r9, qword [0x140067cc0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x14006109d
test cl, cl
je 0x140061034
test edi, edi
jne 0x14006109d
dec cl
cmp cl, 0x1f
ja 0x140061047
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x140061034
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14002bb60
mov dword [0x140084514], eax
cmp dword [0x140084538], 0
jne 0x140061086
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140084518], 0
jne 0x14006109b
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140084514]
jmp 0x1400610fb
cmp cl, 0x22
jne 0x1400610af
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x1400610c1
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140061024
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x1400618d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140061920
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140061918
cmp dword [rcx + 0x3c], edx
jl 0x140061918
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140061918
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140061920
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140061a50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140061a78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140061a78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret