joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d6d60
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400d6d7d
dec ecx
jmp 0x1400d6d87
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h71d97aa0af732720
mov ecx, eax
mov edx, 1
call fcn.1400f8e0c
mov rax, qword [rdi + 8]
test rax, rax
je 0x1400d6da9
lock dec qword [rax]
jne 0x1400d6da9
lea rcx, [rdi + 8]
call sym.alloc::sync::Arc_T_A_::drop_slow::h75e8f4c34e28a694
mov rcx, qword [0x1402970b8]
xor edx, edx
mov r8, rdi
call fcn.1400f8e9c
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400d6dc5
dec ecx
jmp 0x1400d6dcf
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h71d97aa0af732720
mov ecx, eax
xor edx, edx
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp fcn.1400f8e0c

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1400fb0b8]
test ecx, ecx
je 0x1400d712d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400d7146
add rax, 8
jmp 0x1400d71c1
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h02c30b5303a096e0
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h71d97aa0af732720
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400d7124
je 0x1400d71bf
movzx eax, byte [0x140297030]
mov edx, 0x10
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::hd6977e2a73b8a78a
test rax, rax
je 0x1400d71ea
mov rbx, rax
mov rsi, rax
lea rax, sym.std::sys::thread_local::os_local::destroy_value::h02c30b5303a096e0
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400fb0b8]
test ecx, ecx
je 0x1400d71ca
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1400fb0b8]
test ecx, ecx
je 0x1400d71da
dec ecx
add rbx, 8
mov rdx, rsi
call fcn.1400f8e0c
test rdi, rdi
je 0x1400d71ba
mov rcx, qword [0x1402970b8]
xor edx, edx
mov r8, rdi
call fcn.1400f8e9c
mov rax, rbx
jmp 0x1400d71c1
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h02c30b5303a096e0
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h71d97aa0af732720
mov ecx, eax
jmp 0x1400d7184
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h02c30b5303a096e0
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h71d97aa0af732720
mov ecx, eax
jmp 0x1400d7198
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h51d221331ea27b21
int3
Function at 0x1400d7650
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1400fb098]
test ecx, ecx
je 0x1400d767d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400d7696
add rax, 8
jmp 0x1400d7719
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h02c30b5303a096e0
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h71d97aa0af732720
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400d7674
je 0x1400d7717
movzx eax, byte [0x140297030]
mov edx, 0x18
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::hd6977e2a73b8a78a
test rax, rax
je 0x1400d7742
mov rbx, rax
mov rsi, rax
lea rax, sym.std::sys::thread_local::os_local::destroy_value::h02c30b5303a096e0
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov byte [rsi + 0x10], 0
mov ecx, dword [0x1400fb098]
test ecx, ecx
je 0x1400d7722
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1400fb098]
test ecx, ecx
je 0x1400d7732
dec ecx
add rbx, 8
mov rdx, rsi
call fcn.1400f8e0c
test rdi, rdi
je 0x1400d7712
mov rcx, qword [0x1402970b8]
xor edx, edx
mov r8, rdi
call fcn.1400f8e9c
mov rax, rbx
jmp 0x1400d7719
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h02c30b5303a096e0
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h71d97aa0af732720
mov ecx, eax
jmp 0x1400d76dc
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h02c30b5303a096e0
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h71d97aa0af732720
mov ecx, eax
jmp 0x1400d76f0
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::h51d221331ea27b21
int3

Function at 0x1400da3a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
sub byte [rax - 0x73], cl
insb byte [rdi], dx
and al, 0x20
Function at 0x1400f99d0
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, str.Mingw_w64_runtime_failure:_n
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 0x1400f9a40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140297144]
mov rbx, rcx
test esi, esi
jle 0x1400f9b70
mov rax, qword [0x140297148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400f9a8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400f9b15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400f9a70
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400f9b92
mov rax, qword [0x140297148]
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 [0x140297148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400f9b77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400f9b0e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400f9b20
add dword [0x140297144], 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 [0x140297148]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400f9b0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400f9a98
mov rax, qword [0x140297148]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400fa130
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1402971a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140297180]
test rbx, rbx
je 0x1400fa18c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400fa183
test eax, eax
jne 0x1400fa183
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400fa168
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400fa3a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400fa3b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400fa3c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400fa3d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400fa41d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400fa414
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400fa41f
add rax, 0x28
cmp rax, r9
jne 0x1400fa400
xor eax, eax
ret

Function at 0x1400fa420
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400fa4b0
mov rdx, qword [0x140285720]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400fa49e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400fa49e
cmp word [rax + 0x18], 0x20b
jne 0x1400fa49e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400fa4b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400fa489
add rbx, 0x28
cmp rbx, rdi
je 0x1400fa4b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400fa480
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400fa4c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140285720]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400fa4e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400fa4e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400fa4e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400fa53d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400fa534
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400fa4e0
add rax, 0x28
cmp rax, r9
jne 0x1400fa520
xor eax, eax
ret

