joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f6c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rbp, rdx
test rcx, rcx
je 0x14001f7e0
lea rdi, [0x1400cc188]
mov rcx, rdi
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, rdi
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x14001f7e0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14001f7e0
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14001f7e0
test byte [rbx + 0x44], 4
jne 0x14001f7f0
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400cc198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001f810
cmp rsi, qword [rax + 0x1d8]
je 0x14001f840
mov eax, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test eax, eax
je 0x14001f76b
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001f77a
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001f78e
call rsi
mov qword [rbx + 0x30], 0
test rbp, rbp
je 0x14001f828
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x38]
mov qword [rbp], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14001f847
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14001f800
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call sym.push_pthread_mem.part.0
xor eax, eax
jmp 0x14001f7d6
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14001f746
jmp 0x14001f753
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x14001f7b4
mov eax, 0x24
jmp 0x14001f7e5
call sym.replace_spin_keys.part.0
nop
nop dword [rax]
Function at 0x14001f850
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x1400cc188]
mov rsi, rcx
mov rcx, rbp
mov rdi, rdx
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rbx, rax
test rax, rax
je 0x14001f970
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14001f970
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14001f970
test byte [rbx + 0x44], 4
jne 0x14001f990
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400cc198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001f9d0
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x14001fa10
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x14001f8f7
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14001f9b0
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001f90b
call rsi
mov qword [rbx + 0x30], 0
test rdi, rdi
je 0x14001f9e8
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x38]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14001fa22
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14001fa00
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x14001f8f3
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x14001f95e
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x14001f8c5
jmp 0x14001f8cc
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x14001f930
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x14001f954
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x14001f95e
call sym.replace_spin_keys.part.0
nop
nop dword [rax + rax]

Function at 0x140022b80
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x140022bac
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1400237d0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400cef10], 0
jne 0x1400238d3
mov byte [0x1400cef10], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x1400238a8
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x140023899
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400cf7a1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400c9147
jmp 0x1400c913f
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x140023867
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
nop
jmp 0x1400c913a
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
nop
nop
nop

Function at 0x140082940
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140082988
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008295a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400952b0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x1400952d8
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x140095320
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400952f0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14009532c
call rbp
cmp dword [rax], 4
je 0x1400952f0
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400c90d0
Capabilities:
Write file on windows

Disassembly:
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400c914c
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
call sym.abort
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x1400c913a

Function at 0x1400ca830
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x1400cc7c0]
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400cc7d8], 0
movups xmmword [0x1400cc7c8], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1400ca8e5
jmp 0x1400ca98f
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x1400ca940
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x1400ca8d0
cmp qword [rbx + 7], r12
jne 0x1400ca8d0
cmp byte [rbx + 0xf], 0x2e
jne 0x1400ca8d0
add rbx, 0x10
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x1400ca92b
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x1400ca935
cmp byte [rbx + rsi], 0x3d
je 0x1400ca9c5
add rbp, 0x18
cmp rbp, r13
jne 0x1400ca90f
jmp 0x1400ca8d0
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x1400cc7d8], rbx
jne 0x1400ca99f
lea rcx, [sym.__tcf_0_3]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.atexit
mov qword [0x1400cc7d8], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1400cc7d0], rax
test rax, rax
je 0x1400ca9fc
xor edx, edx
mov qword [0x1400cc7c8], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x1400ca977
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rsi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x1400ca9ec
test dl, dl
jne 0x1400ca8d0
test eax, eax
js 0x1400ca8d0
mov dword [rbp + 0x10], eax
jmp 0x1400ca8d0
xor ecx, ecx
mov qword [0x1400cc7d8], rcx
jmp 0x1400ca977
Function at 0x11f30
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x438
mov rax, qword [0x00017108]
mov qword [rsp + 0x420], rax
cmp byte [0x00017128], 1
jne 0x11fd5
test rcx, rcx
je 0x11fd5
mov rdx, rcx
lea r8, [rsp + 0x448]
lea rcx, [rsp + 0x220]
call qword [sym.imp.ntoskrnl.exe_vsprintf]
mov rax, qword [0x00014b40]
lea r11, [rsp + 0x20]
mov qword [r11], rax
movzx eax, byte [0x00014b48]
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x28]
mov r8d, 0x1f3
mov byte [r11 + 8], al
call qword [sym.imp.ntoskrnl.exe_strncpy]
lea rcx, [rsp + 0x20]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
mov rcx, qword [rsp + 0x420]
call fcn.00014710
add rsp, 0x438
ret
mov eax, 0xc86a800b
mov rcx, qword [rsp + 0x420]
call fcn.00014710
add rsp, 0x438
ret
Function at 0x5e2010
Capabilities:
Create device object

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x18], rbx
mov rbx, rcx
lea r8, [0x005e22d0]
lea rcx, [0x005e22a0]
lea rdx, [0x005e2290]
mov qword [rax + 0x20], rdi
call fcn.00011f30
xor edi, edi
lea rax, [0x005cfec0]
mov dword [0x00017120], edi
mov edx, 0x100
mov byte [rax + 0x108], dil
mov qword [rax], rdi
add rax, 0x110
dec rdx
jne 0x5e2050
lea rax, [0x00011090]
lea rcx, [0x003e7a50]
mov edx, 0xc350
mov qword [rbx + 0x70], rax
lea rax, [0x000110f0]
mov qword [rbx + 0x80], rax
lea rax, [0x00011150]
mov qword [rbx + 0xe0], rax
lea rax, [0x00011010]
mov qword [rbx + 0x68], rax
lea rax, [0x00017148]
nop
nop
mov dword [rax - 8], edi
mov qword [rax], rdi
mov qword [rax + 0x10], rdi
mov qword [rax + 8], rdi
mov dword [rax + 0x20], edi
mov dword [rax + 0x24], edi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x28], rdi
mov qword [rax + 0x30], rdi
mov qword [rax + 0x38], rdi
mov qword [rax + 0x40], rdi
mov qword [rcx + 8], rdi
mov qword [rcx], rdi
mov qword [rcx - 0x10], rdi
mov qword [rcx - 8], rdi
mov qword [rcx + 0x10], rdi
add rax, 0x50
add rcx, 0x28
dec rdx
jne 0x5e20b0
lea rcx, [0x000148e0]
call fcn.00011f30
lea rdx, [0x000148c0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0x70]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], r11
mov r9d, 0x8086
mov edx, 0x18
mov rcx, rbx
mov byte [rsp + 0x28], dil
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov rdi, qword [rsp + 0x88]
test eax, eax
jns 0x5e2163
lea rcx, [0x00014880]
mov edx, eax
call fcn.00011f30
mov eax, 0xc0000001
jmp 0x5e2199
mov rax, qword [rsp + 0x70]
lea rdx, [0x00014860]
lea rcx, [rsp + 0x50]
mov qword [rbx + 8], rax
mov rbx, qword [rax + 0x40]
mov qword [rbx], rax
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 0x5e21b4
lea rcx, [0x00014820]
mov edx, eax
call fcn.00011f30
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x5e21d2
mov rax, qword [rsp + 0x70]
or dword [rax + 0x30], 4
mov rax, qword [rsp + 0x70]
and dword [rax + 0x30], 0xffffff7f
mov rax, qword [rsp + 0x70]
mov qword [rbx + 8], rax
lea rcx, [0x000147f0]
call fcn.00011f30
lea rcx, [0x005e2260]
call fcn.00011f30
mov rbx, qword [rsp + 0x80]
xor eax, eax
add rsp, 0x68
ret
mov rax, qword [0x00017108]
movabs r9, 0x2b992ddfa232
test rax, rax
je 0x5e221b
cmp rax, r9
jne 0x5e224a
lea r8, [0x00017108]
movabs rax, 0xfffff78000000320
mov rax, qword [rax]
xor rax, r8
movabs r8, 0xffffffffffff
and rax, r8
cmove rax, r9
mov qword [0x00017108], rax
not rax
mov qword [0x00017100], rax
jmp 0x5e2010
Function at 0x5e2200
Capabilities:
Create device object

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x18], rbx
mov rbx, rcx
lea r8, [0x005e22d0]
lea rcx, [0x005e22a0]
lea rdx, [0x005e2290]
mov qword [rax + 0x20], rdi
call fcn.00011f30
xor edi, edi
lea rax, [0x005cfec0]
mov dword [0x00017120], edi
mov edx, 0x100
mov byte [rax + 0x108], dil
mov qword [rax], rdi
add rax, 0x110
dec rdx
jne 0x5e2050
lea rax, [0x00011090]
lea rcx, [0x003e7a50]
mov edx, 0xc350
mov qword [rbx + 0x70], rax
lea rax, [0x000110f0]
mov qword [rbx + 0x80], rax
lea rax, [0x00011150]
mov qword [rbx + 0xe0], rax
lea rax, [0x00011010]
mov qword [rbx + 0x68], rax
lea rax, [0x00017148]
nop
nop
mov dword [rax - 8], edi
mov qword [rax], rdi
mov qword [rax + 0x10], rdi
mov qword [rax + 8], rdi
mov dword [rax + 0x20], edi
mov dword [rax + 0x24], edi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x28], rdi
mov qword [rax + 0x30], rdi
mov qword [rax + 0x38], rdi
mov qword [rax + 0x40], rdi
mov qword [rcx + 8], rdi
mov qword [rcx], rdi
mov qword [rcx - 0x10], rdi
mov qword [rcx - 8], rdi
mov qword [rcx + 0x10], rdi
add rax, 0x50
add rcx, 0x28
dec rdx
jne 0x5e20b0
lea rcx, [0x000148e0]
call fcn.00011f30
lea rdx, [0x000148c0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0x70]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], r11
mov r9d, 0x8086
mov edx, 0x18
mov rcx, rbx
mov byte [rsp + 0x28], dil
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov rdi, qword [rsp + 0x88]
test eax, eax
jns 0x5e2163
lea rcx, [0x00014880]
mov edx, eax
call fcn.00011f30
mov eax, 0xc0000001
jmp 0x5e2199
mov rax, qword [rsp + 0x70]
lea rdx, [0x00014860]
lea rcx, [rsp + 0x50]
mov qword [rbx + 8], rax
mov rbx, qword [rax + 0x40]
mov qword [rbx], rax
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 0x5e21b4
lea rcx, [0x00014820]
mov edx, eax
call fcn.00011f30
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x5e21d2
mov rax, qword [rsp + 0x70]
or dword [rax + 0x30], 4
mov rax, qword [rsp + 0x70]
and dword [rax + 0x30], 0xffffff7f
mov rax, qword [rsp + 0x70]
mov qword [rbx + 8], rax
lea rcx, [0x000147f0]
call fcn.00011f30
lea rcx, [0x005e2260]
call fcn.00011f30
mov rbx, qword [rsp + 0x80]
xor eax, eax
add rsp, 0x68
ret
mov rax, qword [0x00017108]
movabs r9, 0x2b992ddfa232
test rax, rax
je 0x5e221b
cmp rax, r9
jne 0x5e224a
lea r8, [0x00017108]
movabs rax, 0xfffff78000000320
mov rax, qword [rax]
xor rax, r8
movabs r8, 0xffffffffffff
and rax, r8
cmove rax, r9
mov qword [0x00017108], rax
not rax
mov qword [0x00017100], rax
jmp 0x5e2010
Function at 0x180022e50
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x180022e72
xor eax, eax
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
je 0x180022f06
mov rdi, rbp
mov qword [rsp + 0x50], r15
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180022ed3
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180022ed3
cmp rdi, rcx
mov r15, rdi
cmovge r15, rcx
mov rcx, r14
mov r8, r15
call fcn.18022acf0
mov rax, qword [rsi]
sub rdi, r15
sub dword [rax], r15d
mov rcx, qword [rbx + 0x38]
movsxd rax, r15d
add qword [rcx], rax
jmp 0x180022ef1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180022ef9
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov r15d, 1
add r14, r15
test rdi, rdi
jg 0x180022e93
mov r15, qword [rsp + 0x50]
sub rbp, rdi
jmp 0x180022fef
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180022f1d
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180022f1f
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180022f51
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.18022acf0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180022fec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180022f8c
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x180022fcd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1801c2890
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x180022fec
cmp rsi, rax
ja 0x180022fa0
test rsi, rsi
je 0x180022fec
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1801c2890
sub rsi, rax
sub rbp, rsi
mov rsi, qword [rsp + 0x40]
mov rax, rbp
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
Function at 0x18002ffa0
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 0x180030065
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x180030065
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 0x18003007e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x180030055
cmp byte [rcx], 0x5c
jne 0x18003004e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x18003004e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x18003003c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x18003004b
test r8b, 0x10
jne 0x18003004e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x18003004e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.180033430
test edi, edi
jne 0x18002ffc0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.180031b80
int3

