joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026260
Capabilities:
Set file attributes

Disassembly:
push rbx
push rbp
push rdi
push r15
sub rsp, 0xa8
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor dil, dil
mov r15d, r8d
mov ebp, edx
mov rbx, rcx
cmp edx, 0xffffffff
je 0x140026437
mov rax, qword [rcx + 0x18]
test edx, 0xffff0000
jne 0x1400262bc
cmp rax, 7
jbe 0x1400262a8
mov rbx, qword [rcx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
sete al
jmp 0x14002643b
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xa0], r12
xor r12d, r12d
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
cmp rax, 7
jbe 0x1400262ef
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x38], rax
xor r9d, r9d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
mov r13d, 4
mov r8d, r13d
mov qword [rsp + 0x20], r12
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x1400263ec
mov ecx, r15d
and ecx, 0xf
call fcn.140026060
mov r14, rax
test rax, rax
je 0x1400263f7
mov r8, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov ecx, 1
mov qword [rsp + 0x78], 5
xorps xmm0, xmm0
mov dword [rsp + 0x58], ebp
bt r15d, 8
mov dword [rsp + 0x60], 3
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x74], r12d
cmovb ecx, r13d
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x5c], ecx
lea ecx, [rsi + 1]
movdqu xmmword [rsp + 0x64], xmm0
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1400263df
cmp qword [rbx + 0x18], 7
jbe 0x1400263b5
mov rbx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
mov r8d, r13d
mov rcx, rbx
mov qword [rsp + 0x20], r12
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
mov esi, eax
sete dil
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x1400263f7
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor dil, dil
mov rcx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x90]
mov r13, qword [rsp + 0x98]
mov r12, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xe8]
test rcx, rcx
je 0x140026427
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140026437
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, dil
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401219d0
add rsp, 0xa8
pop r15
pop rdi
pop rbp
pop rbx
ret
Function at 0x140026750
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 7
mov rbx, rcx
jbe 0x140026763
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400267a1
xor r8d, r8d
mov edx, 0x80
mov rcx, rbx
call fcn.140026260
mov edx, dword [0x1401c73d0]
xor r8d, r8d
mov rcx, rbx
call fcn.140026260
cmp qword [rbx + 0x18], 7
jbe 0x140026798
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete al
add rsp, 0x20
pop rbx
ret
Function at 0x1400267d0
Capabilities:
Check if file exists
Get disk size
Get file attributes
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
mov rbx, 0xffffffffffffffff
mov qword [rbp + 0x1f], rbx
cmp qword [rcx + 0x18], 7
jbe 0x140026812
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140026825
test al, 0x10
je 0x140026825
mov al, 1
jmp 0x140026827
xor al, al
mov rcx, rdi
test al, al
je 0x1400269cc
xor esi, esi
mov qword [rbp + 0x1f], rsi
lea rdx, [rbp + 0x27]
call fcn.140025270
nop
mov rdx, rdi
lea rcx, [rbp + 0x27]
call fcn.140022710
test eax, eax
jne 0x140026880
mov qword [rbp + 0x17], rsi
lea rcx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 7
cmova rcx, qword [rbp + 0x27]
xor r9d, r9d
lea r8, [rbp + 0x17]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rax, qword [rbp + 0x17]
mov qword [rbp + 0x1f], rax
jmp 0x14002699a
lea rax, [rbp + 0x1f]
mov qword [rbp - 0x31], rax
mov dword [rbp - 0x29], 1
lea rax, [0x1400267b0]
mov qword [rbp - 0x39], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov byte [rbp - 0x11], 0
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140023ba0
mov byte [rbp - 0x11], 1
cmp qword [rdi + 0x18], 7
jbe 0x1400268c2
mov rdi, qword [rdi]
lea rdx, [0x140190230]
test rdi, rdi
cmovne rdx, rdi
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
nop
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1400268e0
mov r8, rbx
lea rcx, [rbp - 9]
call fcn.14000c0c0
nop
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x39]
call fcn.140026f60
nop
lea rcx, [rbp - 9]
call fcn.140009810
nop
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x140026934
cmp byte [rbp - 0x11], 0
je 0x140026930
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax + 8]
call qword [case.0x14000aed8.0]
mov qword [rbp - 0x21], rsi
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140026959
cmp byte [rbp - 0x11], 0
je 0x140026955
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax + 8]
call qword [case.0x14000aed8.0]
mov qword [rbp - 0x19], rsi
mov byte [rbp - 0x11], 0
cmp dword [rbp - 0x29], 3
jne 0x14002699a
mov rbx, qword [rbp - 0x39]
test rbx, rbx
je 0x14002699a
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14002698c
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x14000aed8.0]
mov qword [rbx + 0x38], rsi
mov edx, 0x40
mov rcx, rbx
call fcn.1401219f0
nop
lea rcx, [rbp + 0x27]
call fcn.140009810
mov rax, qword [rbp + 0x1f]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1401219d0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
xor edx, edx
call fcn.140026c60
mov rbx, rax
test rax, rax
je 0x1400269a3
xor esi, esi
mov qword [rbp + 0x17], rsi
lea rdx, [rbp + 0x17]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x17]
jmp 0x1400269a7
Function at 0x140026a00
Capabilities:
Check if file exists
Create directory
Get file attributes
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
movzx edi, r8b
mov rbx, rdx
mov rsi, rcx
call fcn.140022710
test eax, eax
jne 0x140026a34
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
test dil, dil
je 0x140026a5f
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140026a46
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140026a5f
xor r8d, r8d
movzx edx, al
mov rcx, rbx
call fcn.1400222b0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400248f0
mov rdi, rax
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x140026a7c
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [rdi + 0x18]
cmp eax, 1
jne 0x140026a9f
cmp rcx, 7
jbe 0x140026a94
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x140026acc
mov rdx, rdi
cmp rcx, 7
jbe 0x140026aab
mov rdx, qword [rdi]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x140026acc
xor r8d, r8d
mov edx, dword [0x1401c73d0]
mov rcx, rdi
call fcn.140026260
nop
lea rcx, [rsp + 0x20]
call fcn.140009810
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140026ae3
mov rdx, qword [rbx]
cmp qword [rsi + 0x18], 7
jbe 0x140026aed
mov rsi, qword [rsi]
mov r8d, 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
test eax, eax
je 0x140026b17
xor r8d, r8d
mov edx, dword [0x1401c73d0]
mov rcx, rbx
call fcn.140026260
movzx eax, dil
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140026b30
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
call fcn.140022710
test eax, eax
jne 0x140026b60
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140026b6d
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x140026b8a
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400248f0
mov rbx, rax
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x140026ba7
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [rbx + 0x18]
cmp eax, 1
jne 0x140026bca
cmp rcx, 7
jbe 0x140026bbf
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x140026bf7
mov rdx, rbx
cmp rcx, 7
jbe 0x140026bd6
mov rdx, qword [rbx]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x140026bf7
xor r8d, r8d
mov edx, dword [0x1401c73d0]
mov rcx, rbx
call fcn.140026260
nop
lea rcx, [rsp + 0x20]
call fcn.140009810
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140026c0e
mov rdx, qword [rsi]
cmp qword [rdi + 0x18], 7
jbe 0x140026c18
mov rdi, qword [rdi]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
test eax, eax
je 0x140026c3e
xor r8d, r8d
mov edx, dword [0x1401c73d0]
mov rcx, rsi
call fcn.140026260
movzx eax, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140026e10
Capabilities:
Get file version info

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov r14, rcx
cmp qword [rcx + 0x18], 7
mov dword [rsp + 0x28], esi
jbe 0x140026e3c
mov rcx, qword [rcx]
mov qword [rsp + 0x80], rbp
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x88], rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r15d, eax
test eax, eax
je 0x140026f27
mov qword [rsp + 0x78], rbx
lfence
mov ecx, r15d
call fcn.14000d5f0
mov r8d, r15d
xor edx, edx
mov rcx, rax
mov rdi, rax
lea rbp, [rax + r15]
call fcn.140152f80
cmp qword [r14 + 0x18], 7
mov rbx, qword [rsp + 0x78]
jbe 0x140026e95
mov r14, qword [r14]
mov edx, dword [rsp + 0x28]
mov r9, rdi
mov r8d, r15d
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140026ef3
lea r9, [rsp + 0x2c]
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x20]
mov dword [rsp + 0x2c], esi
lea rdx, [0x140190aec]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140026ef3
cmp dword [rsp + 0x2c], esi
je 0x140026ef3
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0xfeef04bd
jne 0x140026ef3
mov esi, dword [rax + 8]
mov eax, dword [rax + 0xc]
shl rsi, 0x20
or rsi, rax
test rdi, rdi
je 0x140026f27
sub rbp, rdi
cmp rbp, 0x1000
jb 0x140026f1c
mov rcx, qword [rdi - 8]
add rbp, 0x27
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x140026f51
mov rdi, rcx
mov rdx, rbp
mov rcx, rdi
call fcn.1401219f0
mov rdi, qword [rsp + 0x88]
mov rax, rsi
mov rbp, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401219d0
add rsp, 0x50
pop r15
pop r14
pop rsi
ret
call fcn.14012dcf0
int3
Function at 0x14002b160
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
test rcx, rcx
jg 0x14002b170
xor al, al
add rsp, 0x28
ret
xor edx, edx
mov qword [rsp + 0x20], rdi
mov r8d, ecx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x14002b1a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x20]
xor al, al
add rsp, 0x28
ret
mov edx, 1
mov qword [rsp + 0x30], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
mov rcx, rdi
setne bl
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x20]
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x14002b760
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 7
mov word [rcx], r14w
mov dword [rsp + 0x20], 1
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.140152f80
mov word [rsp + 0x60], r14w
mov r8d, esi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x14002b838
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14002b8a8
mov r8d, esi
xor edx, edx
mov ecx, 0x1010
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x14002b838
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14002b8a8
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rbx, rbx
je 0x14002b8a8
mov r9d, 0x104
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x14002b89f
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x14002b89f
mov dword [rsp + 0x50], 0x104
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x60]
lea edx, [rax + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
lea rcx, [rsp + 0x60]
call fcn.140029450
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14002b8d0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.14000c0c0
nop
lea rax, [rsp + 0x28]
cmp rdi, rax
je 0x14002b914
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 7
cmova rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rdi
call fcn.14000a690
nop
lea rcx, [rsp + 0x28]
call fcn.140009810
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1401219d0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14002cc20
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0
lea rax, [rsp + 0x60]
mov word [rsp + 0x6c], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x48], ebx
xor r9d, r9d
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x12]
mov dword [rsp + 0x38], ebx
mov dl, 1
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x70], eax
test eax, eax
je 0x14002ccb7
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14002cca6
mov dword [rsp + 0x70], ebx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x70]
test eax, eax
setne al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401219d0
add rsp, 0x80
pop rbx
ret