Function at 0x1400fa540
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140285720]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400fa55f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400fa568
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400fa55f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400fa580
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140285720]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400fa5a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400fa5a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400fa5a0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400fa5f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400fa5e7
test rcx, rcx
je 0x1400fa5a0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400fa5d8
xor eax, eax
ret

Function at 0x1400fa600
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140285720]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400fa61f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400fa628
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400fa640
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140285720]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400fa660
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400fa668
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400fa660
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400fa660
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400fa6b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400fa6c0
add rdx, 0x28
cmp r9, rdx
jne 0x1400fa6a0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400fa6d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140285720]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400fa6f2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400fa700
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400fa6f2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400fa6f2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400fa6f2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400fa755
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400fa768
add rdx, 0x28
cmp r10, rdx
jne 0x1400fa740
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400fa777
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400fa787
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400fa75e
test ecx, ecx
jg 0x1400fa770
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400017d8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
test rcx, rcx
mov edx, 0x80070057
cmove eax, edx
lea rbx, str.Install
test rbx, rbx
cmove eax, edx
test eax, eax
js 0x1400018b1
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov rdx, rcx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x14000186d
test eax, eax
jne 0x140001878
and dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x140001874
mov ebx, 1
jmp 0x14000189f
test eax, eax
je 0x140001888
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000189f
cmp dword [rsp + 0x40], 4
mov ebx, 1
jne 0x14000189f
xor eax, eax
cmp dword [rsp + 0x50], ebx
setne al
mov ebx, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400018af
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400018c0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov ebx, esi
test rcx, rcx
je 0x140001960
mov word [rcx], si
mov rdx, rcx
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000190d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140001955
cmp eax, 0x104
jb 0x14000191b
mov ebx, 0x8007000e
jmp 0x140001959
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x14000192f
mov ebx, 0x80004005
jmp 0x140001959
lea rdx, str.VSTOLoader.dll
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140001928
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000195c
mov ebx, 0x8000ffff
test ebx, ebx
jns 0x14000195c
mov word [rdi], si
mov eax, ebx
jmp 0x140001965
mov eax, 0x80004003
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001f1c
Capabilities:
Check if file exists
Load windows common language runtime

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
lea rax, [r11 + 0x10]
xor ebp, ebp
xor esi, esi
xor ebx, ebx
mov r12, rcx
test rax, rax
je 0x140001fd5
and qword [r11 + 0x10], rbx
lea rcx, str.mscoree.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x140001f82
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140001f7b
cmp eax, 0x7e
je 0x140001f7b
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140001fc1
mov edi, 0x80040641
jmp 0x140001fc1
lea rdx, str.CLRCreateInstance
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001f9c
lea edi, [rax + 1]
jmp 0x140001fc1
lea r8, [rsp + 0x48]
lea rdx, [0x140012fe0]
lea rcx, [0x140012808]
call rax
mov edi, eax
test eax, eax
js 0x140001fc1
mov rbx, qword [rsp + 0x48]
and qword [rsp + 0x48], rsi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001fd1
mov rax, qword [rcx]
call qword [rax + 0x10]
test edi, edi
je 0x140002032
lea rcx, str.mscoree.dll
xor edi, edi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
test rax, rax
jne 0x140002013
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000200c
cmp eax, 0x7e
je 0x14000200c
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14000207a
mov edi, 0x80040641
jmp 0x14000207a
lea rdx, str.CorBindToRuntimeEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x140002032
mov edi, 0x8000ffff
jmp 0x14000206c
mov qword [r12 + 0x10], rsi
mov rsi, rbx
mov qword [r12], rbp
xor ebp, ebp
xor ebx, ebx
cmp qword [r12 + 8], rsi
je 0x140002088
test rsi, rsi
je 0x140002057
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [r12 + 8]
test rcx, rcx
je 0x140002067
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [r12 + 8], rsi
test rbp, rbp
je 0x14000207a
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x140002088
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x1400023fc
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov ebx, esi
test rcx, rcx
je 0x1400024a9
mov word [rcx], si
mov rdx, rcx
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140002449
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000249e
cmp eax, 0x104
jb 0x140002457
mov ebx, 0x8007000e
jmp 0x1400024a2
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x14000246b
mov ebx, 0x80004005
jmp 0x1400024a2
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140002464
lea rdx, str.vstoee.dll
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140002464
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400024a5
mov ebx, 0x8000ffff
test ebx, ebx
jns 0x1400024a5
mov word [rdi], si
mov eax, ebx
jmp 0x1400024ae
mov eax, 0x80004003
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400029ac
Capabilities:
Accept command line arguments

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 r12
push r13
push r14
sub rsp, 0x20
xor r13d, r13d
cmp ecx, 1
mov r12, rdx
mov edx, 0x80070057
mov eax, r13d
mov rsi, r8
cmovl eax, edx
test r12, r12
cmove eax, edx
test r8, r8
jne 0x1400029f5
mov eax, 0x80004003
jmp 0x140002abb
mov qword [r8], r13
test eax, eax
js 0x140002abb
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
or r8, 0xffffffffffffffff
mov rbx, rax
xor eax, eax
mov rcx, r8
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdx, rcx
cmp rcx, 1
jb 0x140002a83
mov rdi, qword [r12]
mov ebp, r13d
lea r14d, [rax + 0x22]
cmp r14w, word [rbx]
mov rcx, r8
sete bpl
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ebp, ebp
je 0x140002a56
lea rax, [rcx + 2]
cmp rdx, rax
jb 0x140002a83
cmp rdx, rcx
jb 0x140002a83
mov rax, r13
mov r8, rcx
mov rcx, qword [r12]
test ebp, ebp
setne al
lea rdx, [rbx + rax*2]
call fcn.140004174
test eax, eax
jne 0x140002a83
test ebp, ebp
je 0x140002a8d
cmp r14w, word [rbx + rdi*2 + 2]
je 0x140002a8d
mov eax, 0x8000ffff
mov qword [rsi], r13
jmp 0x140002abb
neg ebp
mov edx, 0x20
sbb rax, rax
and eax, 2
add rax, rdi
lea rcx, [rbx + rax*2]
jmp 0x140002aad
cmp r13w, ax
je 0x140002ab5
add rcx, 2
movzx eax, word [rcx]
cmp dx, ax
je 0x140002aa3
mov qword [rsi], rcx
mov eax, r13d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x140002ae0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x140015070]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor esi, esi
cmp ecx, 1
mov eax, 0x80070057
mov ebx, esi
mov rdi, r8
cmovl ebx, eax
test rdx, rdx
cmove ebx, eax
test r8, r8
jne 0x140002b2f
mov ebx, 0x80004003
jmp 0x140002c5a
or dword [r8], 0xffffffff
test ebx, ebx
js 0x140002c5a
lea r8, [rsp + 0x28]
mov qword [rsp + 0x28], rsi
mov qword [rbp - 0x58], rsi
call fcn.1400029ac
mov ebx, eax
test eax, eax
js 0x140002c44
lea rax, [rbp - 0x50]
test rax, rax
je 0x140002c3f
lea rcx, [rbp - 0x50]
mov word [rbp - 0x50], si
mov qword [rsp + 0x30], rsi
call fcn.140003b3c
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test rcx, rcx
je 0x140002b89
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jns 0x140002b96
mov word [rbp - 0x50], si
jmp 0x140002c44
mov ebx, 0x70
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, ebx
call fcn.140006d90
lea rax, [rsp + 0x40]
test rax, rax
je 0x140002c05
or dword [rsp + 0x44], 0x2000140
lea rax, [rbp - 0x50]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x70], 5
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140002c1f
mov rcx, qword [rbp - 0x58]
or ebx, 0xffffffff
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x140002c0c
cmp eax, ebx
je 0x140002c1f
mov ebx, 0x8000ffff
jmp 0x140002c44
mov rcx, qword [rbp - 0x58]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140002c35
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140002c44
mov eax, dword [rsp + 0x20]
mov ebx, esi
mov dword [rdi], eax
jmp 0x140002c44
mov ebx, 0x80004003
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140002c53
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jns 0x140002c5a
or dword [rdi], 0xffffffff
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140003ee0
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2d0
pop rdi
pop rsi
pop rbp
ret