joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024dcb
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x14002f550], eax
mov eax, dword [0x14002f550]
cmp eax, 0xffffffff
jne 0x140024df2
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140024fa5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x14003ce70]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x14002f550]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140024ff8
mov rax, qword [rbp - 0x10]
jmp 0x140025158
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x140025014
cmp qword [rbp - 0x10], 0
jne 0x14002501e
mov eax, 0
jmp 0x140025158
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.replace_spin_keys
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x1400250f9
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x14002f550]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x140025154
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140025252
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x1400252bf
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x14002f550]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140025403
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14002535c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140025317
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x14002f550]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x140025403
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140025396
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x140025403
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x14002f550]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140026045
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x14002f560]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x14003ce70]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x14002f550]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x14002615a
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x14002f560]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140026128
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x14002f560]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x140026169
lea rax, [0x14002f560]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400261a5
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140026213
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x14002f550]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14002625d
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x14002625d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x14002f560]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x14002624f
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140001b0c
Capabilities:
Parse pe header

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

Function at 0x1400085d0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400083c0
Function at 0x14000d93c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000d96c
xor eax, eax
jmp 0x14000da2f
mov rbp, rbx
cmp word [rax], si
je 0x14000d991
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d978
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d974
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000d88c
movsxd r14, eax
test eax, eax
jne 0x14000d9cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d965
mov rcx, r14
call fcn.14000a13c
mov rdi, rax
test rax, rax
jne 0x14000d9e8
xor ecx, ecx
call fcn.1400094c8
jmp 0x14000d9c4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000d88c
test eax, eax
jne 0x14000da19
mov rcx, rdi
call fcn.1400094c8
jmp 0x14000da23
xor ecx, ecx
call fcn.1400094c8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140012cac
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000c990
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140012d36
cmp byte [rbp - 0x21], r15b
je 0x140012d31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012d6c
call fcn.14000971c
test eax, eax
jne 0x140012d58
cmp byte [rbp - 0x21], r15b
je 0x140012d50
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012d6c
cmp byte [rbp - 0x21], r15b
je 0x140012d69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000bf6c
test eax, eax
jne 0x140012e0c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c990
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140012dab
cmp byte [rbp - 0x21], r15b
je 0x140012de0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012de0
call fcn.14000971c
test eax, eax
jne 0x140012dcc
cmp byte [rbp - 0x21], r15b
je 0x140012dc5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012de0
cmp byte [rbp - 0x21], r15b
je 0x140012ddd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000bf6c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012e0c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012e0f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012e1d
mov rcx, rdi
call fcn.1400094c8
cmp byte [rbp + 0x3f], r15b
je 0x140012e2c
mov rcx, qword [rbp + 0x27]
call fcn.1400094c8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400153d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400153f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400153f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x113ec
Capabilities:
Map section object

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xb8
mov ebx, dword [rcx + 0xc]
mov ebp, dword [rcx + 8]
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
mov rdi, rcx
lea rdx, [0x000120a0]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x80], 0
and qword [rsp + 0x98], 0
and qword [rsp + 0xa0], 0
and qword [rdi], 0
lea rax, [rsp + 0x68]
lea r8, [rsp + 0x78]
mov edx, 0xf001f
mov rcx, rdi
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x78], 0x30
mov dword [rsp + 0x90], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenSection]
mov esi, eax
test eax, eax
js 0x115b4
mov rcx, qword [rdi]
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov esi, eax
test eax, eax
js 0x115b4
and dword [rsp + 0xe0], 0
lea rax, [rbx + rbp]
xor edx, edx
lea ebp, [rdx + 1]
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0xf0]
lea r9, [rsp + 0xe0]
mov r8, rbx
mov ecx, ebp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0xf0], rbx
call qword [sym.imp.HAL.dll_HalTranslateBusAddress]
mov r8, qword [rsp + 0xe8]
and dword [rsp + 0xe0], 0
mov bl, al
lea rax, [rsp + 0xe8]
lea r9, [rsp + 0xe0]
xor edx, edx
mov ecx, ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.HAL.dll_HalTranslateBusAddress]
test bl, bl
je 0x115bd
test al, al
je 0x115bd
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xf0]
sub rax, rcx
test eax, eax
je 0x115bd
mov dword [rsp + 0x48], 0x204
and dword [rsp + 0x40], 0
mov qword [rsp + 0xf8], rcx
mov ecx, eax
mov dword [rsp + 0x38], ebp
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi]
lea r8, [rsp + 0x50]
xor r9d, r9d
or rdx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov esi, eax
test eax, eax
js 0x115b4
mov ecx, dword [rsp + 0xf0]
mov rax, qword [rsp + 0x50]
sub ecx, dword [rsp + 0xf8]
add rax, rcx
mov dword [rdi + 0x10], eax
jmp 0x115bd
mov rcx, qword [rdi]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
add rsp, 0xb8
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x116c4
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
lea rdx, [0x000120d0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0x80]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], r11
mov r9d, 0xfa00
mov edx, 0x20
mov rcx, rdi
mov byte [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov ebx, eax
test eax, eax
js 0x11792
lea rdx, [0x00012100]
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]
mov rcx, qword [rsp + 0x80]
mov ebx, eax
test eax, eax
jns 0x11751
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x11792
lea rax, [0x000117a8]
xor edx, edx
mov qword [rdi + 0xe0], rax
mov qword [rdi + 0x90], rax
mov qword [rdi + 0x88], rax
mov qword [rdi + 0x80], rax
mov qword [rdi + 0x70], rax
lea rax, [0x00011828]
mov qword [rdi + 0x68], rax
mov rcx, qword [rcx + 0x40]
lea r8d, [rdx + 0x20]
call fcn.00011fb0
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x16064
Capabilities:
Create device object

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r9, rcx
call fcn.00016008
mov rdx, r8
mov rcx, r9
add rsp, 0x28
jmp fcn.000116c4
Function at 0x180006150
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800801c0]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov eax, dword [0x1800751e0]
xorps xmm0, xmm0
movups xmmword [rsp], xmm0
xor edx, edx
mov dword [rsp + 8], eax
movsd xmm0, qword [0x1800751d8]
movabs rax, 0xcbf29ce484222325
movsd qword [rsp], xmm0
movabs r8, 0x100000001b3
mov qword [rsp + 0x10], 0xc
mov qword [rsp + 0x18], 0xf
mov byte [rsp + 0xc], 0
nop
movzx ecx, byte [rsp + rdx]
inc rdx
xor rax, rcx
imul rax, r8
cmp rdx, 0xc
jb 0x1800061b0
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.180041db0
add rsp, 0x38
ret
Function at 0x18000cbf0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, 0xffffffff
mov r8, rcx
xor ebx, ebx
mov dword [rdx], r11d
movsx ecx, byte [rcx]
mov r10, rdx
sub ecx, 0x30
mov eax, r11d
mov r9d, ebx
cmp ecx, 9
ja 0x18000cc3a
nop word [rax + rax]
inc r8
lea eax, [r9 + r9*4]
lea r9d, [rcx + rax*2]
mov eax, r9d
movsx ecx, byte [r8]
sub ecx, 0x30
cmp ecx, 9
jbe 0x18000cc20
test eax, eax
js 0x18000ccf6
mov dword [rdx], eax
cmp byte [r8], 0x3a
jne 0x18000cc9a
nop word [rax + rax]
movsx eax, byte [r8 + 1]
inc r8
sub eax, 0x30
mov ecx, r11d
mov edx, ebx
cmp eax, 9
ja 0x18000cc87
nop word [rax + rax]
inc r8
lea ecx, [rdx + rdx*4]
lea edx, [rax + rcx*2]
mov ecx, edx
movsx eax, byte [r8]
sub eax, 0x30
cmp eax, 9
jbe 0x18000cc70
test ecx, ecx
js 0x18000cc94
imul eax, dword [r10], 0x3c
add eax, ecx
mov dword [r10], eax
cmp byte [r8], 0x3a
je 0x18000cc50
imul r9d, dword [r10], 0x3e8
mov dword [r10], r9d
cmp byte [r8], 0x2e
jne 0x18000ccf6
movsx eax, byte [r8 + 1]
inc r8
sub eax, 0x30
mov ecx, 0x64
cmp eax, 9
ja 0x18000ccea
nop
imul eax, ecx
inc r8
add ebx, eax
mov eax, 0x66666667
imul ecx
mov r11d, ebx
mov ecx, edx
sar ecx, 2
mov eax, ecx
shr eax, 0x1f
add ecx, eax
movsx eax, byte [r8]
sub eax, 0x30
cmp eax, 9
jbe 0x18000ccc0
test r11d, r11d
js 0x18000ccf6
lea eax, [r9 + r11]
mov dword [r10], eax
mov rbx, qword [rsp + 8]
mov rax, r8
ret

