joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400071a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov esi, r8d
mov r14, rdx
mov rdi, rcx
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140007333
xor eax, eax
mov dword [rbp + 0x67], eax
mov qword [rbp - 0x49], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
mov qword [rbp + 0x7f], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x59], rax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 0x28]
mov qword [rbp - 0x51], rcx
cmp rbx, 0xffffffffffffffff
je 0x14000734d
nop word [rax + rax]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x67]
mov r8d, esi
mov rdx, r14
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000728d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400072ae
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140007274
cmp eax, 1
je 0x1400072ff
jmp 0x140007220
mov r9d, 1
lea r8, [rbp + 0x67]
lea rdx, [rbp - 0x49]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp eax, 0xe8
je 0x140007319
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
je 0x140007319
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Connection_Closed
lea rcx, [rbp + 0xf]
call fcn.14000f22c
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x29]
call fcn.1400069b0
lea rdx, [0x14003ab18]
lea rcx, [rbp - 0x29]
call fcn.140013b2c
nop
lea rcx, [rbp - 0x29]
call fcn.140006a20
lea rdx, [0x14003aae0]
lea rcx, [rbp - 0x29]
call fcn.140013b2c
int3
lea rcx, [rbp - 0x29]
call fcn.140006a20
lea rdx, [0x14003aae0]
lea rcx, [rbp - 0x29]
call fcn.140013b2c
nop
lea rcx, [rbp + 0xf]
call fcn.140006a20
lea rdx, [0x14003aae0]
lea rcx, [rbp + 0xf]
call fcn.140013b2c
nop
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, str.Failed_to_create_connection
lea rcx, [rbp + 0xf]
call fcn.14000f22c
nop
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x29]
call fcn.1400069b0
lea rdx, [0x14003ab18]
lea rcx, [rbp - 0x29]
call fcn.140013b2c
int3
Function at 0x140007390
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov dword [rsp + 0x38], 0xfffe00ff
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rdi, rcx
call fcn.1400071a0
mov r8d, 4
mov dword [rsp + 0x38], 0x10000
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1400071a0
mov eax, dword [rbx + 0xc]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov dword [rsp + 0x38], eax
mov rcx, rdi
call fcn.1400071a0
mov eax, dword [rbx + 8]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov dword [rsp + 0x38], eax
mov rcx, rdi
call fcn.1400071a0
mov eax, dword [rbx + 0x10]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov dword [rsp + 0x38], eax
mov rcx, rdi
call fcn.1400071a0
mov r8d, dword [rbx + 0x10]
mov rcx, rdi
mov rdx, qword [rbx + 0x18]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400071a0
Function at 0x140011338
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x60
xor r9d, r9d
mov rbx, rcx
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 8], eax
cmp eax, 0xffffffff
je 0x140011376
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, rbx
add rsp, 0x60
pop rbx
ret
lea rdx, str.unable_to_create_tls_index
lea rcx, [rsp + 0x20]
call fcn.140004de0
lea rdx, [0x14003aa40]
lea rcx, [rsp + 0x20]
call fcn.140013b2c
int3

Function at 0x1400113e8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011422
add dword [rax], 0xffffffff
jne 0x14001141c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140011445
add rsp, 0x60
pop rbx
ret
lea rdx, str.likely_unbalanced_enter_exit_monitor_pair__extra_exit_
lea rcx, [rsp + 0x20]
call fcn.140004de0
lea rdx, [0x14003aa40]
lea rcx, [rsp + 0x20]
call fcn.140013b2c
int3
lea rdx, str.unable_to_set_tls_value
lea rcx, [rsp + 0x20]
call fcn.140004de0
lea rdx, [0x14003aa40]
lea rcx, [rsp + 0x20]
call fcn.140013b2c
int3

Function at 0x140011468
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140011485
cmp dword [rax], 0
jne 0x14001148f
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.14001154c
inc dword [rax]
add rsp, 0x20
pop rbx
ret

Function at 0x1400114a0
Capabilities:
Get thread local storage value

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x1400114ac
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400114f3
cmp dword [rax], 0
jbe 0x1400114f3
mov rcx, rbx
call fcn.1400113e8
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400114e3
cmp dword [rax], 0
jne 0x1400114ed
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x60
pop rbx
ret
lea rdx, str.must_own_monitor_prior_to_calling_exit__
lea rcx, [rsp + 0x20]
call fcn.140004de0
lea rdx, [0x14003aa40]
lea rcx, [rsp + 0x20]
call fcn.140013b2c
int3
Function at 0x1400114ac
Capabilities:
Get thread local storage value

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x1400114ac
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400114f3
cmp dword [rax], 0
jbe 0x1400114f3
mov rcx, rbx
call fcn.1400113e8
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400114e3
cmp dword [rax], 0
jne 0x1400114ed
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x60
pop rbx
ret
lea rdx, str.must_own_monitor_prior_to_calling_exit__
lea rcx, [rsp + 0x20]
call fcn.140004de0
lea rdx, [0x14003aa40]
lea rcx, [rsp + 0x20]
call fcn.140013b2c
int3

