joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001f0b0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x180060928]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18001f113
mov qword [rsp], rbx
lea rbx, [0x180053150]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001f0f3
cmp byte [r8], r9b
jne 0x18001f0f3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x18001f0e0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f40]
not eax
mov r8, qword [r10 + 0x5f48]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x18001f13f
cmp dword [r8 + 8], eax
je 0x18001f146
add r8, 0x48
cmp r8, rcx
jne 0x18001f130
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x180048380
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x180060040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x180060928]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18004859e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18004859e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x180060928]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x180048454
movsx rdx, word [r8 + 0x60a8]
lea rax, [r8 + 0x60ac]
mov r9d, dword [r8 + 0x3f60]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x180048449
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60a8], cx
movsx rax, cx
lea rax, [rax*8 + 0x60ac]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x60a0]
test rdi, rdi
je 0x180048471
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x180048474
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x180058378]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x1800484b7
mov rsi, qword [r8 + 0x90]
jmp 0x1800484ba
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1800484e5
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x180060928]
mov rcx, qword [rax + 0x4b00]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x18004855e
inc rbx
cmp rbx, 5
jl 0x180048540
jmp 0x18004858a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x1800485a0
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18004ee60
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x18004aa20
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
je 0x18004aa30
xor eax, eax
add rsp, 0x38
ret
xor eax, eax
lea r8, [0x18004a9a0]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x18004cf90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13e8
call fcn.18004fe30
sub rsp, rax
movaps xmmword [rsp + 0x13d0], xmm6
movaps xmmword [rsp + 0x13c0], xmm7
mov rax, qword [0x180060040]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
movaps xmm6, xmm1
movaps xmm7, xmm0
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
mov r9d, 0x270
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, r9
jb 0x18004cff0
mov dword [rsp + 0x20], r9d
lea r8, [rsp + 0x28]
xorps xmm1, xmm1
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x18004d020
mov eax, dword [rsp + 0x20]
subss xmm6, xmm7
xorps xmm0, xmm0
mov ecx, dword [rsp + rax*4 + 0x24]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2ss xmm0, rax
subss xmm0, xmm1
addss xmm0, xmm1
mulss xmm0, dword [0x1800587c8]
mulss xmm0, xmm6
addss xmm0, xmm7
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.18004ee60
movaps xmm6, xmmword [rsp + 0x13d0]
movaps xmm7, xmmword [rsp + 0x13c0]
add rsp, 0x13e8
ret