Function at 0x18000d3d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov rcx, rsi
lea rdx, [0x18006160c]
call fcn.18004b3e8
mov rbx, rax
test rax, rax
jne 0x18000d416
lea rdi, str.Couldnt_open_file
mov rax, rdi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 2
lea rcx, [rsp + 0x30]
mov r9, rbx
lea r8d, [rdx - 1]
call fcn.18004b654
test rax, rax
je 0x18000d490
cmp byte [rsp + 0x30], 0x1f
jne 0x18000d490
cmp byte [rsp + 0x31], 0x8b
jne 0x18000d490
mov edx, 0xfffffffc
mov rcx, rbx
lea r8d, [rdx + 6]
call fcn.18004b98c
mov edx, 4
lea rcx, [rsp + 0x30]
mov r9, rbx
lea r8d, [rdx - 3]
call fcn.18004b654
test rax, rax
je 0x18000d490
movzx eax, byte [rsp + 0x32]
movzx ecx, byte [rsp + 0x33]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x31]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x30]
shl ecx, 8
or ecx, eax
jmp 0x18000d4a8
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.18004b98c
mov rcx, rbx
call fcn.18004bf48
mov ecx, eax
mov dword [rdi + 0x10], ecx
mov rcx, rbx
call fcn.18004b300
test eax, eax
jne 0x18000d501
mov rcx, rbx
call fcn.18004b2d4
test eax, eax
jne 0x18000d501
mov rcx, rbx
call fcn.18004b23c
lea rdx, [0x18006160c]
mov rcx, rsi
call fcn.18003b080
mov rcx, rax
mov qword [rdi + 8], rax
xor eax, eax
lea rdi, str.Couldnt_open_file
test rcx, rcx
cmove rax, rdi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
lea rdi, str.Couldnt_get_file_size
call fcn.18004b23c
mov rbx, qword [rsp + 0x38]
mov rax, rdi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18000d650
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, r8d
mov rax, rdx
test r8d, r8d
jle 0x18000d6fd
mov qword [rsp + 0x30], rdi
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x18000d6b2
mov r8d, ebx
mov rcx, rdi
call fcn.18003ab20
cmp ebx, eax
je 0x18000d6c8
mov rcx, rdi
call fcn.18003b060
test eax, eax
jne 0x18000d6a0
mov rdi, qword [rsp + 0x30]
lea rax, str.Couldnt_read_from_GZ_file
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
lea rax, str.Unexpected_end_of_file
add rsp, 0x20
pop rbx
ret
xor r9d, r9d
mov r8, rbx
mov rcx, rax
lea edx, [r9 + 1]
call fcn.18004b654
cmp ebx, eax
jne 0x18000d6d5
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor ecx, ecx
call fcn.18004b2d4
mov rdi, qword [rsp + 0x30]
lea rdx, str.Unexpected_end_of_file
mov ecx, eax
lea rax, str.Couldnt_read_from_file
test ecx, ecx
cmovne rax, rdx
add rsp, 0x20
pop rbx
ret
lea rax, str.Corrupt_file
add rsp, 0x20
pop rbx
ret
Function at 0x18001d1a0
Capabilities:
Encode data using xor