Function at 0x180033a30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180033a64
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180033a50
ret
Function at 0x180079c80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rbx, rdx
lea rax, [rbp + 0x30]
mov rcx, rbx
mov qword [rbp - 0x30], rax
mov rdx, r9
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x180079d1c
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
mov ecx, 0x20
mov qword [rbp - 8], rax
movups xmmword [rbp - 0x20], xmm0
call fcn.180167598
movups xmm0, xmmword [str.FindResource_returned_null.]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], 0x1b
mov rdx, rax
mov qword [rbp - 8], 0x1f
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1802525b8]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x1802525c0]
mov word [rax + 0x18], cx
movzx eax, byte [0x1802525c2]
mov byte [rdx + 0x1a], al
mov byte [rdx + 0x1b], dil
xor edx, edx
jmp 0x180079e7b
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x180079d8c
xor eax, eax
xorps xmm0, xmm0
mov ecx, 0x20
mov qword [rbp - 0x10], rax
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 8], rax
call fcn.180167598
movups xmm0, xmmword [str.SizeofResource_returned_0.]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], 0x1a
xor edx, edx
mov qword [rbp - 8], 0x1f
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1802525d8]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x1802525e0]
mov word [rax + 0x18], cx
mov byte [rax + 0x1a], 0
jmp 0x180079e7b
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180079e05
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
mov ecx, 0x20
mov qword [rbp - 8], rax
movups xmmword [rbp - 0x20], xmm0
call fcn.180167598
movups xmm0, xmmword [str.LockResource_returned_null.]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], 0x1b
mov rdx, rax
mov qword [rbp - 8], 0x1f
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1802525f8]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x180252600]
mov word [rax + 0x18], cx
movzx eax, byte [0x180252602]
mov byte [rdx + 0x1a], al
mov byte [rdx + 0x1b], 0
xor edx, edx
jmp 0x180079e7b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x180079e6a
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
mov ecx, 0x20
mov qword [rbp - 8], rax
movups xmmword [rbp - 0x20], xmm0
call fcn.180167598
movups xmm0, xmmword [str.Resource_data_is_null.]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], socket
xor edx, edx
mov qword [rbp - 8], 0x1f
movups xmmword [rax], xmm0
mov ecx, dword [0x180252618]
mov dword [rax + 0x10], ecx
movzx ecx, word [0x18025261c]
mov word [rax + 0x14], cx
mov byte [rax + 0x16], 0
jmp 0x180079e7b
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.180009070
mov r8, rax
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.180079a00
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret