joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003da30
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x14003da65
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1400357d0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14003dba4
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14003db1d
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14003db93
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14003db5a
mov r10, qword [rdx]
cmp r10, rax
je 0x14003db54
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14003db93
cmp r9, rdx
je 0x14003db6f
nop
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x14003dbb5
cmp r9, rdx
jne 0x14003db60
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14003dad0
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14003db93
Function at 0x140043ac0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140066010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov rdi, rdx
mov ecx, 8
call fcn.14004b8e0
mov rcx, qword [rbx]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14004b110]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140043b39
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004b7a0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140043d70
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rdi, r8
mov rsi, rdx
sub rdi, rdx
mov rbp, rcx
sar rdi, 2
test rdi, rdi
je 0x140043f4f
mov qword [rsp + 0x60], rbx
mov rbx, qword [rcx + 8]
sub rbx, qword [rcx]
mov qword [rsp + 0x30], r13
sar rbx, 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
cmp rdi, 0x26f
jb 0x140043dc0
mov eax, ntohs
jmp 0x140043dee
cmp rdi, 0x44
jb 0x140043dcd
mov eax, 7
jmp 0x140043dee
cmp rdi, 0x27
jb 0x140043dda
mov eax, 5
jmp 0x140043dee
cmp rdi, 7
jb 0x140043de7
mov eax, 3
jmp 0x140043dee
lea rax, [rdi - 1]
shr rax, 1
mov r14, rdi
lea r15, [rbx + 1]
sub r14, rax
shr r14, 1
lea r13, [r14 + rax]
cmp rdi, rbx
jbe 0x140043e07
mov r15, rdi
mov r8, rdi
mov edx, 0x8b8b8b8b
shl r8, 2
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
test r15, r15
je 0x140043ebf
mov qword [rsp + 0x38], r12
nop dword [rax + rax]
xor edx, edx
lea rax, [rcx + r14]
div rdi
mov r11d, dword [rsi + rdx*4]
lea r10, [rsi + rdx*4]
xor edx, edx
mov rax, rcx
div rdi
lea r12, [rsi + rdx*4]
mov r9, rdx
lea rax, [rcx - 1]
xor edx, edx
div rdi
mov r8d, dword [rsi + rdx*4]
xor r8d, dword [r12]
xor r8d, r11d
mov eax, r8d
shr eax, 0x1b
xor eax, r8d
imul edx, eax, 0x19660d
test rcx, rcx
jne 0x140043e7d
mov rax, rbx
jmp 0x140043e92
cmp rcx, rbx
ja 0x140043e8f
mov rax, qword [rbp]
mov eax, dword [rax + rcx*4 - 4]
add rax, r9
jmp 0x140043e92
mov rax, r9
lea r8d, [rax + rdx]
lea eax, [r11 + rdx]
xor edx, edx
mov dword [r10], eax
lea rax, [rcx + r13]
div rdi
inc rcx
add dword [rsi + rdx*4], r8d
mov dword [r12], r8d
cmp rcx, r15
jb 0x140043e30
mov r12, qword [rsp + 0x38]
add r15, rdi
cmp rcx, r15
jae 0x140043f3b
inc r14
lea rbp, [rcx - 1]
inc r13
xor edx, edx
lea rax, [r14 + rbp]
div rdi
mov r10d, dword [rsi + rdx*4]
lea r11, [rsi + rdx*4]
xor edx, edx
lea rbx, [rbp + 1]
mov rax, rbx
div rdi
mov rax, rbp
mov r9, rdx
xor edx, edx
div rdi
mov ecx, dword [rsi + rdx*4]
xor edx, edx
add ecx, r10d
add ecx, dword [rsi + r9*4]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul ecx, eax, 0x5d588b65
mov rax, rbp
add rax, r13
mov rbp, rbx
div rdi
xor r10d, ecx
lea rax, [rbx + 1]
mov dword [r11], r10d
mov r8d, ecx
sub r8d, r9d
xor dword [rsi + rdx*4], r8d
mov dword [rsi + r9*4], r8d
cmp rax, r15
jb 0x140043ed1
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400494a0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14004956c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14004956c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140049585
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14004955c
cmp byte [rax], 0x5c
jne 0x140049556
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140049556
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140049542
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140049553
test r8b, 0x10
jne 0x140049556
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140049556
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400434a0
test edi, edi
jne 0x1400494c0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140043490
int3

Function at 0x14004c43c
Capabilities:
Parse pe header

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

Function at 0x14004c680
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14004c704
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14004c704
dec r8
sub rdx, 1
jne 0x14004c6ea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14004c984
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14004c71c
mov ebx, eax
test eax, eax
jne 0x14004c9b4
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14004ca17
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004ca0e
test al, 0x10
je 0x14004ca0e
bt eax, 0xa
jae 0x14004ca07
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14004ca28
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14004ca03
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14004ca03
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x14004ca0e
and dword [rsp + 0x3c], 0
jmp 0x14004ca13
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001000
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x140004db0
sub rsp, 0x28
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.user32
mov qword [0x140033978], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.winsta
mov qword [0x1400339b0], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [0x140033978]
lea rdx, str.NtGetNextProcess
mov qword [0x140033990], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033978]
lea rdx, str.NtGetNextThread
mov qword [0x140033980], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033978]
lea rdx, str.NtTerminateProcess
mov qword [0x1400339c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033978]
lea rdx, str.NtTerminateThread
mov qword [0x1400339a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033978]
lea rdx, str.NtCreateDebugObject
mov qword [0x1400339b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033978]
lea rdx, str.NtDebugActiveProcess
mov qword [0x140033998], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400339b0]
lea rdx, str.EndTask
mov qword [0x140033988], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033990]
lea rdx, str.WinStationTerminateProcess
mov qword [0x1400339d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033978]
lea rdx, str.NtSuspendProcess
mov qword [0x140033970], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033978]
lea rdx, str.NtQuerySystemInformation
mov qword [0x1400339c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033978]
lea rdx, str.NtDuplicateObject
mov qword [0x1400339a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140033968], rax
lea rax, [0x1400339d8]
add rsp, 0x28
ret
Function at 0x140004db0
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x140004db0
sub rsp, 0x28
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.user32
mov qword [0x140033978], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.winsta
mov qword [0x1400339b0], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [0x140033978]
lea rdx, str.NtGetNextProcess
mov qword [0x140033990], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033978]
lea rdx, str.NtGetNextThread
mov qword [0x140033980], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033978]
lea rdx, str.NtTerminateProcess
mov qword [0x1400339c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033978]
lea rdx, str.NtTerminateThread
mov qword [0x1400339a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033978]
lea rdx, str.NtCreateDebugObject
mov qword [0x1400339b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033978]
lea rdx, str.NtDebugActiveProcess
mov qword [0x140033998], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400339b0]
lea rdx, str.EndTask
mov qword [0x140033988], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033990]
lea rdx, str.WinStationTerminateProcess
mov qword [0x1400339d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033978]
lea rdx, str.NtSuspendProcess
mov qword [0x140033970], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033978]
lea rdx, str.NtQuerySystemInformation
mov qword [0x1400339c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140033978]
lea rdx, str.NtDuplicateObject
mov qword [0x1400339a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140033968], rax
lea rax, [0x1400339d8]
add rsp, 0x28
ret
Function at 0x140003da0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003dd4
cmp word [rcx], 0x5a4d
jne 0x140003dd4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003dd4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003dd4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003ce0
test eax, eax
jne 0x140003df0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003d50
test rax, rax
je 0x140003de5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000459f
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400044a0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004440
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400048f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14055f458]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14055f454]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004942
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000493a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004a29
inc ebx
add rax, 0x28
jmp 0x14000491a
mov rcx, r12
call fcn.140005121
mov rbp, rax
test rax, rax
jne 0x140004961
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004890
movsxd rbx, ebx
mov rax, qword [0x14055f458]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.1400051cf
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14055f458]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400049c3
mov rax, qword [0x14055f458]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004890
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004a23
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004a23
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 [0x14055f458]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004a23
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004890
inc dword [0x14055f454]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004e50
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14055f4c0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14055f4a0]
test rbx, rbx
je 0x140004e9c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004e96
test eax, eax
jne 0x140004e96
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004e6e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140005050
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140005073
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140005073
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140005074
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x1400050ae
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x1400050a5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400050b0
inc r8d
add rax, 0x28
jmp 0x14000508c
xor eax, eax
ret