Function at 0x14001154c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140011591
lea edx, [rax + 4]
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14001159f
and dword [rax], 0
mov rdx, rax
mov ecx, dword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400115c2
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
lea rdx, str.unable_to_create_tls_data
lea rcx, [rsp + 0x20]
call fcn.140004de0
lea rdx, [0x14003aa40]
lea rcx, [rsp + 0x20]
call fcn.140013b2c
int3
lea rdx, str.unable_to_set_tls_value
lea rcx, [rsp + 0x20]
call fcn.140004de0
lea rdx, [0x14003aa40]
lea rcx, [rsp + 0x20]
call fcn.140013b2c
int3

Function at 0x140011690
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov ecx, 8
call fcn.140011ee4
xor ecx, ecx
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400116b4
mov qword [rax], rcx
jmp 0x1400116b7
mov rax, rcx
mov qword [rsp + 0x28], rcx
lea r8, [0x140011760]
mov r9, rbx
mov dword [rsp + 0x20], ecx
xor edx, edx
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rbx + 0x20]
mov qword [rcx], rax
add rsp, 0x30
pop rbx
ret
Function at 0x100401080
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rbx
sub rsp, 0x168
lea rbp, [rsp + 0x80]
mov dword [rbp + 0xdc], 0
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0xffffffffffffffff
jne 0x100401106
lea rax, str.CreateToolhelp32Snapshot_failed_with_error:
mov rdx, rax
mov rax, qword [sym.imp.cygstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call sym.std::ostream::operator___unsigned_int_
mov rcx, rax
mov rax, qword [0x10042e1e0]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov eax, 0
jmp 0x1004011df
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32First
test eax, eax
sete al
test al, al
je 0x100401184
lea rax, str.Process32First_failed_with_error:
mov rdx, rax
mov rax, qword [sym.imp.cygstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call sym.std::ostream::operator___unsigned_int_
mov rcx, rax
mov rax, qword [0x10042e1e0]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x1004011df
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, str.explorer.exe
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x1004011aa
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0xdc], eax
jmp 0x1004011c6
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32Next
test eax, eax
setne al
test al, al
jne 0x100401184
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0xdc]
add rsp, 0x168
pop rbx
pop rbp
ret
Function at 0x18064d058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x18064d1df
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 0x18064d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18064d06f
add dl, dl
jne 0x18064d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18064d0f6
xor eax, eax
add dl, dl
jne 0x18064d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18064d1ad
add dl, dl
jne 0x18064d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18064d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18064d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18064d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18064d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18064d07e
mov eax, 1
add dl, dl
jne 0x18064d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18064d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18064d0fb
sub eax, ebx
mov ebx, 1
jne 0x18064d14c
mov ecx, 1
add dl, dl
jne 0x18064d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18064d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18064d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18064d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18064d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18064d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18064d15d
cmp eax, 0x7d00
jae 0x18064d19b
cmp eax, 0x500
jb 0x18064d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18064d07e
cmp eax, 0x7f
ja 0x18064d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18064d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18064d1d2
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 0x18064d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140016590
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140055990], rbx
je 0x1400165dc
cmp rax, rbx
jne 0x1400165cf
mov ebx, 1
mov esi, ebx
jmp 0x1400165e1
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400165b4
mov ebx, 1
mov eax, dword [0x140055998]
cmp eax, ebx
jne 0x1400165f7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14001665c
mov eax, dword [0x140055998]
test eax, eax
jne 0x140016656
mov dword [0x140055998], ebx
lea r15, [0x140018660]
lea rdi, [0x140018648]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140016648
test eax, eax
jne 0x14001664c
cmp qword [rdi], 0
je 0x14001663d
mov rax, qword [rdi]
mov rcx, qword [0x1400185c0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14001661e
test eax, eax
je 0x14001665c
mov eax, 0xff
jmp 0x140016738
mov dword [0x140055344], ebx
mov eax, dword [0x140055998]
cmp eax, ebx
jne 0x140016683
lea rdx, [0x140018640]
lea rcx, [0x1400185c8]
call sub.msvcrt.dll__initterm
mov dword [0x140055998], 2
test esi, esi
jne 0x140016690
xor eax, eax
xchg qword [0x140055990], rax
cmp qword [0x1400559b0], 0
je 0x1400166c4
lea rcx, [0x1400559b0]
call fcn.140016a70
test eax, eax
je 0x1400166c4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400559b0]
mov r9, qword [0x1400185c0]
call r9
mov r8, qword [0x140055358]
mov rdx, qword [0x140055350]
mov ecx, dword [0x140055348]
call fcn.140004aa0
mov dword [0x140055340], eax
cmp dword [0x140055360], 0
jne 0x1400166f4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140055344], 0
jne 0x140016709
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140055340]
jmp 0x140016738
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1401ca000
add rsp, 0x28
jmp 0x140016590

