joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029464
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400148b0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400294ee
cmp byte [rbp - 0x21], r15b
je 0x1400294e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140029524
call fcn.14001d374
test eax, eax
jne 0x140029510
cmp byte [rbp - 0x21], r15b
je 0x140029508
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140029524
cmp byte [rbp - 0x21], r15b
je 0x140029521
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400173f0
test eax, eax
jne 0x1400295c4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400148b0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140029563
cmp byte [rbp - 0x21], r15b
je 0x140029598
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140029598
call fcn.14001d374
test eax, eax
jne 0x140029584
cmp byte [rbp - 0x21], r15b
je 0x14002957d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140029598
cmp byte [rbp - 0x21], r15b
je 0x140029595
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400173f0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400295c4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400295c7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400295d5
mov rcx, rdi
call fcn.14001a68c
cmp byte [rbp + 0x3f], r15b
je 0x1400295e4
mov rcx, qword [rbp + 0x27]
call fcn.14001a68c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400019a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
lea rax, [rsp + 0x28]
mov r11, r8
mov r13, qword [rax]
mov rdi, r9
mov qword [rax], 0
lea rax, [rsp + 0x28]
mov r8, qword [rax]
mov rbp, rdx
mov r14, rcx
test r11, r11
je 0x140001a02
mov ecx, 0x5a4d
cmp word [r11], cx
jne 0x140001a02
movsxd rcx, dword [r11 + 0x3c]
cmp ecx, 0x400
jg 0x140001a02
add rcx, r11
cmp dword [rcx], 0x4550
je 0x140001a28
mov qword [rax], r8
xor al, al
mov rbx, qword [rsp + 0x30]
lea rcx, [rsp + 0x28]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
mov qword [rcx], r13
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp dword [rcx + 0xb0], 0
je 0x140001a05
mov r15d, dword [rcx + 0xb4]
xor ebx, ebx
mov r12d, dword [rcx + 0xb0]
test r15, r15
je 0x140001acf
nop word [rax + rax]
lea r9, [r11 + rbx]
add r9, r12
mov eax, dword [r9]
test eax, eax
je 0x140001acf
mov ecx, dword [r9 + 4]
test ecx, ecx
je 0x140001acf
lea r10, [rcx - 8]
mov esi, eax
shr r10, 1
lea r8, [r9 + 8]
mov edx, 0
je 0x140001ac3
nop word [rax + rax]
movzx eax, word [r8]
mov ecx, eax
and eax, 0xfff
add rax, rsi
shr rcx, 0xc
test rcx, rcx
je 0x140001ac3
cmp rcx, 3
jne 0x140001a05
cmp rax, rdi
jae 0x140001a05
lea rcx, [r11 + rax]
add r8, 2
mov rax, r14
inc rdx
sub rax, rbp
add qword [rcx], rax
cmp rdx, r10
jb 0x140001a80
mov eax, dword [r9 + 4]
add rbx, rax
cmp rbx, r15
jb 0x140001a50
test rbx, rbx
setne al
jmp 0x140001a07
Function at 0x140001ae0
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 r13
push r14
push r15
lea r15, [0x140006080]
xor r9d, r9d
lea r12, [rsp + 0x20]
mov r10d, 1
mov r14, qword [r12]
mov r11d, 2
mov ebx, 3
mov qword [r12], r9
mov edi, 4
sub r10, r15
sub r11, r15
sub rbx, r15
sub rdi, r15
mov esi, 5
sub rsi, r15
mov rbp, r8
movabs r13, 0x1a7b9611a7b9611b
nop word [rax + rax]
lea r8, [r9 + r15]
mov rax, r13
mul r9
mov rax, r9
mov rcx, r9
sub rax, rdx
add r9, 6
shr rax, 1
add rax, rdx
shr rax, 6
imul rax, rax, 0x74
sub rcx, rax
movzx eax, byte [rcx + rbp]
lea rcx, [r8 + r10]
xor byte [r8], al
mov rax, r13
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 6
imul rax, rax, 0x74
sub rcx, rax
movzx eax, byte [rcx + rbp]
lea rcx, [r8 + r11]
xor byte [r8 + 1], al
mov rax, r13
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 6
imul rax, rax, 0x74
sub rcx, rax
movzx eax, byte [rcx + rbp]
lea rcx, [r8 + rbx]
xor byte [r8 + 2], al
mov rax, r13
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 6
imul rax, rax, 0x74
sub rcx, rax
movzx eax, byte [rcx + rbp]
lea rcx, [r8 + rdi]
xor byte [r8 + 3], al
mov rax, r13
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 6
imul rax, rax, 0x74
sub rcx, rax
movzx eax, byte [rcx + rbp]
lea rcx, [r8 + rsi]
xor byte [r8 + 4], al
mov rax, r13
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 6
imul rax, rax, 0x74
sub rcx, rax
movzx eax, byte [rcx + rbp]
xor byte [r8 + 5], al
cmp r9, 0x259200
jb 0x140001b50
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov qword [r12], r14
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x140001c80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x48]
xor ecx, ecx
mov rbx, qword [rdi]
lea r10, [0x14025f280]
mov qword [rdi], rcx
cmp byte [0x14025f2f4], cl
je 0x140001e41
cmp dword [0x140006050], 2
jl 0x140001e03
movdqa xmm0, xmmword [str.3333333333333333]
lea rdx, [0x14025f284]
movdqa xmm5, xmmword [0x1400042f0]
movdqa xmm4, xmmword [0x140004340]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm6
movdqa xmm6, xmmword [0x140004310]
nop
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
mov eax, ecx
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140004320]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140004320]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x70
jl 0x140001cf0
movaps xmm6, xmmword [rsp + 0x30]
cmp eax, 0x75
jge 0x140001e41
movsxd r9, ecx
add r9, r10
nop dword [rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x33
add dl, cl
inc ecx
xor byte [r9 - 1], dl
cmp ecx, 0x75
jl 0x140001e10
mov r8, r10
call fcn.140001ae0
mov qword [rdi], rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140002cd8
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a830]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a840]
mov dword [rax], 1
mov rax, qword [0x14000a850]
mov dword [rax], 1
mov rax, qword [0x14000a7e0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a820]
mov dword [0x14000d00c], 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 [0x14000a900]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000a8e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a790]
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
Function at 0x1400014ee
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
push rbp
mov eax, 0x1310
call fcn.140002810
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x12a0], ecx
mov qword [rbp + 0x12a8], rdx
call dbg.__main
lea rax, [rbp + 0xe0]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call rax
test eax, eax
jne 0x14000154b
lea rax, str.Failed_to_get_current_directory._n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x14000176f
lea rdx, [rbp + 0xe0]
lea rax, [rbp + 0x1f0]
mov r9, rdx
lea r8, str.__sSimpleprax_Desktop.exe_
mov edx, 0x800
mov rcx, rax
call sym.snprintf
lea rax, [rbp + 0x1f0]
mov rcx, rax
mov rax, qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call rax
test eax, eax
jne 0x1400015f0
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x1c
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
call rax
test eax, eax
js 0x1400015d7
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0x1f0]
mov r9, rdx
lea r8, str.__sPrograms_simplepraxdesktopSimpleprax_Desktop.exe_
mov edx, 0x800
mov rcx, rax
call sym.snprintf
jmp 0x1400015f0
lea rax, str.Failed_to_get_AppData_folder_path._n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x14000176f
lea rdx, [rbp + 0x1f0]
lea rax, [rbp + 0xa80]
mov r9, rdx
lea r8, str._s__gdt
mov edx, 0x800
mov rcx, rax
call sym.snprintf
mov dword [rbp + 0x128c], 1
jmp 0x140001675
lea rax, [rbp + 0xa80]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0xa80]
add rax, rdx
mov word [rax], 0x20
mov eax, dword [rbp + 0x128c]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x12a8]
add rax, rdx
mov rdx, qword [rax]
lea rax, [rbp + 0xa80]
mov rcx, rax
call sym.strcat
add dword [rbp + 0x128c], 1
mov eax, dword [rbp + 0x128c]
cmp eax, dword [rbp + 0x12a0]
jl 0x140001621
lea rax, [rbp + 0xa10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp + 0xa10], 0x68
lea rax, [rbp + 0x9f0]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0xa80]
lea rdx, [rbp + 0x9f0]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0xa10]
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 0x140001744
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.CreateProcess_failed___d_._n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x14000176f
mov rax, qword [rbp + 0x9f0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x9f8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x1310
pop rbp
ret
Function at 0x140001a50
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001ac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d0a4]
mov rbx, rcx
test esi, esi
jle 0x140001bf0
mov rax, qword [0x14000d0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001af0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001c12
mov rax, qword [0x14000d0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001bf7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001b8e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001ba0
add dword [0x14000d0a4], 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 [0x14000d0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001b18
mov rax, qword [0x14000d0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400021a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x1400021fc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400021f3
test eax, eax
jne 0x1400021f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021d8
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 0x140002410
Capabilities:
Parse pe header

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

Function at 0x140002440
Capabilities:
Enumerate pe sections

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

Function at 0x140002490
Capabilities:
Parse pe header

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

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

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

Function at 0x1400025b0
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x14000a7e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002610
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002618
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002610
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002660
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002657
test rcx, rcx
je 0x140002610
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002648
xor eax, eax
ret

Function at 0x140002670
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x14000a7e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002762
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002770
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002762
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002762
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002762
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400027c5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400027d8
add rdx, 0x28
cmp r10, rdx
jne 0x1400027b0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400027e7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400027f7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400027ce
test ecx, ecx
jg 0x1400027e0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14005bff0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov dword [rsp + 0x30], 0x130
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x14005c021
xor eax, eax
jmp 0x14005c0a0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32First
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x170]
call fcn.1400c2c50
test eax, eax
jne 0x14005c057
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x14005c0a0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x14005c093
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x170]
call fcn.1400c2c50
test eax, eax
jne 0x14005c091
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x14005c0a0
jmp 0x14005c057
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x168
ret
Function at 0x14005d230
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov qword [rsp], rax
jmp 0x14005d272
mov rax, qword [rsp]
add rax, 0x28
mov qword [rsp], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
cmp qword [rsp], rax
jae 0x14005d2e0
mov rax, qword [rsp]
mov eax, dword [rax + 0xc]
cmp qword [rsp + 0x20], rax
jb 0x14005d2de
mov rax, qword [rsp]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp]
add eax, dword [rcx + 8]
mov eax, eax
cmp qword [rsp + 0x20], rax
jae 0x14005d2de
mov rax, qword [rsp]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x20]
sub rdx, rcx
mov rcx, rdx
add rax, rcx
jmp 0x14005d2e2
jmp 0x14005d266
xor eax, eax
add rsp, 0x18
ret

Function at 0x14005d720
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x28], rax
xor eax, eax
mov word [rsp + 0x20], ax
jmp 0x14005d76f
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
mov rax, qword [rsp + 0x28]
add rax, 0x28
mov qword [rsp + 0x28], rax
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x14005d7bd
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov rdx, qword [rsp + 0x28]
mov r8d, dword [rdx + 0x10]
mov rdx, rax
call fcn.14005cc80
jmp 0x14005d754
add rsp, 0x38
ret