Function at 0x140005121
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14055b550]
mov r8, rcx
mov rcx, r9
call fcn.140005050
test eax, eax
je 0x14000514d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140005074
xor eax, eax
add rsp, 0x28
ret
Function at 0x1418660b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x141866237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1418660e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418660c7
add dl, dl
jne 0x1418660ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14186614e
xor eax, eax
add dl, dl
jne 0x1418660fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141866205
add dl, dl
jne 0x14186610e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14186611b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141866128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141866135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141866142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1418660d6
mov eax, 1
add dl, dl
jne 0x14186615e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14186616b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141866153
sub eax, ebx
mov ebx, 1
jne 0x1418661a4
mov ecx, 1
add dl, dl
jne 0x141866186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141866193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14186617b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1418660d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1418661c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1418661cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418661b5
cmp eax, 0x7d00
jae 0x1418661f3
cmp eax, 0x500
jb 0x1418661ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1418660d6
cmp eax, 0x7f
ja 0x1418661f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1418660d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14186622a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1418660d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001ca8
Capabilities:
Parse pe header

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
sub rsp, 0x20
mov eax, 0x5a4d
mov r14, r8
mov r15, rdx
mov rdi, rcx
cmp word [rcx], ax
jne 0x140001d49
movsxd rbx, dword [rcx + 0x3c]
add rbx, rcx
cmp dword [rbx], 0x4550
jne 0x140001d49
movzx eax, word [rbx + 0x14]
lea r12, [rbx + 0x18]
xor r13d, r13d
add r12, rax
movzx esi, r13w
cmp r13w, word [rbx + 6]
jae 0x140001d49
movzx eax, si
lea rdx, [0x140003f00]
lea rcx, [rax + rax*4]
lea rbp, [r12 + rcx*8]
mov rcx, rbp
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x140001d27
cmp dword [rbp], 0x45474150
jne 0x140001d40
mov ecx, dword [rbp + 0xc]
mov r9, r14
mov edx, dword [rbp + 8]
add rcx, rdi
mov r8, r15
call fcn.140001c2c
test rax, rax
jne 0x140001d4b
inc si
cmp si, word [rbx + 6]
jb 0x140001cff
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140001d68
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
lea r9, [rax + 0x20]
mov r14, r8
mov dword [rax + 0x20], ebx
mov r15, rdx
mov r12, rcx
xor r8d, r8d
lea rdx, [rax + 0x20]
lea esi, [rbx + 0xb]
mov ecx, esi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp dword [rsp + 0x68], ebx
je 0x140001e2c
mov edx, dword [rsp + 0x68]
xor ecx, ecx
mov r8d, 0x5574696c
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x140001e2c
mov r8d, dword [rsp + 0x68]
xor r9d, r9d
mov rdx, rax
mov ecx, esi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
lfence
test eax, eax
js 0x140001e1a
mov ebp, ebx
cmp qword [rdi], rbx
jbe 0x140001e18
mov rsi, rdi
lea rcx, [rsi + 0x30]
mov rdx, r12
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x140001e0b
inc rbp
add rsi, 0x128
cmp rbp, qword [rdi]
jb 0x140001de9
jmp 0x140001e18
mov rax, qword [rsi + 0x18]
mov qword [r15], rax
mov eax, dword [rsi + 0x20]
mov dword [r14], eax
mov bl, 1
mov edx, 0x5574696c
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, bl
jmp 0x140001e2e
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400037ec
Capabilities:
Create device object

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
lea rcx, [0x1400046d0]
call fcn.140002e48
lea rax, [0x1400038f0]
lea rdx, [0x1400046e0]
mov qword [rbx + 0x68], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [0x140006250]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 0
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x14000388e
cmp qword [0x140006250], 0
je 0x14000388e
lea rdx, [0x140004690]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
test eax, eax
jns 0x140003899
mov rcx, qword [0x140006250]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, 0xc0000001
add rsp, 0x60
pop rbx
ret
lea rax, section..text
mov qword [rbx + 0x70], rax
lea rax, [0x140001020]
mov qword [rbx + 0xe0], rax
lea rax, section..text
mov qword [rbx + 0x80], rax
call fcn.14000371c
call fcn.140003794
call fcn.140003338
call fcn.1400037c0
mov rax, qword [0x140006250]
or dword [rax + 0x30], 0x10
mov rax, qword [0x140006250]
btr dword [rax + 0x30], 7
xor eax, eax
jmp 0x140003893