Function at 0x14002e000
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor edi, edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
mov byte [rcx + 0x20], dil
mov qword [rcx + 0x28], rdi
test rdx, rdx
je 0x14002e16b
cmp word [rdx], di
je 0x14002e16b
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14002e060
lea rcx, [rsp + 0x20]
call fcn.14000c0c0
nop
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14002e089
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbx + 0x20], 0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14002e098
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x28], rdi
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14002e0a9
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdi
mov word [rax], di
lea rax, [rsp + 0x20]
cmp rbx, rax
je 0x14002e0d8
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
mov rcx, rbx
call fcn.14000a690
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova r8, qword [rsp + 0x20]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002e155
cmp eax, 5
je 0x14002e112
cmp eax, 0xb7
je 0x14002e134
jmp 0x14002e160
lea r8, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova r8, qword [rsp + 0x20]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [rbx + 0x28], rax
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14002e160
cmp byte [rbx + 0x20], 0
jne 0x14002e160
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete al
mov byte [rbx + 0x20], al
jmp 0x14002e160
cmp qword [rbx + 0x28], 0
je 0x14002e160
mov byte [rbx + 0x20], 1
lea rcx, [rsp + 0x20]
call fcn.140009810
nop
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14002e810
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rdx
mov rbx, qword [rcx + 8]
cmp qword [rdx], 0
je 0x14002e8c9
test rbx, rbx
jne 0x14002e8c9
mov dword [rcx + 0x20], 0xfffffffe
mov qword [rcx + 8], 0xffffffffffffffff
lea ecx, [rbx + 0x28]
call fcn.1401219f8
mov qword [rsp + 0x38], rax
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
mov qword [rax], rbx
mov qword [rax + 0x18], rbx
mov qword [rsi + 0x10], rax
mov qword [rax + 0x20], rsi
mov rdx, rdi
mov rcx, qword [rsi + 0x10]
call fcn.14002ef40
mov rax, qword [rsi + 0x10]
mov qword [rax + 0x18], rbx
mov dword [rsp + 0x40], ebx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9, qword [rsi + 0x10]
lea r8, [0x14002e900]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0x18], rax
mov ebx, dword [rsp + 0x40]
mov qword [rsi + 8], rbx
mov rcx, rdi
call fcn.14001cb50
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401219d0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140039dd0
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 0x140039e9c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140039e9c
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 0x140039eb5
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 0x140039e8c
cmp byte [rax], 0x5c
jne 0x140039e86
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140039e86
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140039e72
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140039e83
test r8b, 0x10
jne 0x140039e86
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140039e86
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400333e0
test edi, edi
jne 0x140039df0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400333d0
int3

Function at 0x14003ae10
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14003aef3
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14003aef3
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 0x14003af11
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 0x14003aee3
cmp word [rax], 0x5c
jne 0x14003aedc
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x14003aedc
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14003aec7
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x14003aed9
test r8b, 0x10
jne 0x14003aedc
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x14003aedc
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.140033a50
test edi, edi
jne 0x14003ae40
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400333d0
int3