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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140005530]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140005540]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140003540
jmp 0x14000123c
mov rax, qword [0x140005540]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140005540]
mov dword [rax], 1
mov rax, qword [0x140005580]
mov rdx, rax
mov rax, qword [0x140005570]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140009024], 1
mov rax, qword [0x140005540]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140005560]
mov rdx, rax
mov rax, qword [0x140005550]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x140005540]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140005530]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140005480]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140005480]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400027b8
mov rax, qword [0x1400055c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140005520]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140001fb0
mov eax, dword [0x140009004]
lea rdx, [0x140009008]
mov ecx, eax
call fcn.14000147c
call fcn.140001d47
mov rax, qword [0x1400054b0]
mov rax, qword [rax]
mov rdx, qword [0x140009010]
mov qword [rax], rdx
mov rcx, qword [0x140009010]
mov rdx, qword [0x140009008]
mov eax, dword [0x140009004]
mov r8, rcx
mov ecx, eax
call fcn.140003890
mov dword [0x14000901c], eax
mov eax, dword [0x140009020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000901c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140009024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000901c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400054e0]
mov dword [rax], 1
mov rax, qword [0x1400054f0]
mov dword [rax], 1
mov rax, qword [0x140005500]
mov dword [rax], 1
mov rax, qword [0x1400054a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001930
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000195e
test al, 2
jne 0x14000195e
mov rcx, qword [rbx]
mov edx, 2
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add rsp, 0x20
pop rbx
ret

Function at 0x140001a5b
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [0x1400090a0]
xor r9d, r9d
xor edx, edx
lea r8, [0x1400016e8]
xor ecx, ecx
mov qword [rsp + 0x28], rax
xor eax, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x140001ac6
lea rdx, [0x140001769]
mov ecx, 2
call sub.api_ms_win_crt_runtime_l1_1_0.dll_signal
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
mov ecx, 2
call sub.api_ms_win_crt_runtime_l1_1_0.dll_signal
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x30
pop rbx
ret
Function at 0x140001fc0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140003330
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140002c92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400091c8]
test eax, eax
je 0x140002d2a
lea rax, [0x1400091a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400091d0]
mov qword [rbp - 8], rax
jmp 0x140002d0e
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 0x140002d02
cmp qword [rbp - 0x10], 0
je 0x140002d02
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 0x140002cc8
lea rax, [0x1400091a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002d2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002e30
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 0x140002e58
mov eax, 0
jmp 0x140002ea6
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 0x140002e81
mov eax, 0
jmp 0x140002ea6
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 0x140002ea1
mov eax, 0
jmp 0x140002ea6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002eac
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 0x140002f2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002f21
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 0x140002f21
mov rax, qword [rbp - 8]
jmp 0x140002f3f
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 0x140002ef4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140003890
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
call fcn.140001d47
lea rcx, str.Keylogger
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call fcn.140001845
test al, al
je 0x1400038b4
call fcn.140001a5b
xor eax, eax
add rsp, 0x28
ret
Function at 0x140008ef0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x28
call qword [sym.imp.tier0.dll_Plat_IsInDebugSession]
movzx eax, al
test eax, eax
je 0x140008f0d
int3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.tier0.dll_WriteMiniDump]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14001c930
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r11d, r11d
mov r10, r8
shr r10, 3
mov r9, rcx
mov ebx, r11d
test r10, r10
je 0x14001c9f1
cmp r10, 4
jb 0x14001c9c5
add rcx, 0xfffffffffffffff8
lea rax, [rdx - 8]
lea rax, [rax + r10*8]
lea rcx, [rcx + r10*8]
cmp r9, rax
ja 0x14001c973
cmp rcx, rdx
jae 0x14001c9c5
mov rdi, r10
lea rax, [r9 + 0x10]
and rdi, 0xfffffffffffffffc
mov rcx, rdx
sub rcx, r9
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add rbx, 4
movdqu xmm1, xmmword [rcx + rax - 0x10]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm2, xmmword [rcx + rax - 0x20]
movdqu xmm0, xmmword [rax - 0x20]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x20], xmm2
cmp rbx, rdi
jb 0x14001c990
cmp rbx, r10
jae 0x14001c9f1
mov rdi, rdx
lea rcx, [r9 + rbx*8]
sub rdi, r9
sub r10, rbx
add rbx, r10
nop word [rax + rax]
mov rax, qword [rcx + rdi]
xor qword [rcx], rax
lea rcx, [rcx + 8]
sub r10, 1
jne 0x14001c9e0
lea rbx, [rbx*8]
sub r8, rbx
je 0x14001cb60
add r9, rbx
add rdx, rbx
mov r10, r8
mov rbx, r11
shr r10, 2
test r10, r10
je 0x14001caaf
cmp r10, 8
jb 0x14001ca85
lea rax, [r10 - 1]
lea rax, [rdx + rax*4]
lea rcx, [r10 - 1]
lea rcx, [r9 + rcx*4]
cmp r9, rax
ja 0x14001ca3b
cmp rcx, rdx
jae 0x14001ca85
mov rdi, r10
lea rax, [r9 + 0x10]
and rdi, 0xfffffffffffffff8
mov rcx, rdx
sub rcx, r9
nop dword [rax]
movdqu xmm0, xmmword [rax - 0x10]
add rbx, 8
movdqu xmm1, xmmword [rax + rcx - 0x10]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm2, xmmword [rax + rcx - 0x20]
movdqu xmm0, xmmword [rax - 0x20]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x20], xmm2
cmp rbx, rdi
jb 0x14001ca50
cmp rbx, r10
jae 0x14001caaf
mov rdi, rdx
lea rcx, [r9 + rbx*4]
sub rdi, r9
sub r10, rbx
add rbx, r10
nop word [rax + rax]
mov eax, dword [rcx + rdi]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub r10, 1
jne 0x14001caa0
lea rbx, [rbx*4]
sub r8, rbx
je 0x14001cb60
add r9, rbx
add rdx, rbx
test r8, r8
je 0x14001cb60
cmp r8, 0x20
jb 0x14001cb33
lea rcx, [r9 - 1]
lea rax, [rdx - 1]
add rcx, r8
add rax, r8
cmp r9, rax
ja 0x14001caed
cmp rcx, rdx
jae 0x14001cb33
mov r10, r8
mov rcx, rdx
and r10, 0xffffffffffffffe0
mov rax, r9
sub rcx, r9
nop dword [rax]
movdqu xmm0, xmmword [rax]
add r11, 0x20
movdqu xmm1, xmmword [rax + rcx]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm0, xmmword [rax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
cmp r11, r10
jb 0x14001cb00
cmp r11, r8
jae 0x14001cb60
sub rdx, r9
lea rcx, [r11 + r9]
sub r8, r11
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x14001cb50
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x1400485f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rax, qword [0x1400c1a80]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, r8
mov rbx, rdx
cmp qword [0x1400c8810], 0
jne 0x140048655
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140048655
lea rdx, str.SystemFunction036
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c8810], rax
mov rax, qword [0x1400c8810]
test rax, rax
je 0x14004866c
mov edx, edi
mov rcx, rbx
call rax
test eax, eax
jne 0x1400486bc
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
mov r8d, 0xc
lea rdx, str.RtlGenRandom
lea rcx, [rsp + 0x28]
call fcn.14001be20
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1400482a0
lea rdx, [0x1400bda08]
lea rcx, [rsp + 0x50]
call fcn.140056d04
nop
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140056120
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
Function at 0x140049e50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov eax, dword [rcx]
lea rdi, [0x140000000]
mov r11d, r8d
mov r10, rdx
mov rbx, rcx
nop dword [rax]
cmp r11d, 7
ja case.default.0x140049e84
movsxd r9, r11d
mov r8d, dword [rdi + r9*4 + 0x4a050]
add r8, rdi
jmp r8
mov ecx, r10d
and ecx, 3
sub r11d, ecx
sub ecx, 1
je 0x140049ecd
sub ecx, 1
je 0x140049eb6
cmp ecx, 1
jne 0x140049ee4
movzx edx, byte [r10]
movzx ecx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4 + 0x98770]
inc r10
movzx edx, byte [r10]
movzx ecx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4 + 0x98770]
inc r10
movzx edx, byte [r10]
movzx ecx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4 + 0x98770]
inc r10
mov edx, r11d
sar edx, 3
test edx, edx
je 0x140049f6c
nop
xor eax, dword [r10]
movzx ecx, al
shr eax, 8
xor eax, dword [rdi + rcx*4 + 0x98770]
movzx ecx, al
shr eax, 8
xor eax, dword [rdi + rcx*4 + 0x98770]
movzx ecx, al
shr eax, 8
xor eax, dword [rdi + rcx*4 + 0x98770]
mov ecx, eax
movzx eax, al
shr ecx, 8
mov eax, dword [rdi + rax*4 + 0x98770]
xor eax, dword [r10 + 4]
add r10, 8
xor eax, ecx
movzx ecx, al
shr eax, 8
xor eax, dword [rdi + rcx*4 + 0x98770]
movzx ecx, al
shr eax, 8
xor eax, dword [rdi + rcx*4 + 0x98770]
movzx ecx, al
shr eax, 8
xor eax, dword [rdi + rcx*4 + 0x98770]
movzx ecx, al
shr eax, 8
xor eax, dword [rdi + rcx*4 + 0x98770]
sub edx, 1
jne 0x140049ef0
and r11d, 7
jmp 0x140049e70
movzx edx, byte [r10]
movzx ecx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4 + 0x98770]
inc r10
movzx edx, byte [r10]
movzx ecx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4 + 0x98770]
inc r10
movzx edx, byte [r10]
movzx ecx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4 + 0x98770]
inc r10
xor eax, dword [r10]
movzx ecx, al
shr eax, 8
xor eax, dword [rdi + rcx*4 + 0x98770]
movzx ecx, al
shr eax, 8
xor eax, dword [rdi + rcx*4 + 0x98770]
movzx ecx, al
shr eax, 8
xor eax, dword [rdi + rcx*4 + 0x98770]
movzx ecx, al
shr eax, 8
xor eax, dword [rdi + rcx*4 + 0x98770]
mov dword [rbx], eax
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
movzx edx, byte [r10]
movzx ecx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4 + 0x98770]
inc r10
movzx edx, byte [r10]
movzx ecx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4 + 0x98770]
inc r10
movzx edx, byte [r10]
movzx ecx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4 + 0x98770]
mov rdi, qword [rsp + 0x10]
mov dword [rbx], eax
mov rbx, qword [rsp + 8]
ret
Function at 0x14004aa80
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x80
mov rbx, r8
mov dword [rsp + 0x20], 0x67452301
mov r8d, edx
mov dword [rsp + 0x24], 0xefcdab89
mov rdx, rcx
mov dword [rsp + 0x28], 0x98badcfe
xor eax, eax
mov qword [rsp + 0x2c], 0x10325476
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x34], eax
call fcn.14004a970
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x38]
shr edx, 3
and edx, 0x3f
mov eax, edx
add rcx, rax
mov eax, 0x3f
sub eax, edx
xor edx, edx
mov byte [rcx], 0x80
inc rcx
cmp eax, 8
jae 0x14004ab1d
mov r8d, eax
call fcn.140087c30
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.14004a180
xorps xmm0, xmm0
xor eax, eax
mov qword [rsp + 0x68], rax
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
jmp 0x14004ab28
add eax, 0xfffffff8
mov r8d, eax
call fcn.140087c30
mov eax, dword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x20]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x74], eax
call fcn.14004a180
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
add rsp, 0x80
pop rbx
ret
Function at 0x1400535a0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x8090
call fcn.140055ca0
sub rsp, rax
mov r13, rdx
mov ebx, r9d
mov edx, dword [rdx]
mov r14, r8
call fcn.1400525b0
mov r15, rax
call qword [sym.imp.tier0.dll_ThreadGetCurrentId]
mov rcx, qword [r15 + 0x18]
mov rdx, rax
cmp rax, rcx
je 0x140053605
xor eax, eax
lock cmpxchg qword [r15 + 0x18], rdx
je 0x140053605
pause
xor r8d, r8d
lea rcx, [r15 + 0x18]
call qword [sym.imp.tier0.dll_private:_void___cdecl_CThreadFastMutex::Lock_unsigned_long_long_unsigned___int64___unsigned_int_volatile___ptr64]
jmp 0x140053610
nop
mov eax, dword [r15 + 0x20]
inc eax
mov dword [r15 + 0x20], eax
mov rcx, qword [r15 + 8]
lea rdx, [rsp + 0x80d8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xorps xmm0, xmm0
mov esi, eax
lea rcx, [rsp + 0x30]
mov qword [r14], rsi
xor eax, eax
mov qword [rsp + 0x80], rax
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call fcn.14004a150
cmp ebx, dword [r15 + 0x10]
je 0x14005366f
mov rcx, qword [r15 + 8]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esi, ebx
cmp esi, dword [rsp + 0x80e0]
cmovg esi, dword [rsp + 0x80e0]
xor r14d, r14d
mov eax, esi
mov ecx, r14d
cdq
mov ebp, r14d
and edx, 0x7fff
lea r12d, [rdx + rax]
sar r12d, 0xf
inc r12d
test r12d, r12d
jle 0x140053706
nop dword [rax]
nop word [rax + rax]
lea ebx, [rcx + 0x8000]
cmp ebx, esi
mov r8d, ebx
cmovae r8d, esi
sub r8d, ecx
je 0x140053706
mov rcx, qword [r15 + 8]
lea r9, [rsp + 0x80e0]
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, dword [rsp + 0x80e0]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.14004a970
inc ebp
mov ecx, ebx
cmp ebp, r12d
jl 0x1400536b0
mov rbx, qword [rsp + 0x80e8]
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 8]
call fcn.14004a090
mov dword [rbx + 4], esi
xor r9d, r9d
mov dword [rbx + 0x18], esi
xor r8d, r8d
mov dword [rbx], 1
mov eax, dword [r13]
mov dword [rbx + 0x20], eax
mov rax, qword [r13 + 0x20]
mov ecx, dword [rax]
mov dword [rbx + 0x1c], ecx
mov edx, dword [r15 + 0x10]
mov rcx, qword [r15 + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [r15 + 0x20]
dec eax
mov dword [r15 + 0x20], eax
mov eax, dword [r15 + 0x20]
test eax, eax
mov al, 1
jne 0x140053765
nop
xchg qword [r15 + 0x18], r14
lea r11, [rsp + 0x8090]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400546f0
Capabilities:
Read file on windows

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, 0x30
mov rbp, rdx
mov dword [r8 + 0x10], 0
mov edx, dword [r8 + 4]
mov rbx, r8
mov r14, rcx
cmp edx, dword [rbp + 0x10]
je 0x140054734
mov rcx, qword [rbp + 8]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [rbx + 8]
lea r9, [rbx + 0x10]
mov rcx, qword [rbp + 8]
mov r8d, 0x100000
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rbp + 0x10]
xor r9d, r9d
mov rcx, qword [rbp + 8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [r14 + 0x110]
test rcx, rcx
je 0x14005479c
mov eax, dword [rbx + 4]
mov r9, qword [r14 + 0x100]
mov r10, qword [rcx]
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov r9d, dword [r9]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
call qword [r10]
mov dword [rbx + 0x18], eax
cmp dword [rbx + 0x10], 0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
setg al
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14005660c
Capabilities:
Parse pe header

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

Function at 0x140068a38
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400688a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400688a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400688a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400688a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400688a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400688a3
cmp dword [rcx + 0xf8], 0
je 0x1400688a3
mov ecx, ebx
call fcn.140068954
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140068730
nop
cmp dword [rbp + 0x20], 0
je 0x1400688f1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400688fc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140068834

Function at 0x14006bf88
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400c1a80]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14006bfd2
call fcn.140064fbc
mov dword [rax], 0xf
call fcn.140064fdc
mov dword [rax], 0xd
call fcn.140064e3c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140056120
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14006bfdd
lea eax, [rbx + 1]
jmp 0x14006bfbf
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14006bfbd
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14006bfbf