Disassembly:
lea rax, [rcx + 0x218]
mov r8d, 0xff
mov qword [rcx + 0x210], rax
lea r9, [rcx + 0xff]
nop dword [rax + rax]
mov edx, 1
mov eax, r8d
test r8d, r8d
je 0x18001d1d6
nop dword [rax]
xor edx, eax
sar eax, 1
jne 0x18001d1d0
and dl, 1
movzx eax, r8b
shl dl, 2
and al, 0xa8
or dl, al
mov byte [r9], dl
or dl, 1
mov byte [r9 + 0x100], dl
dec r9
sub r8d, 1
jns 0x18001d1c0
or byte [rcx], 0x40
mov rax, rcx
or byte [rcx + 0x100], 0x40
ret

Function at 0x180024d40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r15d, dword [rcx + 0x34]
mov ebp, r8d
mov ebx, edx
mov rdi, rcx
test r15d, r15d
je 0x180024e14
cmp dword [rcx + 0x38], 0x80
jle 0x180024e14
mov eax, r15d
neg eax
cmp dword [rcx + 0x3c], 0
cmove r15d, eax
mov r8d, r15d
sub r8d, dword [rcx + 0x30]
je 0x180024da9
mov r9, qword [rcx + 0x20]
mov dword [rcx + 0x30], r15d
mov rcx, qword [rcx + 0x40]
imul edx, dword [r9]
add edx, dword [r9 + 4]
call fcn.180024a60
add ebx, dword [rdi + 0x2c]
lea rsi, [rdi + 0x2c]
cmp ebx, ebp
jge 0x180024e73
mov qword [rsp + 0x40], r12
add r15d, r15d
mov r12, qword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x40]
mov edx, ebx
imul edx, dword [r12]
neg r15d
mov r9, r12
mov r8d, r15d
add edx, dword [r12 + 4]
call fcn.180024a60
mov edx, dword [rdi + 0x3c]
add ebx, dword [rdi + 0x38]
xor edx, 1
mov dword [rdi + 0x3c], edx
cmp ebx, ebp
jl 0x180024dd0
mov ecx, dword [rdi + 0x34]
mov eax, ecx
mov r12, qword [rsp + 0x40]
neg eax
test edx, edx
cmove ecx, eax
mov dword [rdi + 0x30], ecx
jmp 0x180024e73
mov r8d, dword [rcx + 0x30]
test r8d, r8d
je 0x180024e3c
mov r9, qword [rcx + 0x20]
neg r8d
mov rcx, qword [rcx + 0x40]
imul edx, dword [r9]
add edx, dword [r9 + 4]
call fcn.180024a60
mov dword [rdi + 0x30], 0
add ebx, dword [rdi + 0x2c]
lea rsi, [rdi + 0x2c]
mov r8d, dword [rdi + 0x38]
test r8d, r8d
jne 0x180024e50
mov ebx, ebp
jmp 0x180024e73
cmp ebx, ebp
jge 0x180024e73
mov eax, r8d
sub eax, ebx
dec eax
add eax, ebp
cdq
idiv r8d
mov edx, dword [rdi + 0x3c]
add edx, eax
imul r8d, eax
and edx, 1
mov dword [rdi + 0x3c], edx
add ebx, r8d
sub ebx, ebp
mov rbp, qword [rsp + 0x50]
mov dword [rsi], ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret