joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005cc0
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, r8d
mov r9, rcx
test edx, edx
je 0x140005db5
lea rdx, [rsp + 0x50]
call fcn.140005bc0
test eax, eax
je 0x140005e45
lea rbx, [0x14000d610]
mov edi, 0x104
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140005d3c
mov al, byte [r8 + rcx]
test al, al
je 0x140005d3c
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140005d1d
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
test byte [0x14000de64], 0x20
je 0x140005da2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx ecx, word [rsp + 0x20]
test ecx, ecx
je 0x140005d91
sub ecx, 1
je 0x140005d88
sub ecx, 1
je 0x140005d7f
cmp ecx, 1
jne 0x140005da2
lea r8, [0x140009988]
jmp 0x140005d98
lea r8, str.alpha
jmp 0x140005d98
lea r8, str.mips
jmp 0x140005d98
lea r8, str.i386
mov edx, edi
mov rcx, rbx
call fcn.140007218
lea r8, [0x1400096f0]
mov edx, edi
mov rcx, rbx
call fcn.140007218
jmp 0x140005df4
lea rbx, [0x14000d610]
mov edi, 0x104
mov rcx, rbx
sub r9, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x140005de6
mov al, byte [r9 + rcx]
test al, al
je 0x140005de6
mov byte [rcx], al
inc rcx
sub rdi, 1
jne 0x140005dc7
test rdi, rdi
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov rcx, rbx
call fcn.1400062f8
test eax, eax
jne 0x140005e19
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x140005e49
mov dword [0x14000cd00], 1
test esi, esi
je 0x140005e65
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.140006418
test eax, eax
jne 0x140005e65
cmp dword [0x14000cd00], eax
je 0x140005e45
and dword [0x14000cd00], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
jmp 0x140005e71
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000d544], ecx
jmp 0x140005e45
and dword [0x14000d544], 0
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140007a60
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400062f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x140006313
add ebx, 0x14
mov ecx, 0x40
mov edx, ebx
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x140006385
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4b5
xor ecx, ecx
call fcn.140004960
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
xor eax, eax
mov dword [0x14000d544], ecx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call section..text
lea r8, str.TMP4351_.TMP
mov edx, ebx
mov rcx, rsi
call fcn.140007218
and qword [rsp + 0x30], 0
mov ebp, 1
mov dword [rsp + 0x28], 0x4000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebp
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp rbx, 0xffffffffffffffff
je 0x140006354
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140006354
test al, 0x10
je 0x140006354
and dword [0x14000d544], 0
mov eax, ebp
jmp 0x140006370
Function at 0x140006e1c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov rbp, rcx
xor r9d, r9d
mov edi, 1
jmp 0x140006ea3
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140006ee1
lea r8, [rax + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140006e72
mov edx, dword [rbx + 4]
lea r9, [rax + 1]
mov ecx, dword [rbx]
add r9, r8
mov rax, rbp
call qword [0x140009638]
mov rcx, rbx
test eax, eax
je 0x140006ed7
call qword [sym.imp.KERNEL32.dll_FreeResource]
add esi, edi
mov r9d, esi
lea r8, str.UPDFILE_lu
mov edx, reloc.Cabinet.dll_FDICreate
lea rcx, [rsp + 0x30]
call fcn.140001134
mov r8d, 0xa
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
jne 0x140006e4e
jmp 0x140006eed
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x140006eed
mov dword [0x14000d544], 0x80070714
xor edi, edi
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007a60
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140007098
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edx, 0x104
lea r9, [0x14000d610]
lea rax, [rsp + 0x20]
mov r8d, edx
sub r9, rax
lea rcx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x1400070ec
mov al, byte [r9 + rcx]
test al, al
je 0x1400070ec
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1400070cd
test r8, r8
lea rax, [rcx - 1]
lea r8, str.advpack.dll
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov byte [rax], 0
call fcn.140007218
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140007132
test al, 0x10
jne 0x140007132
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x14000713f
lea rcx, str.advpack.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140007a60
add rsp, 0x148
ret
Function at 0x140007158
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, 0x30
mov rbx, qword [0x14000de70]
mov rbp, r8
mov rcx, rbx
mov r8d, 5
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x1400071db
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x1400071db
mov rax, qword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
test rax, rax
jne 0x1400071be
and qword [rsp + 0x20], rax
jmp 0x1400071c3
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp rbx, 0xffffffffffffffff
jne 0x1400071ff
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4fb
xor ecx, ecx
call fcn.140004960
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140007510
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp], rax
mov esi, dword [0x14000c20c]
mov dword [rsp + 0x30], InitCommonControls
cmp esi, 0xfffffffe
jne 0x1400076a0
xor edi, edi
mov dword [rsp + 0x50], 0x94
lea rcx, [rsp + 0x50]
mov dword [0x14000c20c], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14000769a
lea esi, [rdi + 1]
cmp dword [rsp + 0x60], esi
jne 0x14000769a
cmp dword [rsp + 0x54], 4
jne 0x14000769a
cmp dword [rsp + 0x58], 0xa
jae 0x14000769a
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14000769a
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelDesktopResourceLocale
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000769a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, [0x1400096f0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14000761f
mov eax, dword [0x14000c20c]
jmp 0x1400076a2
lea r8, [rbp - 0x10]
movzx ebx, di
mov al, byte [r8]
movzx ecx, bx
sub al, 0x30
cmp al, 9
ja 0x140007640
movsx eax, byte [r8]
add edi, 0xfffffffd
shl edi, 4
add edi, eax
jmp 0x14000766a
mov al, byte [r8]
sub al, 0x20
cmp byte [r8], 0x61
movzx edx, al
movzx eax, byte [r8]
cmovl edx, eax
movsx r9d, dl
sub r9d, 0x37
lea eax, [r9 - 0xa]
cmp eax, 5
ja 0x14000767a
shl edi, 4
add edi, r9d
mov rcx, r8
mov ebx, edi
call qword [sym.imp.USER32.dll_CharNextA]
mov r8, rax
jmp 0x140007626
lea rax, [rbp - 0x10]
cmp r8, rax
je 0x14000769a
and ecx, 0x3ff
cmp ecx, esi
je 0x140007692
cmp ecx, 0xd
jne 0x14000769a
mov dword [0x14000c20c], esi
jmp 0x1400076a0
mov esi, dword [0x14000c20c]
mov eax, esi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140007a60
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140007804
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140007f10
add rsp, 0x28
jmp 0x140007804
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 [0x14000cb78], rbx
je 0x14000784e
cmp rax, rbx
jne 0x140007863
mov edi, 1
mov eax, dword [0x14000cb80]
cmp eax, 1
jne 0x140007870
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x1400078dd
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007837
mov eax, dword [0x14000cb80]
test eax, eax
jne 0x1400078d3
mov dword [0x14000cb80], 1
lea r14, [0x140009670]
lea rbx, [0x140009658]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x1400078c5
test eax, eax
jne 0x1400078c9
cmp qword [rbx], 0
je 0x1400078ba
mov rax, qword [rbx]
mov rcx, qword [0x140009638]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14000789b
test eax, eax
je 0x1400078dd
mov eax, 0xff
jmp 0x140007a32
mov dword [0x14000c224], 1
mov eax, dword [0x14000cb80]
cmp eax, 1
jne 0x140007905
lea rdx, [0x140009650]
lea rcx, [0x140009640]
call sub.msvcrt.dll__initterm
mov dword [0x14000cb80], 2
test edi, edi
jne 0x140007912
xor eax, eax
xchg qword [0x14000cb78], rax
cmp qword [0x14000cb88], 0
je 0x140007946
lea rcx, [0x14000cb88]
call fcn.140007e90
test eax, eax
je 0x140007946
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000cb88]
mov r9, qword [0x140009638]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
mov cl, byte [rbx]
cmp cl, 0x20
ja 0x1400079d1
test cl, cl
je 0x140007968
test edi, edi
jne 0x1400079d1
dec cl
cmp cl, 0x1f
ja 0x14000797b
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x140007968
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.14000297c
mov dword [0x14000c220], eax
cmp dword [0x14000c240], 0
jne 0x1400079ba
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000c224], 0
jne 0x1400079cf
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000c220]
jmp 0x140007a32
cmp cl, 0x22
jne 0x1400079e3
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x1400079f8
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140007959
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x140007d90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140007ddc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007dd4
cmp dword [rcx + 0x3c], edx
jl 0x140007dd4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140007dd4
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 0x140007ddc
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140008070
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x140030470]
xor rax, rsp
mov qword [rsp + 0x450], rax
and qword [rsp + 0x30], 0
xor r9d, r9d
mov ebx, dword [0x1400315e8]
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140008125
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jle 0x140008116
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x140008116
cmp edx, 1
ja 0x14000810a
mov ebx, dword [0x1400315e8]
jmp 0x140008116
lea rcx, [rsp + 0x50]
call fcn.140007f84
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140023ec0
mov rbx, qword [rsp + 0x478]
add rsp, 0x460
pop rdi
ret
Function at 0x1400115c4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rdi, rcx
mov rdx, rcx
xor esi, esi
lea rcx, str._.SETUP
mov ebx, esi
call fcn.1400110dc
test eax, eax
jne 0x140011792
mov rcx, qword [0x140032598]
xor edx, edx
mov dword [0x140032370], 1
call qword [sym.imp.USER32.dll_GetSystemMenu]
nop dword [rax + rax]
mov rcx, qword [0x140031670]
lea rdx, str.SlipUpAcc
mov qword [0x140031600], rax
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
nop dword [rax + rax]
mov rcx, qword [0x140032598]
lea edx, [rsi - 0x10]
mov r8d, 0xfd0000
mov qword [0x1400315f0], rax
call qword [sym.imp.USER32.dll_SetWindowLongW]
nop dword [rax + rax]
lea rcx, [rdi + 0xe]
cmp word [rcx], 0x20
je 0x14001166c
cmp word [rcx], 9
jne 0x140011672
add rcx, 2
jmp 0x140011660
cmp word [rcx], si
je 0x1400117e7
lea rdx, [rbp + 0x18]
mov qword [rbp + 0x18], rsi
call fcn.140011150
mov rcx, qword [rbp + 0x18]
mov edi, 3
mov qword [rsp + 0x30], rsi
mov r8d, edi
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [0x140031500], rax
cmp rax, 0xffffffffffffffff
jne 0x1400117aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9, qword [rbp + 0x18]
mov rdx, qword [0x140030630]
mov rcx, qword [0x140032598]
cmp eax, 2
je 0x140011721
mov dword [rsp + 0x20], 0x31
cmp eax, 5
je 0x140011718
cmp eax, 0x7b
je 0x14001170f
mov r8, qword [0x140030670]
call fcn.14000bd64
mov ebx, eax
jmp 0x140011773
mov r8, qword [0x140030610]
jmp 0x140011706
mov r8, qword [0x140030598]
jmp 0x140011706
mov r8, qword [0x140030668]
mov dword [rsp + 0x20], 0x33
call fcn.14000bd64
mov ebx, eax
cmp eax, 6
jne 0x140011773
mov rcx, qword [rbp + 0x18]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov r8d, edi
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0xc0000000
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [0x140031500], rax
cmp qword [0x140031500], 0xffffffffffffffff
jne 0x1400117aa
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140011792
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret
mov edx, dword [0x140032100]
lea rcx, [rbp + 0x18]
xor r8d, r8d
call fcn.14000f1ac
test al, al
jne 0x1400117c9
mov rcx, qword [rbp + 0x18]
call fcn.14000fddc
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x1400117de
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
cmp ebx, 2
jne 0x1400117e7
mov eax, ebx
jmp 0x140011794
mov eax, 6
jmp 0x140011794
Function at 0x1400117f4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov ebp, edx
mov rbx, rcx
mov rdx, rcx
mov edi, 1
lea rcx, [0x140028138]
call fcn.1400110dc
xor r14d, r14d
test eax, eax
jne 0x140011849
add rbx, 6
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140011839
cmp ax, 9
jne 0x14001183f
add rbx, 2
jmp 0x14001182a
mov edi, r14d
mov esi, 2
jmp 0x14001187b
mov rdx, rbx
lea rcx, [0x140028140]
call fcn.1400110dc
test eax, eax
jne 0x1400118ec
add rbx, 4
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140011873
cmp ax, 9
jne 0x140011879
add rbx, 2
jmp 0x140011864
mov esi, edi
test ax, ax
je 0x1400118ec
mov rcx, qword [0x140032598]
mov edx, ebp
call qword [sym.imp.USER32.dll_ShowWindow]
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x70], r14
mov rcx, rbx
call fcn.140011150
add rax, 2
test edi, edi
jne 0x14001194d
movzx ecx, word [rax]
test cx, cx
je 0x1400118d6
cmp cx, 0x20
je 0x1400118c7
cmp cx, 9
jne 0x1400118d0
add rax, 2
movzx ecx, word [rax]
jmp 0x1400118bb
cmp cx, 0x22
je 0x140011902
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400118ec
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
lea rdx, [rax + 2]
mov eax, r14d
lea r9, [0x140031810]
jmp 0x140011931
cmp cx, 0x22
je 0x140011939
lea r8d, [rax + 1]
cmp r8d, 0x100
jae 0x140011939
mov word [r9 + rax*2], cx
add rdx, 2
mov eax, r8d
movzx ecx, word [rdx]
test cx, cx
jne 0x140011912
add rax, rax
cmp rax, 0x200
jae 0x140011a34
mov word [rax + r9], r14w
mov rcx, qword [rsp + 0x70]
mov r8d, 3
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [0x140031500], rax
cmp rax, 0xffffffffffffffff
jne 0x140011a0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x1400119c3
cmp eax, 5
je 0x1400119ba
cmp eax, 0x41
je 0x1400119ba
mov r8, qword [0x140030610]
cmp eax, 0x7b
cmovne r8, qword [0x140030670]
jmp 0x1400119ca
mov r8, qword [0x140030598]
jmp 0x1400119ca
mov r8, qword [0x140030668]
mov r9, qword [rsp + 0x70]
mov rdx, qword [0x140030630]
mov rcx, qword [0x140032598]
mov dword [rsp + 0x20], 0x30
call fcn.14000bd64
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140011a00
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, 1
jmp 0x1400118ee
mov edx, dword [0x140032100]
lea rcx, [rsp + 0x70]
xor r8d, r8d
call fcn.14000f1ac
test al, al
jne 0x140011a2b
mov rcx, qword [rsp + 0x70]
call fcn.14000fddc
mov ecx, esi
call fcn.14001e98c
jmp 0x1400119ea
call fcn.140024028
int3
Function at 0x140023ee8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140031200], eax
call fcn.140024610
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140031200], 0
jne 0x140023f2b
mov ecx, 1
call fcn.140024610
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
Function at 0x1405915cf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rsi, qword [r8]
mov edx, 0x40253308
mov qword [rsp + rdx - 0x40253308], 0x7239122e
shl rdx, 0x42
mov rdx, qword [r8 + 8]
shl dword [rsp], 0x1b
add r8, 0xc
xor eax, eax
test rdx, rdx
lea rsp, [rsp + 8]
je 0x14059ac09
push rbx
mov ebx, 0x480d9e8e
shr ebx, 0x33
push r9
movzx r9d, bl
jne 0x1405a2bc0
jmp 0x1405a0eed
mov eax, 0x31a67439
mov rax, qword [r8 + rax*2 - 0x634ce872]
mov edi, 0xe5143a86
mov di, word [rax]
call fcn.140597e21
xadd rbx, r9
lea rbx, [0x1405905a0]

Function at 0x140597c8f
Capabilities:
Encode data using xor

Disassembly:
mov r8d, 0x490c3224
push rdi
lea rdi, [r8 + 0x9217b24]
xchg rdi, r8
lea rdi, [0x14059cbd8]
movzx r8d, byte [rcx]
xor r8d, ebx
push 0x74909c34
and r8d, 0xff
mov r8d, dword [rdi + r8*4]
shr ebx, 8
xor ebx, r8d
neg word [rsp + 3]
inc rcx
xor ebx, 0x96237935
dec rsi
lea rsp, [rsp + 8]
jne 0x140593b68
mov edi, 0x3d34e809
push rdi
mov rdi, qword [rsp + rdi*2 - 0x7a69d00a]
lea rsp, [rsp + 0x10]
not ebx
mov dword [rdi], ebx
push 0xffffffffe89f202e
lea rsp, [rsp + 8]
jmp fcn.14058d9f4
mov rsi, qword [rdi + 8]
adc rdi, 0xc
xor ebx, ebx
test rsi, rsi
lea rsp, [rsp + 8]
je 0x140593bb4
jmp 0x140593b50
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400184c0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400184d0]
mov dword [rax], 1
mov rax, qword [0x1400184e0]
mov dword [rax], 1
mov rax, qword [0x140018440]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400184b0]
mov dword [0x14001c00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140018590]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140018570]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400183b0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a