Function at 0x18004d240
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x18004d31b
nop dword [rax]
cmp rbx, qword [section..data]
jb 0x18004d28e
cmp rbx, qword [0x180060008]
ja 0x18004d28e
sub rbx, 0x8000000
jmp 0x18004d312
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004d31b
cmp dword [rsp + 0x40], 0x10000
jne 0x18004d2f6
cmp qword [rsp + 0x38], 0x10000
jb 0x18004d2f6
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18004d31d
sub rbx, 0x10000
jmp 0x18004d312
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x18004d270
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x18004d330
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x18004d352
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x18004d40d
nop dword [rax + rax]
cmp rbx, qword [section..data]
jb 0x18004d37e
cmp rbx, qword [0x180060008]
ja 0x18004d37e
add rbx, 0x8000000
jmp 0x18004d404
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004d40d
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x18004d3e9
cmp rcx, 0x10000
jb 0x18004d3e9
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18004d40f
add rbx, 0x10000
jmp 0x18004d404
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x18004d404
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x18004d360
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x18004d420
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x18004d442
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x18004d45e
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x18004d475
cmp byte [rcx + 1], 0x25
jne 0x18004d4b9
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x18004d481
cmp al, 0xe9
jne 0x18004d4b9
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x18004d4a4
cmp rcx, 0xffffffff80000000
jae 0x18004d49b
lea rsi, [rcx + 0x7ff80000]
jmp 0x18004d4b9
mov rsi, 0xfffffffffff80000
jmp 0x18004d4b9
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x18004d4b9
mov edi, 0x80000
mov rdx, qword [0x1800602c8]
mov rax, qword [0x1800602c0]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x18004d4e0
test rax, rax
je 0x18004d4f7
mov rdx, rax
mov qword [0x1800602c8], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x18004d4f7
cmp rcx, rdi
jb 0x18004d4f7
cmp rcx, rsi
jbe 0x18004d64a
mov qword [0x1800602c8], rax
mov rdx, rax
test rax, rax
je 0x18004d542
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x18004d52c
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x18004d52c
cmp rax, rdi
jb 0x18004d52c
cmp rax, rsi
jbe 0x18004d64a
mov rdx, qword [rdx + 8]
mov qword [0x1800602c8], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x18004d510
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x18004d56c
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.18004d240
mov rdx, rax
test rax, rax
jne 0x18004d5f8
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x18004d592
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.18004d330
mov rdx, rax
test rax, rax
jne 0x18004d5f8
cmp rbx, 0x40000000
jbe 0x18004d5b2
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.18004d330
mov rdx, rax
test rax, rax
jne 0x18004d5f8
cmp rbx, rbp
jae 0x18004d5ce
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.18004d240
mov rdx, rax
test rax, rax
jne 0x18004d5f8
mov rdx, rbx
mov rcx, rdi
call fcn.18004d240
mov rdx, rax
test rax, rax
jne 0x18004d5f8
mov rdx, rsi
mov rcx, rbx
call fcn.18004d330
mov rdx, rax
test rax, rax
je 0x18004d681
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x1800602c8], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x1800602c0]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x1800602c0], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x18004d632
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x18004d681
cmp rax, rsi
ja 0x18004d681
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x1800517f0]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x18004d683
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18004d8e0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x18004d90e
xor al, al
jmp 0x18004d950
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x18004d91f
xor al, al
jmp 0x18004d950
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x18004d946
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x18004d946
mov al, 1
jmp 0x18004d950
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x18004de30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x28
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1800602d8], eax
je 0x18004de57
mov eax, 0x10dd
add rsp, 0x28
pop rsi
pop rbp
ret
mov eax, dword [0x1800602dc]
test eax, eax
jne 0x18004df93
test rbp, rbp
jne 0x18004de74
lea eax, [rbp + 0x57]
add rsp, 0x28
pop rsi
pop rbp
ret
test rsi, rsi
je 0x18004de90
cmp qword [rsi], 0
jne 0x18004de9c
mov dword [0x1800602dc], 6
mov qword [0x1800602e0], rsi
mov eax, 6
add rsp, 0x28
pop rsi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov ecx, 0x30
mov qword [rsp + 0x20], rdi
call fcn.18004ee80
mov rdi, rax
test rax, rax
jne 0x18004dec0
lea ebx, [rax + 8]
jmp 0x18004df68
mov rcx, qword [rsi]
xor edx, edx
call fcn.18004dd80
xor edx, edx
mov rcx, rbp
mov rbx, rax
call fcn.18004dd80
movzx edx, byte [rbx + 0x3e]
mov rbp, qword [rbx + 0x48]
sub rbp, rdx
test dl, dl
je 0x18004df5a
cmp rdx, 0x1e
ja 0x18004df5a
cmp qword [rbx + 0x50], rax
jne 0x18004df5a
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18004df1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18004df68
mov qword [rdi + 0x20], rbx
mov rbx, qword [rsp + 0x40]
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbp
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x28], eax
mov rax, qword [0x1800602f0]
mov qword [rdi], rax
xor eax, eax
mov qword [0x1800602f0], rdi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbp
ret
cmp dword [0x1800602d0], 0
mov ebx, 9
jne 0x18004df73
mov dword [0x1800602dc], ebx
test rdi, rdi
je 0x18004df80
mov edx, 0x30
mov rcx, rdi
call fcn.18004f234
mov rdi, qword [rsp + 0x20]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov qword [0x1800602e0], rsi
add rsp, 0x28
pop rsi
pop rbp
ret

