joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001a40
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
mov r14, rcx
mov rsi, r8
mov rbp, rdx
sub r14, qword [r8 + 0x30]
je 0x140001bc2
test byte [r8 + 0x5e], 0x40
jne 0x140001a6d
xor eax, eax
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
movzx edx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rdx, 0x18
mov r8d, dword [r8 + 0xb0]
add rdx, rsi
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140001bc2
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001aa6
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140001abd
add rdx, 0x28
cmp rdx, r9
jb 0x140001a94
mov eax, 1
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
mov qword [rsp + 0x18], rbx
mov ebx, dword [rdx + 0x14]
sub rbx, rcx
mov qword [rsp + 0x28], r15
mov r15d, dword [rsi + 0xb4]
add rbx, r8
add rbx, rbp
add r15, rbx
test rbx, rbx
je 0x140001bb8
cmp rbx, r15
jae 0x140001bb8
mov qword [rsp + 0x20], rdi
mov eax, dword [rbx + 4]
test eax, eax
je 0x140001bb3
add eax, 0xfffffff8
shr eax, 1
je 0x140001ba4
lea r11, [rbx + 8]
mov edi, eax
movzx r8d, word [r11]
movzx eax, r8w
shr ax, 0xc
and r8d, 0x80000fff
jge 0x140001b32
dec r8d
or r8d, 0xfffff000
inc r8d
cmp ax, 3
je 0x140001b3e
cmp ax, 0xa
jne 0x140001b96
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
mov r9d, dword [rbx]
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r10, [rax + rdx*8]
cmp rax, r10
jae 0x140001b8b
nop dword [rax]
mov edx, dword [rax + 0xc]
cmp r9, rdx
jb 0x140001b72
mov ecx, dword [rax + 8]
add ecx, edx
cmp r9, rcx
jb 0x140001b7d
add rax, 0x28
cmp rax, r10
jb 0x140001b60
jmp 0x140001b8b
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r9
add rcx, rbp
jne 0x140001b8e
mov rcx, rbp
movzx eax, r8w
add qword [rax + rcx], r14
add r11, 2
sub rdi, 1
jne 0x140001b10
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r15
jb 0x140001af4
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov eax, 1
pop r14
pop rsi
ret
Function at 0x140001bd0
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x38
movzx eax, word [r9 + 0x14]
lea r10, [r9 + 0x18]
mov r11d, dword [r9 + 0x90]
add r10, rax
movzx eax, word [r9 + 6]
mov rbp, r9
mov r13, r8
mov edi, edx
mov rsi, rcx
lea r9, [rax + rax*4]
lea r8, [r10 + r9*8]
cmp r10, r8
jae 0x140001c33
mov ecx, dword [r10 + 0xc]
cmp r11, rcx
jb 0x140001c2a
mov eax, dword [r10 + 8]
add eax, ecx
cmp r11, rax
jb 0x140001cbe
add r10, 0x28
cmp r10, r8
jb 0x140001c12
xor eax, eax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
test r11d, r11d
je 0x140001c9b
cmp dword [rbp + 0x94], 0
je 0x140001c9b
lea rbx, [rax + 0x10]
movzx edx, word [rbp + 0x14]
movzx eax, word [rbp + 6]
add rdx, 0x18
mov r8d, dword [rbx - 4]
add rdx, rbp
mov qword [rsp + 0x78], rbx
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140001c9b
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001c92
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140001cd0
add rdx, 0x28
cmp rdx, r9
jb 0x140001c80
mov eax, 1
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x70]
add rsp, 0x38
pop r13
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [r10 + 0x14]
sub rax, rcx
add rax, r11
add rax, r13
jmp 0x140001c35
mov r15d, dword [rdx + 0x14]
sub r15, rcx
add r15, r8
add r15, r13
je 0x140001c9b
mov r8, r15
mov edx, edi
mov rcx, rsi
call fcn.140001240
mov r12, rax
test rax, rax
je 0x140001e09
movzx edx, word [rbp + 0x14]
movzx eax, word [rbp + 6]
add rdx, 0x18
mov r8d, dword [rbx]
add rdx, rbp
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140001d32
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001d29
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140001d57
add rdx, 0x28
cmp rdx, r9
jb 0x140001d17
xor r14d, r14d
mov rdi, qword [r14]
test rdi, rdi
je 0x140001dee
jns 0x140001d66
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
movzx edx, di
jmp 0x140001db2
mov r14d, dword [rdx + 0x14]
sub r14, rcx
add r14, r8
add r14, r13
jmp 0x140001d35
movzx eax, word [rbp + 0x14]
movzx ecx, word [rbp + 6]
add rax, 0x18
add rax, rbp
lea rdx, [rcx + rcx*4]
lea r8, [rax + rdx*8]
cmp rax, r8
jae 0x140001d9d
mov edx, dword [rax + 0xc]
cmp rdi, rdx
jb 0x140001d94
mov ecx, dword [rax + 8]
add ecx, edx
cmp rdi, rcx
jb 0x140001dfb
add rax, 0x28
cmp rax, r8
jb 0x140001d82
xor esi, esi
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rdx, [rsi + 2]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov rcx, rbx
sub rdi, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rdi + r12]
mov qword [r14], rax
add r14, 8
mov rdi, qword [r14]
test rdi, rdi
jne 0x140001d41
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x60]
mov edi, dword [rsp + 0x68]
add rbx, 0x14
jmp 0x140001c5b
mov esi, dword [rax + 0x14]
sub rsi, rdx
add rsi, rdi
add rsi, r13
jmp 0x140001d9f
jmp 0x140001ca0
Function at 0x1400020f0
Capabilities:
Access pe header
Get file size
Read file on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r14d, r14d
lea rcx, [0x140004520]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140002157
mov edi, r14d
jmp 0x1400021bd
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
mov ebx, eax
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov rdx, rax
mov r8d, ebx
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000219e
cmp dword [rdi], 0x905a4d
je 0x1400021af
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
jne 0x1400021c9
lea rcx, str.invalid_dll_n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rbp, rax
test rax, rax
jne 0x1400021e6
lea rcx, str.pe:_invalid_pe_header_n
call fcn.140001010
mov dword [rsp + 0x40], r14d
nop dword [rax + rax]
xor edx, edx
lea rcx, str.unrealwindow
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, 0x14
mov esi, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [rsp + 0x40]
test ebx, ebx
je 0x1400021f0
lea rcx, str.injecting..._n
call fcn.140001010
test esi, esi
je 0x140002316
call fcn.1400011e0
mov r8d, dword [rbp + 0x50]
mov edx, ebx
call fcn.140001070
mov r8, rbp
mov rdx, rdi
mov rcx, rax
mov r14, rax
call fcn.140001a40
test eax, eax
jne 0x140002276
call fcn.1400011e0
mov r8, r14
mov edx, ebx
call fcn.140001120
lea rcx, str.reloc_failed_n
call fcn.140001010
mov r9, rbp
mov r8, rdi
mov edx, esi
mov rcx, rbx
call fcn.140001bd0
test eax, eax
jne 0x1400022a6
call fcn.1400011e0
mov r8, r14
mov rdx, rbx
call fcn.140001120
lea rcx, str.import_failed_n
call fcn.140001010
mov r9, rbp
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.140001e10
lea rcx, str.injecting..._almost_done_n
call fcn.140001010
mov r9, rbp
mov r8, r14
mov edx, esi
mov rcx, rbx
call fcn.140001640
mov r8, rbp
mov rdx, r14
mov rcx, rbx
call fcn.140001f60
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, str.Lucky_Solution_ON_TOP_n
call fcn.140001010
lea rcx, str.inject_success__n
call fcn.140001010
mov ecx, 0x5dc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.process_not_found__n
call fcn.140001010
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140002800
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x140002350
Capabilities:
Encode data using xor
Execute command

