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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbx, qword [0x004997a0]
test rbx, rbx
je 0x4719b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x4719b0
mov rax, qword [rbx + 0x10]
lea rbp, [rsp + 0x20]
mov rdx, qword [rbx + 0x18]
lea rsi, [rsp + 0x30]
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdx
call fcn.00471060
lea rax, [rbx + 0x38]
mov rcx, rsi
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
xchg qword [rax], rcx
test rcx, rcx
je 0x4718ac
mov qword [rcx + 8], rsi
lea rdx, [rcx + 0x18]
xor eax, eax
mov rcx, 0xffffffffffffffff
lock cmpxchg qword [rdx], rcx
test rax, rax
mov rcx, rax
je 0x471897
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea r12, [rsi + 0x10]
xor edi, edi
lock xadd qword [r12], rdi
test rdi, rdi
je 0x4719c0
mov dword [rbx + 0x28], 6
mov r8, qword [rsp + 0x30]
lea rax, [rsi + 8]
xor edx, edx
lock xadd qword [rax], rdx
test rdx, rdx
mov rcx, rdx
je 0x471a00
add rcx, 0x10
xor eax, eax
mov rdx, 0xffffffffffffffff
lock cmpxchg qword [rcx], rdx
test rax, rax
mov rcx, rax
je 0x4718ef
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rbx + 0x178]
mov esi, 0xffffffff
mov rdi, qword [sym.imp.KERNEL32.dll_SetEvent]
test rax, rax
jne 0x47192b
jmp 0x471975
add r8, 8
mov eax, esi
xchg dword [r8], eax
mov rcx, qword [rdx + 0x20]
call rdi
mov rax, qword [rbx + 0x178]
test rax, rax
je 0x471975
mov rdx, qword [rax]
mov r9, qword [rdx + 0x28]
mov r10, qword [rdx + 0x10]
mov qword [rdx + 0x10], rbx
mov rax, qword [r9 + 0x18]
test rax, rax
je 0x47194b
mov rcx, qword [r9 + 0x10]
mov qword [rax + 0x10], rcx
mov rcx, qword [r9 + 0x10]
test rcx, rcx
je 0x471958
mov qword [rcx + 0x18], rax
cmp r9, qword [r10 + 0x178]
mov r8, r9
jne 0x471910
mov rax, qword [r9 + 0x18]
mov qword [r10 + 0x178], rax
mov r8, qword [rdx + 0x28]
jmp 0x471910
cmp dword [rbx + 0x184], 1
jne 0x4719b0
mov rax, qword [rbx + 0x10]
mov rcx, rbp
mov rdx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdx
call fcn.00470d60
mov rax, qword [0x004997a0]
xor edx, edx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop dword [rax]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov r13, rax
mov rax, rdi
lock cmpxchg qword [r12], r13
test rax, rax
je 0x4719ef
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4718ac
mov edx, 0xffffffff
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4719e1
mov rax, rsi
lock cmpxchg qword [r8], rdx
cmp rsi, rax
je 0x4718ef
lea rcx, [rsi + 0x18]
lock xadd qword [rcx], rdx
test rdx, rdx
je 0x471a2f
add rsi, 8
xor ecx, ecx
lock xadd qword [rsi], rcx
jmp 0x4718cf
call fcn.00470a60
jmp 0x471a1f
Function at 0x474eb0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x00499798]
test rbx, rbx
je 0x474f12
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x474f12
test esi, esi
je 0x474ef7
mov rax, qword [rbx]
test rax, rax
je 0x474ef7
mov rcx, qword [rbx + 8]
call rax
mov rdx, qword [rbx + 0x10]
mov rcx, qword [0x00499798]
call fcn.004749f0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x00499798]
test rsi, rsi
mov rbx, rcx
mov qword [rcx], rdx
mov qword [rcx + 8], r8
je 0x474f80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x00499798]
mov rdx, rbx
mov rcx, rsi
mov qword [rbx + 0x10], rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.004749f0
xor edi, edi
jmp 0x474f60

Function at 0x474f90
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, qword [0x004997a0]
test rsi, rsi
mov rbx, rcx
je 0x474ff2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x474ff2
mov rdi, qword [rsi + 0x18]
mov rsi, qword [rsi + 0x10]
mov qword [rbx], rsi
mov qword [rbx + 8], rdi
mov rax, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r12, [rsp + 0x40]
mov rcx, r12
call fcn.00472410
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
test rbp, rbp
mov rsi, rbp
je 0x474fd7
or byte [rbp + 0x194], 1
mov dword [rbp + 0x184], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r13, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbp + 0x198], eax
call r13
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r14, rax
call r13
lea r9, [rbp + 8]
mov r8, r15
mov rdx, r14
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4750a0
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rcx, qword [0x004997a0]
mov rdx, rbp
mov dword [rbp + 0x188], eax
call fcn.004749f0
jmp 0x474fd7
mov rcx, r12
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
call fcn.00472270
mov qword [rbx], 0
mov dword [rbx + 8], 0
jmp 0x474fde
Function at 0x4750d0
Capabilities:
Create thread
Resume thread

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test rdx, rdx
mov r12, rcx
mov r14, r8
mov dword [rcx + 8], 0
mov r13, r9
je 0x475210
mov rbp, qword [rdx]
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.00472410
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
test rbx, rbx
je 0x4751e0
mov ecx, 0x20
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x4751e0
test rbp, rbp
mov qword [rax], rbx
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r13
je 0x475240
mov eax, dword [rbp + 0x18]
mov r14, qword [rbp + 0x10]
mov r13d, dword [rbp + 0x1c]
mov dword [rbx + 0x184], eax
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x475220
mov dword [rbx + 0x28], 0
xor ecx, ecx
mov r9, rsi
mov edx, r14d
lea rax, [rbx + 0x198]
mov qword [rbx + 0x58], 0
lea r8, [0x00474df0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov rbp, rax
mov qword [rbx + 8], rax
je 0x475290
mov r8d, r13d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call fcn.00473080
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov qword [r12], rbx
xor eax, eax
mov qword [r12 + 8], r15
jmp 0x4751f7
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call fcn.00470d60
mov eax, 0xb
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x4750fc
mov rcx, rdi
call fcn.00474f90
mov rax, qword [rsp + 0x30]
mov r13d, dword [rax + 0x188]
jmp 0x475166
mov dword [rbx + 0x28], 0
xor edx, edx
xor ecx, ecx
mov r9, rsi
lea rax, [rbx + 0x198]
mov qword [rbx + 0x58], 0
lea r8, [0x00474df0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov rbp, rax
mov qword [rbx + 8], rax
jne 0x4751c5
nop word [rax + rax]
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call fcn.00470d60
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, 0xb
jmp 0x4751f7

Function at 0x47bcd0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test rcx, rcx
je 0x47bd03
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
xor ebx, ebx
jmp 0x47bcf9
Function at 0x47bd10
Capabilities:
Get thread local storage value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov edi, ecx
mov rcx, qword [0x004997a0]
call fcn.0047bcd0
mov rsi, rax
mov dword [rax + 0x28], 5
lea eax, [rdi - 1]
cmp eax, 1
jbe 0x47bd48
mov ecx, 1
call sub.msvcrt.dll_exit
test byte [rsi + 0x194], 1
jne 0x47bdc2
mov rbx, qword [0x00499798]
test rbx, rbx
je 0x47bdb7
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x47bd9f
mov r8, qword [rbx]
test r8, r8
je 0x47bd83
mov rcx, qword [rbx + 8]
call r8
mov rdx, qword [rbx + 0x10]
mov rcx, qword [0x00499798]
call fcn.004749f0
mov rbx, qword [0x00499798]
test rbx, rbx
je 0x47bdb7
call r13
mov ecx, dword [rbx]
mov r14d, eax
call r12
mov ecx, r14d
mov rbx, rax
call rbp
test rbx, rbx
jne 0x47bd74
lea rcx, [rsi + 0x70]
mov edx, edi
call sub.msvcrt.dll_longjmp
or ecx, 0xffffffff
cmp edi, 2
jne 0x47bdd9
cmp dword [0x004997a8], 0
jne 0x47bdde
call qword [sym.imp.msvcrt.dll__endthreadex]
mov ecx, dword [rsi + 0x48]
jmp 0x47bdca
mov dword [rsp + 0x2c], ecx
call fcn.004717e0
mov ecx, dword [rsp + 0x2c]
jmp 0x47bdd3
Function at 0x47fc70
Capabilities:
Write file on windows

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

Function at 0x47fce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00499db4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x47fe88
mov rax, qword [0x00499db8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x47fd2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x47fdb7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x47fd10
mov rcx, r12
call fcn.00480a40
mov rbp, rax
test rax, rax
je 0x47fec2
mov rax, qword [0x00499db8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00480b70
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00499db8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x47fed1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x47fdb0
sub eax, 4
and eax, 0xfffffffb
jne 0x47fe40
add dword [0x00499db4], 1
cmp ebx, 8
jae 0x47fde8
test bl, 4
jne 0x47fe90
test ebx, ebx
je 0x47fdd9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x47feb0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x47fdd9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x47fe1a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00499db8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x47fdb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0047fc70
nop dword [rax]
xor edi, edi
jmp 0x47fd37
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x47fdd9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x47fdd9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0047fc70
mov rax, qword [0x00499db8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.0047fc70
nop
nop dword [rax]
Function at 0x4806b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0049a0a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0049a080]
test rbx, rbx
je 0x480704
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x4806fb
test r12, r12
je 0x4806fb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4806e0
lea rcx, [0x0049a0a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x480a40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00491ed0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x480ab9
mov rcx, r10
call fcn.00480910
test eax, eax
je 0x480ab9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x480ab6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x480aad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x480ab9
add r8, 0x28
cmp r8, r9
jne 0x480a98
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x481070
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x0049a100], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x0049a108], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x4810c0
lea rdx, [0x00480f80]
mov dword [0x0049a0f8], eax
call fcn.004872c0
test eax, eax
jne 0x4810c8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4810b7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x4810d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [0x00491e50]
mov r11d, dword [r13]
mov r12, rcx
test r11d, r11d
jne 0x481110
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x481178
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x481190
mov r13d, dword [0x0049a0f8]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
mov r14d, eax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r14d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r13, r13
je 0x481208
mov r14, qword [r13]
cmp r14, rbx
jb 0x481250
lea r13, [r13 + rbx*8]
mov rax, qword [r13]
test rax, rax
jne 0x4810f9
mov rcx, r12
call fcn.00480fd0
mov qword [r13], rax
jmp 0x4810f9
call fcn.00480fd0
mov qword [r12 + 0x10], rax
jmp 0x4810f9
mov r10d, dword [r13]
test r10d, r10d
je 0x4812b2
mov r9d, dword [0x004892c0]
test r9d, r9d
je 0x4812e0
lock add dword [0x0049a100], 1
jne 0x481314
mov rbx, qword [r12 + 0x10]
test rbx, rbx
je 0x4812c0
mov eax, dword [r13]
test eax, eax
je 0x481119
mov eax, 0xffffffff
lock xadd dword [0x0049a100], eax
sub eax, 1
js 0x481119
mov rcx, qword [0x0049a108]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x481119
lea rcx, [rbx + 0x21]
mov edx, 8
lea rdi, [rbx + 0x20]
call sub.msvcrt.dll_calloc
mov r13, rax
test rax, rax
je 0x48133b
mov qword [rax], rdi
mov ecx, dword [0x0049a0f8]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x481157
call rsi
jmp 0x481157
lea rdi, [r14 + r14]
lea rax, [rbx + 0x20]
mov rcx, r13
cmp rbx, rdi
cmova rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov r13, rax
test rax, rax
je 0x48133b
mov qword [rax], rdi
sub rdi, r14
lea rcx, [rax + r14*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x481229
call fcn.00481070
mov dword [0x004892c0], 1
mov edx, dword [r13]
test edx, edx
jne 0x4811ad
mov rbx, qword [r12 + 0x10]
test rbx, rbx
jne 0x481119
mov rax, qword [0x0049a0f0]
lea rbx, [rax + 1]
mov qword [0x0049a0f0], rbx
mov qword [r12 + 0x10], rbx
jmp 0x4811c9
lock add dword [0x004892c4], 1
je 0x481297
mov r8d, dword [0x004892c0]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x004892c0]
test r8d, r8d
jne 0x4812a6
nop dword [rax]
xor ecx, ecx
call rsi
mov ecx, dword [rbx]
test ecx, ecx
je 0x481308
jmp 0x4812a6
mov rcx, qword [0x0049a108]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4811bb
lock sub dword [0x0049a100], 1
jmp 0x4811bb
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
nop dword [rax]
cmp qword [rcx], rdx
jae 0x481360
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x48136a
mov qword [rcx + 8], r8
test r9, r9
je 0x481374
cmp qword [rcx], rdx
je 0x481378
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
wait
int 0xb
fist dword [r10 - 0x75]
js 0x14001ad3a
xchg edi, eax
invalid
enter 0xffffffffffffeff2, 0x14
push rsp
clc
test eax, 0x325e4379
xchg esp, eax
sbb dword [rdi], edi
mov ebx, cs
jp 0x14001ad2f
push rax
stosd dword [rdi], eax
mov dh, 0x41
js 0x14001adaa
scasd eax, dword [rdi]
pop rdi
mov ebp, 0x3ef603dc
invalid
neg al
cli
loop 0x14001adad
add eax, 0xa56ea681
out dx, eax
cdq
leave
jns 0x14001ae18
fild dword [rdx - 0x6a]
fild word [rsi + 0x2804bb8d]
jle 0x14001ade3
fdivr dword [rax + rcx*4 - 3]
mov word [rcx], ax
cli
pushfq
push qword [rcx + rdi*8 + 0x7a]
push rbp
popfq
mov word [rbp + 0x7cde9e74], fs
pmulhw mm7, qword ss:[rdi + rsi*8 - 2]
invalid
invalid
cmp esi, edi
invalid
Function at 0x140023770
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 0x14002383c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14002383c
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 0x140023855
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 0x14002382c
cmp byte [rax], 0x5c
jne 0x140023826
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140023826
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140023812
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140023823
test r8b, 0x10
jne 0x140023826
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140023826
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400273f0
test edi, edi
jne 0x140023790
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.140024d60
int3

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140027e94
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140027e80
ret
Function at 0x140032760
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140032791
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14003280b
mov rdi, r14
mov rcx, rbx
call fcn.140025730
test rax, rax
jle 0x1400327e3
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400ad140
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400327fb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140032803
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400327a5
sub r14, rdi
jmp 0x1400328ef
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140032822
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140032824
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140032856
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400ad140
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400328ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140032891
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 rbp, 0xfff
jbe 0x1400328cd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140097470
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400328ec
cmp rbp, rax
ja 0x1400328a0
test rbp, rbp
je 0x1400328ec
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140097470
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret