joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001bb10
Capabilities:
Check http status code
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x270
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax]
call qword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
jne 0x18001bb68
xor eax, eax
jmp 0x18001bd26
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x200
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0x200
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x70]
mov edx, 0x13
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x18001bbbd
xor eax, eax
jmp 0x18001bd26
lea rcx, [rsp + 0x70]
call fcn.180009e5c
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0xc8
je 0x18001bbea
mov rax, qword [rsp + 0x2a0]
mov dword [rax], 0xffffffff
xor eax, eax
jmp 0x18001bd26
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x34]
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax]
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp eax, 1
jne 0x18001bcbd
cmp dword [rsp + 0x34], 0
jbe 0x18001bcbd
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x298]
sub ecx, eax
mov eax, ecx
cmp dword [rsp + 0x34], eax
jbe 0x18001bc36
xor eax, eax
jmp 0x18001bd26
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x298]
sub ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x34]
jae 0x18001bc60
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x298]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x18001bc68
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x290]
add rcx, rax
mov rax, rcx
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x38]
mov rdx, rax
mov rax, qword [rsp + 0x288]
mov rcx, qword [rax]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x18001bca8
xor eax, eax
jmp 0x18001bd26
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x18001bbea
mov rax, qword [rsp + 0x2a0]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
lea rax, str.Validation_Error
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
cmp byte [rax + rcx], 0
jne 0x18001bcea
mov rax, qword [rsp + 0x48]
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x290]
call fcn.180009ea0
test eax, eax
jne 0x18001bd21
xor eax, eax
jmp 0x18001bd26
mov eax, 1
add rsp, 0x270
pop rdi
ret
Function at 0x18001c7f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
add rax, 0x10
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.18001c870
test eax, eax
je 0x18001c837
mov rax, qword [rsp + 0x40]
add rax, 8
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.18001c870
test eax, eax
jne 0x18001c857
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x20]
cmp eax, 0xea60
jbe 0x18001c84a
jmp 0x18001c857
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18001c803
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x28], 0
add rsp, 0x38
ret
Function at 0x18001cd50
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [0x1800eb4a0]
lea r8, [0x180017360]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
add rsp, 0x38
ret
Function at 0x180087a40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
shr rax, 0xd
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
and rax, 0x1000
test rax, rax
jne 0x180087a9f
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
and rax, 1
test rax, rax
jne 0x180087a9f
mov rax, qword [rsp + 0x50]
mov ecx, 0xffffffff
cmp qword [rax + 0x18], rcx
ja 0x180087a9f
mov dword [rsp + 0x28], 1
jmp 0x180087aa7
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x20], eax
xor eax, eax
test eax, eax
jne 0x180087aaf
cmp dword [rsp + 0x24], 0x18
jge 0x180087b16
mov eax, dword [rsp + 0x24]
xor eax, 1
mov ecx, eax
call fcn.180088610
movzx eax, al
sub eax, 0x10
mov rcx, qword [rsp + 0x58]
mov byte [rcx], al
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
cmp dword [rsp + 0x20], 0
je 0x180087af5
mov dword [rsp + 0x2c], 9
jmp 0x180087afd
mov dword [rsp + 0x2c], 0xd
mov rax, qword [rsp + 0x58]
movzx ecx, byte [rsp + 0x2c]
mov byte [rax], cl
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
cmp dword [rsp + 0x20], 0
je 0x180087b27
mov dword [rsp + 0x30], 0x41
jmp 0x180087b2f
mov dword [rsp + 0x30], 0x49
mov rax, qword [rsp + 0x58]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov eax, 1
imul rax, rax, 0x10
lea rcx, [0x1800c7bf8]
movzx eax, byte [rcx + rax]
or eax, 0xb8
mov rcx, qword [rsp + 0x58]
mov byte [rcx], al
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
and rax, 1
test rax, rax
je 0x180087bad
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
or rax, 0x10
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x10], rax
jmp 0x180087bdb
cmp dword [rsp + 0x20], 0
je 0x180087bc8
mov rax, qword [rsp + 0x50]
mov edx, dword [rax + 0x18]
mov rcx, qword [rsp + 0x58]
call fcn.180088760
jmp 0x180087bdb
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsp + 0x58]
call fcn.180088740
cmp dword [rsp + 0x20], 0
je 0x180087bed
mov qword [rsp + 0x38], 4
jmp 0x180087bf6
mov qword [rsp + 0x38], 8
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0x41
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xff
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
cmp dword [rsp + 0x24], 0x19
jl 0x180087c46
mov dword [rsp + 0x34], 0x10
jmp 0x180087c4e
mov dword [rsp + 0x34], 0x20
mov eax, dword [rsp + 0x34]
or eax, 0xc0
mov ecx, 1
imul rcx, rcx, 0x10
lea rdx, [0x1800c7bf8]
movzx ecx, byte [rdx + rcx]
or eax, ecx
mov rcx, qword [rsp + 0x58]
mov byte [rcx], al
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
add rsp, 0x48
ret
Function at 0x1800897e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
add rsp, 0x28
ret

Function at 0x180089ab0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
cmp qword [0x1800eb4b0], 0
jne 0x180089ad8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
dec eax
mov eax, eax
mov qword [0x1800eb4b0], rax
mov rax, qword [0x1800eb4b0]
add rsp, 0x58
ret

Function at 0x180089b10
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x28
cmp qword [0x1800eb528], 0
jne 0x180089b37
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1800eb528], rax
jmp 0x180089b49
mov edx, 0xffffffff
mov rcx, qword [0x1800eb528]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x28
ret
Function at 0x1400014b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x140062008]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.140001600
test al, al
jne 0x14000157d
movaps xmm0, xmmword [0x1400578f0]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [str.__crterror_handler_main_common_lang.dll]
movaps xmmword [rsp + 0x20], xmm0
movabs rax, 0x6c6c642e676e61
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14000151c
nop dword [rax + rax]
mov ecx, 0x1388
call fcn.140001000
jmp 0x140001510
mov ecx, 0x7d0
call fcn.140001000
mov ecx, 0xbb8
call fcn.140001000
mov edx, 0x48525
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140001568
mov rsi, rax
lea rdx, str.PSQRVWUTAPAQARASATAUAVAW
mov r8d, 0x48525
mov rcx, rax
call fcn.140002c80
call rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001a40
xor eax, eax
add rsp, 0x50
pop rsi
ret
mov ecx, 0xffffffff
call fcn.140003c44
int3

Function at 0x140001600
Capabilities:
Check for outputdebugstring error
Check for peb beingdebugged flag
Patch process command line
Print debug messages

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140062008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rax, qword gs:[0x60]
cmp byte [rax + 2], 0
jne 0x14000172d
test byte [rax + 0xbc], 0x70
jne 0x14000172d
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [0x1400605a4]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x14000172d
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x80], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [0x140060570]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14000168d
xor edi, edi
jmp 0x1400016a0
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x30
lea r8, [rsp + 0x30]
mov rbx, rax
xor edx, edx
lea rax, [rsp + 0x68]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call rdi
mov rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x70]
add rdx, 0x50
mov qword [rsp + 0x60], 0xffffffffffffffff
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test byte [rsp + 0x60], 4
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
jne 0x14000172d
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140001a40
add rsp, 0x88
ret
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140001a40
add rsp, 0x88
ret
Function at 0x22ba539b0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x22ba539e0
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.22ba53975
mov rdx, rax
jmp 0x22ba539e5
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x22ba5a746
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x22ba5d842
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 1], 0
cmp qword [rbp + 0x18], 0
je 0x22ba5d866
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
jmp 0x22ba5d86b
mov eax, 0
mov qword [rbp - 0x20], rax
cmp qword [rbp + 0x10], 0
je 0x22ba5d87f
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
jmp 0x22ba5d884
mov eax, 0
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x10], 0
mov rax, qword [rbp - 0x20]
cmp rax, qword [rbp - 0x10]
jg 0x22ba5d8a3
mov byte [rbp - 1], 1
jmp 0x22ba5d9cd
nop
mov byte [rbp - 0x11], 0
mov rax, qword [rbp - 0x28]
cmp rax, qword [rbp - 0x10]
setle al
mov byte [rbp - 0x11], al
cmp byte [rbp - 0x11], 0
jne 0x22ba5d980
cmp qword [rbp - 0x10], 0
js 0x22ba5d8e2
cmp qword [rbp + 0x10], 0
je 0x22ba5d8d7
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
jmp 0x22ba5d8dc
mov eax, 0
cmp rax, qword [rbp - 0x10]
jg 0x22ba5d909
cmp qword [rbp + 0x10], 0
je 0x22ba5d8f6
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
lea rdx, [rax - 1]
jmp 0x22ba5d8fd
mov rdx, 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.22ba5a025
cmp qword [rbp - 0x10], 0
js 0x22ba5d92b
cmp qword [rbp + 0x18], 0
je 0x22ba5d920
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
jmp 0x22ba5d925
mov eax, 0
cmp rax, qword [rbp - 0x10]
jg 0x22ba5d952
cmp qword [rbp + 0x18], 0
je 0x22ba5d93f
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
lea rdx, [rax - 1]
jmp 0x22ba5d946
mov rdx, 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.22ba5a025
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x10]
add rax, rdx
add rax, 0x10
movzx edx, byte [rax]
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x10]
add rax, rcx
add rax, 0x10
movzx eax, byte [rax]
cmp dl, al
setne al
mov byte [rbp - 0x11], al
jmp 0x22ba5d981
nop
movzx eax, byte [rbp - 0x11]
xor eax, 1
test al, al
jne 0x22ba5d992
mov byte [rbp - 1], 0
jmp 0x22ba5d9cd
nop
mov edx, 0
mov rax, qword [rbp - 0x10]
add rax, 1
jno 0x22ba5d9a7
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x30]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x22ba5d9c0
call fcn.22ba5af1a
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x10], rax
jmp 0x22ba5d890
movzx eax, byte [rbp - 1]
add rsp, 0x50
pop rbp
ret

Function at 0x22ba66980
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, qword gs:[0x60]
movzx rax, byte [rax + 2]
ret
Function at 0x22ba6d740
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 fcn.22ba74db0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.22ba74db0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x22ba6e0b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x22bce70e8]
test eax, eax
je 0x22ba6e14a
lea rax, [0x22bce70c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x22bce70f0]
mov qword [rbp - 8], rax
jmp 0x22ba6e12e
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 0x22ba6e122
cmp qword [rbp - 0x10], 0
je 0x22ba6e122
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 0x22ba6e0e8
lea rax, [0x22bce70c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x22ba6e14b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x22ba6e250
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 0x22ba6e278
mov eax, 0
jmp 0x22ba6e2c6
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 0x22ba6e2a1
mov eax, 0
jmp 0x22ba6e2c6
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 0x22ba6e2c1
mov eax, 0
jmp 0x22ba6e2c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x22ba6e2cc
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 0x22ba6e34a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x22ba6e341
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 0x22ba6e341
mov rax, qword [rbp - 8]
jmp 0x22ba6e35f
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 0x22ba6e314
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140007994
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400079c2
xor eax, eax
jmp 0x140007aa8
cmp qword [rcx + 0x68], 0
je 0x1400079d3
call fcn.140007ac4
jmp 0x140007aa8
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400079ea
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400079ec
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007a1e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140021b60
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140007aa2
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140007a55
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140007a7e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140010c10
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140007aa2
cmp rsi, rbx
ja 0x140007a5c
test rsi, rsi
je 0x140007aa2
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140010c10
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140009a58
Capabilities:
Parse pe header

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

Function at 0x14001340c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013208
Function at 0x1400184d0
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.140009300
sub rsp, rax
mov rax, qword [0x14007d040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400170b0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001851f
mov rax, rbp
jmp 0x140018627
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 + 0x7f720]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400195f0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x7f720]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140018623
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 0x140018623
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400195f0
test rax, rax
js 0x140018623
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140018623
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140018615
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140018615
cmp byte [rcx], 0xd
jne 0x1400185fb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001860a
cmp byte [rcx + 1], 0xa
jne 0x14001860a
inc rcx
jmp 0x14001860a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7d470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400185dd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140018627
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140008cb0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140018848
Capabilities:
Get file size

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