Disassembly:
sub rsp, 0x78
lea rcx, str.title
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x14000451c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
movups xmm0, xmmword [str.jFWO]
movzx eax, byte [0x140004598]
xor ecx, ecx
cmp dword [0x140006088], 2
movups xmm1, xmmword [0x140004588]
mov byte [rsp + 0x50], al
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm1
jl 0x1400024e9
movdqa xmm0, xmmword [0x1400045e0]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1400045a0]
movdqa xmm4, xmmword [0x1400045d0]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [str.7777]
nop word [rax + rax]
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
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400045c0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400045c0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x20
jl 0x1400023e0
movaps xmm6, xmmword [rsp + 0x60]
cmp ecx, 0x21
jge 0x14000252c
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x37
movzx eax, cl
inc ecx
sub al, dl
add al, 0x31
xor byte [r8 - 1], al
cmp ecx, 0x21
jl 0x140002500
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x30]
call fcn.140002570
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400020f0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x78
ret

Function at 0x140003250
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140015430
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140015430
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000f730
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140020894]
mov rbx, rcx
test esi, esi
jle 0x14000f860
mov rax, qword [0x140020898]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000f77b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000f805
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000f760
mov rcx, rbx
call fcn.140010180
mov rdi, rax
test rax, rax
je 0x14000f882
mov rax, qword [0x140020898]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400102c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140020898]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000f867
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000f7fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000f810
add dword [0x140020894], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140020898]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000f7fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000f6c0
nop dword [rax]
xor esi, esi
jmp 0x14000f788
mov rax, qword [0x140020898]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000f6c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000f6c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000fdf0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140020900]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400208e0]
test rbx, rbx
je 0x14000fe4c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000fe43
test rsi, rsi
je 0x14000fe43
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000fe28
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140010180
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001d7e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400101a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400101a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400101a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400101fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400101f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400101a0
add rax, 0x28
cmp rax, r9
jne 0x1400101e0
xor eax, eax
ret