Function at 0x18004dfa0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x1800602d8], 0
jne 0x18004e047
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x1800602d8], ecx
jne 0x18004e047
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x1800602c0]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x1800602f0], rdi
mov qword [0x1800602e8], rdi
mov qword [0x1800602e0], rdi
test rbx, rbx
je 0x18004e030
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18004e028
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x18004e000
jmp 0x18004e030
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x1800602dc], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x18004e660
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x1800602dc]
mov rdi, rcx
test eax, eax
jne 0x18004e703
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x18004e68a
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.18004ee80
mov rbx, rax
test rax, rax
jne 0x18004e6a6
lea edi, [rax + 8]
jmp 0x18004e6c9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x18004e6e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.18004f234
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x1800602dc], edi
mov qword [0x1800602e0], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x1800602e8]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x1800602e8], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000dbd8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14002aa00], eax
call fcn.14000e220
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x14002aa00], 0
jne case.default.0x14000dc2e
mov ecx, 1
call fcn.14000e220
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
sahf
adc eax, 0xe8356e29
pop rsi
invalid

Function at 0x140010d58
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x14002a400]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rsi, r8
xor ebx, ebx
mov qword [r8], rbx
mov r14d, 0x104
mov r8, rcx
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140010bd8
lea r8, [0x14001ed08]
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140010ad4
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140010e0d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140010f01
mov rcx, qword [rbp + 0x178]
lea r8, [0x14001eca4]
lea edx, [r14 - 0x3b]
call fcn.140007f90
mov ebx, eax
jmp 0x140010f01
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], ebx
mov rcx, rax
mov dword [rsp + 0x20], ebx
call fcn.14000fe3c
mov edi, eax
test eax, eax
jns 0x140010e4a
mov rcx, qword [rbp + 0x178]
lea r8, [0x14001eca4]
mov r9d, eax
mov edx, 0xcf
call fcn.140008710
mov ebx, edi
jmp 0x140010f01
lea r8, [0x14001ed10]
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140010ad4
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x140010ea6
mov rcx, qword [rbp + 0x178]
lea r8, [0x14001eca4]
mov edx, 0xd5
call fcn.140007f90
lea rcx, [rsp + 0x28]
mov ebx, eax
call fcn.14000a844
jmp 0x140010f01
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14000fe3c
mov edi, eax
test eax, eax
jns 0x140010ee3
mov rcx, qword [rbp + 0x178]
lea r8, [0x14001eca4]
mov r9d, eax
mov edx, 0xd7
call fcn.140008710
lea rcx, [rsp + 0x28]
call fcn.14000a844
jmp 0x140010e43
lea rcx, [rsp + 0x28]
call fcn.14000a844
movsxd rdx, dword [rsp + 0x20]
movsxd rcx, dword [rsp + 0x24]
shl rdx, 0x1f
or rcx, rdx
mov qword [rsi], rcx
lea rcx, [rsp + 0x30]
call fcn.14000a844
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14000dbb0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x2fc4ca3a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cada2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4cae3a
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4cae1e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cae12
cmp qword [rbp - 0x10], 0
je 0x2fc4cae12
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cadd8
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cae3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4caf40
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4caf68
mov eax, 0
jmp 0x2fc4cafb6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4caf91
mov eax, 0
jmp 0x2fc4cafb6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cafb1
mov eax, 0
jmp 0x2fc4cafb6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cafbc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cb03a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb031
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cb031
mov rax, qword [rbp - 8]
jmp 0x2fc4cb04f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cb004
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x18003b380
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 0x18003b44c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x18003b44c
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 0x18003b465
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 0x18003b43c
cmp byte [rax], 0x5c
jne 0x18003b436
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x18003b436
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x18003b422
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x18003b433
test r8b, 0x10
jne 0x18003b436
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x18003b436
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.18003e760
test edi, edi
jne 0x18003b3a0
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.18003c7a0
int3