Function at 0x14001695c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400169a8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400169a0
cmp dword [rcx + 0x3c], edx
jl 0x1400169a0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400169a0
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 0x1400169a8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000b950]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000b960]
mov dword [rax], 1
mov rax, qword [0x14000b970]
mov dword [rax], 1
mov rax, qword [0x14000b940]
mov dword [rax], 1
mov rax, qword [0x14000b800]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14000b930]
mov dword [0x14000f020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000b8f0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000b8d0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000b7b0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x14000158a
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push rbp
sub rsp, 0x2e0
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x1d0], 0x65
lea rax, str.cat.exe
mov qword [rbp + 0x1d8], rax
mov dword [rbp + 0x1e0], 0x66
lea rax, str.mv.exe
mov qword [rbp + 0x1e8], rax
mov dword [rbp + 0x1f0], 0x67
lea rax, str.cp.exe
mov qword [rbp + 0x1f8], rax
mov dword [rbp + 0x200], 0x68
lea rax, str.rm.exe
mov qword [rbp + 0x208], rax
mov dword [rbp + 0x210], 0x69
lea rax, str.clear.exe
mov qword [rbp + 0x218], rax
mov dword [rbp + 0x220], 0x6a
lea rax, str.ls.exe
mov qword [rbp + 0x228], rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x25
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
call rax
test eax, eax
je 0x140001688
mov r9d, 0x10
lea r8, str.Error
lea rax, str.Failed_to_get_System32_path
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 1
jmp 0x140001872
mov dword [rbp + 0x25c], 0
jmp 0x140001839
mov eax, dword [rbp + 0x25c]
cdqe
shl rax, 4
lea rax, [rax + 0x260]
add rax, rbp
sub rax, 0x90
mov eax, dword [rax]
movzx eax, ax
mov r8d, 0xa
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_FindResourceA]
call rax
mov qword [rbp + 0x250], rax
cmp qword [rbp + 0x250], 0
jne 0x14000170f
mov r9d, 0x10
lea r8, str.Error
lea rax, str.Failed_to_find_resource
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 1
jmp 0x140001872
mov rax, qword [rbp + 0x250]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_LoadResource]
call rax
mov qword [rbp + 0x248], rax
mov rax, qword [rbp + 0x250]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SizeofResource]
call rax
mov dword [rbp + 0x244], eax
mov rax, qword [rbp + 0x248]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LockResource]
call rax
mov qword [rbp + 0x238], rax
mov eax, dword [rbp + 0x25c]
cdqe
shl rax, 4
lea rax, [rax + 0x260]
add rax, rbp
sub rax, 0x88
mov rdx, qword [rax]
lea rcx, [rbp + 0xc0]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s
mov edx, 0x104
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x50]
lea rdx, [0x14000b06e]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x230], rax
cmp qword [rbp + 0x230], 0
jne 0x1400017fc
mov r9d, 0x10
lea r8, str.Error
lea rax, str.Failed_to_open_destination_file
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 1
jmp 0x140001872
mov edx, dword [rbp + 0x244]
mov rcx, qword [rbp + 0x230]
mov rax, qword [rbp + 0x238]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x230]
mov rcx, rax
call sym.fclose
add dword [rbp + 0x25c], 1
mov eax, dword [rbp + 0x25c]
cmp eax, 5
jbe 0x140001697
mov r9d, 0
lea r8, str.Success
lea rax, str.Install_successfully_completed.
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0
add rsp, 0x2e0
pop rbp
ret
Function at 0x14000187b
Capabilities:
Create process on windows
Get session integrity level

Disassembly:
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x140], ecx
mov qword [rbp + 0x148], rdx
mov rax, qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
call rax
test eax, eax
jne 0x140001957
lea rax, [rbp + 0x10]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
test eax, eax
je 0x140001957
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x60], 0x70
lea rax, str.runas
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x10]
mov qword [rbp - 0x48], rax
lea rax, [0x14000b0c6]
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x30], 1
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
jne 0x14000194d
mov r9d, 0x10
lea r8, str.Error
lea rax, str.Failed_to_elevate_privileges
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 1
jmp 0x14000195c
mov ecx, 0
call sym.exit
mov eax, 0
add rsp, 0x1a8
pop rdi
pop rbp
ret

Function at 0x140001d70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, [0x14000b2e0]
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001de0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f0c4]
mov rbx, rcx
test esi, esi
jle 0x140001f10
mov rax, qword [0x14000f0c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001e2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001eb5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001e10
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001f32
mov rax, qword [0x14000f0c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000f0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001f17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001eae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ec0
add dword [0x14000f0c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000f0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001eae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14000b358]
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001e38
mov rax, qword [0x14000f0c8]
mov edx, dword [rdi + 8]
lea rcx, [0x14000b320]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, [0x14000b300]
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]