Function at 0x140010200
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001d7e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001021f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140010228
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001021f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400102c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001d7e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400102df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400102e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001d4b
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140001d6a
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x14000c4d8
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x140005c1b
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
sub rsp, 0x208
xor eax, eax
mov r11d, 0xa
lea rsi, [rsp + 2]
mov r9, rcx
mov ecx, 0x1fe
mov r10, rdx
mov rdi, rsi
rep stosb byte [rdi], al
mov rax, rcx
cqo
idiv r11
mov al, byte [r10 + rdx]
xor al, byte [r9 + rcx]
mov byte [rsi + rcx], al
inc rcx
cmp rcx, 0x1fe
jne 0x140005c41
mov rdi, r8
rep movsb byte [rdi], byte [rsi]
add rsp, 0x208
pop rsi
pop rdi
ret

Function at 0x140006180
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14000bf00
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000bf00
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400061f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140023554]
mov rbx, rcx
test esi, esi
jle 0x140006320
mov rax, qword [0x140023558]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000623b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400062c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140006220
mov rcx, rbx
call fcn.140006c40
mov rdi, rax
test rax, rax
je 0x140006342
mov rax, qword [0x140023558]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140006d80
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140023558]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140006327
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400062be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400062d0
add dword [0x140023554], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140023558]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400062be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140006180
nop dword [rax]
xor esi, esi
jmp 0x140006248
mov rax, qword [0x140023558]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140006180
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140006180
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400068b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400235c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400235a0]
test rbx, rbx
je 0x14000690c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140006903
test rsi, rsi
je 0x140006903
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400068e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140006c40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000f060]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140006c60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140006c68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140006c60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140006cbd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140006cb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140006c60
add rax, 0x28
cmp rax, r9
jne 0x140006ca0
xor eax, eax
ret

Function at 0x140006cc0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000f060]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140006cdf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140006ce8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140006cdf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140006d80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000f060]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140006d9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140006da8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14000f100
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000f15d
lea rbx, [0x140071bf0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000f144
cmp r10, 2
jb 0x14000f144
cmp byte [r9], r8b
jne 0x14000f144
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14000f120
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000f19f
lea rbx, [0x140071bf0]
cmp r8b, 0x23
jne 0x14000f183
cmp byte [r9], r8b
jne 0x14000f183
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14000f170
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14000f2e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000f2fa
mov qword [r8], 0
lea rdx, [0x140077050]
call fcn.14000f1b0
mov rbx, rax
test rax, rax
jne 0x14000f31a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000f3f1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000f3f1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000f3f1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000f3f1
cmp rdi, 0xffffffffffffffff
je 0x14000f3f1
mov rax, qword [0x140087470]
test rax, rax
je 0x14000f38e
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000f3f1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000f3de
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140087470]
test rax, rax
je 0x14000f3d3
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000f3fa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000f3ec
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000f3fc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret