joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001ef0
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x14001a0d8]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rsi, qword [rbp + 0x270]
xor r15d, r15d
mov ebx, ecx
mov r14, rdx
lea rcx, [rbp - 0x68]
lea r8d, [r15 + 0x60]
xor edx, edx
mov edi, r15d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], 0x104
mov dword [rbp - 0x70], 0x68
call fcn.140009480
xor eax, eax
lea rdx, [rsp + 0x60]
mov ecx, ebx
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x140001f83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140002036
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov r8d, 1
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x140001faa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140002036
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
lea rdx, [rbp]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x140001fcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140002036
mov rcx, qword [rsp + 0x60]
lea rax, str.winsta0default
xor r9d, r9d
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x78]
mov r8, r14
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
xor edx, edx
mov qword [rsp + 0x48], rax
lea rax, [rbp]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8400
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140002030
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140002036
mov dword [rsi], 0x7d01
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000204b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r15
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002060
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov qword [rsp + 0x68], r15
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140002075
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], r15
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140002088
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x80], r15
test edi, edi
je 0x140002098
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000209d
mov eax, 1
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140004010
mov rbx, qword [rsp + 0x360]
add rsp, 0x320
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002410
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
lea rax, [rsp + 0x68]
mov rsi, rcx
lea rdx, str.SystemCurrentControlSetControlElantechOtherSetting
xor edi, edi
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400024ab
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, str.CustomerDefinition
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x20], rax
or ebx, 0xffffffff
mov dword [rsp + 0x50], 4
mov dword [rsp + 0x60], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400024a4
cmp dword [rsp + 0x50], 4
cmove ebx, dword [rsp + 0x58]
mov dword [rsi], ebx
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsi], 0xffffffff
setne dil
mov eax, edi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x1400024d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x68]
lea rdx, str.SystemCurrentControlSetControlElantechOtherSetting
xor edi, edi
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000256f
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, str.DisableAutoScreenOrientation
xor r8d, r8d
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x20], rax
or ebx, 0xffffffff
mov dword [rsp + 0x50], 4
mov dword [rsp + 0x60], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002564
cmp dword [rsp + 0x50], 4
cmove ebx, dword [rsp + 0x58]
mov dword [0x14001c868], ebx
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x14001c868], 0xffffffff
setne dil
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x140003570
Capabilities:
Create service
Persist via windows service

Disassembly:
sub rsp, 0x4b8
mov rax, qword [0x14001a0d8]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x208
mov dword [rsp + 0x70], 0x22
call fcn.140009480
lea rdx, [rsp + 0x290]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400035ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000424c
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140004010
add rsp, 0x4b8
ret
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x4c0], rbx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140003623
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000424c
jmp 0x140003725
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x80]
mov edx, 0x104
mov qword [rsp + 0x4b0], rdi
call fcn.140005058
lea r8, [rsp + 0x290]
lea rcx, [rsp + 0x80]
mov edx, 0x104
call fcn.140005058
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x80]
mov edx, 0x104
call fcn.140005058
xor ecx, ecx
lea rax, [0x140016320]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
lea r9d, [rcx + 4]
mov dword [rsp + 0x30], 1
lea r8, [0x140016328]
lea rdx, str.ETDService
mov rcx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x1400036f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000424c
jmp 0x140003706
lea rdx, str.ETDService
lea rcx, str._s_is_installed._n
call fcn.14000424c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x14000371d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x4b0]
mov rbx, qword [rsp + 0x4c0]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140004010
add rsp, 0x4b8
ret
Function at 0x140003750
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x14001a0d8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
xor edx, edx
xor ecx, ecx
lea r8d, [rax + 1]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x1400037b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000424c
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140004010
add rsp, 0x50
pop rdi
ret
lea rdx, str.ETDService
mov r8d, 0x10024
mov rcx, rax
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x1400037f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000424c
jmp 0x1400038cb
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140003895
lea rdx, str.ETDService
lea rcx, str.Stopping__s.
call fcn.14000424c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140003872
nop
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x140003876
lea rcx, [0x140017194]
call fcn.14000424c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140003840
mov eax, dword [rsp + 0x24]
lea rdx, str.ETDService
lea rcx, [0x140017198]
cmp eax, 1
je 0x140003890
lea rcx, str._n_s_failed_to_stop._n
call fcn.14000424c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400038b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000424c
jmp 0x1400038cb
lea rdx, str.ETDService
lea rcx, str._s_is_removed._n
call fcn.14000424c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x1400038e2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140004010
add rsp, 0x50
pop rdi
ret
Function at 0x140003b60
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
lea rdi, [rcx + 0x428]
lea rsi, [rcx + 0x420]
mov rbx, rcx
xor ebp, ebp
xor edx, edx
xor ecx, ecx
mov qword [rdi], rbp
mov qword [rsi], rbp
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
xor ecx, ecx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [rbx + 0x438], eax
test eax, eax
js 0x140003c62
lea r9, [0x1400162d0]
lea r8d, [rbp + 1]
lea rcx, [0x140016270]
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rbx + 0x438], eax
test eax, eax
js 0x140003c62
mov rcx, qword [rdi]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rbp
mov rax, qword [rcx]
mov qword [rsp + 0x30], rbp
lea rdx, str.rootwmi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [rax + 0x18]
mov dword [rbx + 0x438], eax
test eax, eax
js 0x140003c62
mov rcx, qword [rsi]
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
lea edx, [rbp + 0xa]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [rbx + 0x438], eax
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x422960
Capabilities:
Hash data using murmur3

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
cmp byte [0x008900e1], 0
jne 0x422ac5
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
sub rdx, qword [rbx + 0x18]
nop
test rdx, rdx
jne 0x422a6e
xor eax, eax
nop
nop
nop
mov rcx, rax
shr rax, 3
and rcx, 7
mov edx, 1
shl edx, cl
nop
add rax, qword [rbx + 0x50]
lock or byte [rax], dl
nop
nop
mov rcx, qword [rbx + 0x18]
nop
movabs rdx, 0x800000000000
lea rax, [rdx + rcx]
mov rdx, rax
shr rax, 0x2a
cmp rax, 0x40
jae 0x422aba
lea rbx, [0x008876a0]
mov rax, qword [rbx + rax*8]
shr rdx, 0x16
and rdx, 0xfffff
mov rdx, qword [rax + rdx*8]
test byte [rdx], al
test byte [rax], al
mov rax, rcx
shr rcx, 0x10
and rcx, 0x3f
movzx ebx, byte [rdx + rcx + 0x21040]
lea rdx, [rdx + rcx]
lea rdx, [rdx + 0x21040]
shr rax, 0xd
and rax, 7
mov rcx, rax
mov esi, 1
shl esi, cl
test sil, bl
jne 0x422a2f
lock or byte [rdx], sil
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
mov rax, qword [rax + 0xa0]
test byte [rax], al
mov rcx, qword [rsp + 0x30]
add qword [rax + 0x16a8], rcx
mov rcx, qword [rsp + 0x38]
add qword [rax + 0x16b0], rcx
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
cmp word [rbx + 0x5e], 0
je 0x422a8a
movzx ecx, byte [rbx + 0x65]
cmp cl, 0x40
sbb rax, rax
shr rdx, cl
and rax, rdx
jmp 0x422995
movzx ecx, byte [rbx + 0x65]
cmp cl, 0x40
sbb rax, rax
movzx esi, byte [rbx + 0x66]
cmp sil, 0x40
sbb rdi, rdi
shr rdx, cl
and rax, rdx
movzx edx, word [rbx + 0x5c]
imul rax, rdx
mov ecx, esi
shr rax, cl
and rax, rdi
jmp 0x422995
mov ecx, 0x40
nop
call fcn.0046a8c0
lea rax, [0x006b2f5b]
mov qword [rsp], rax
mov qword [rsp + 8], 0x2c
call fcn.004389a0
nop
int3
Function at 0x45b520
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x45b601
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x18], xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [0x00463360]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00468640
mov rax, qword [rsp + 8]
mov qword [rsp + 0x88], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
nop
ret
call fcn.004687a0
jmp fcn.0045b520
Function at 0x46a340
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [0x008904e0]
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 0x10]
lea rax, [rdx + rax*8]
xor rcx, rax
movabs rax, 0xea38ec9079f01541
imul rax, rcx
rol rax, 0x1f
movabs rcx, 0x2723a30d96da1399
imul rcx, rax
mov rax, rcx
shr rcx, 0x1d
xor rax, rcx
movabs rcx, 0x83cf8eadf876d2d7
imul rcx, rax
mov rax, rcx
shr rcx, 0x20
xor rax, rcx
mov qword [rsp + 0x18], rax
ret
cmp byte [0x008900e0], 0
je 0x46a37d
mov rax, qword [rsp + 8]
movq xmm0, qword [rsp + 0x10]
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00890780]
aesenc xmm0, xmmword [0x00890790]
aesenc xmm0, xmmword [0x008907a0]
movq qword [rsp + 0x18], xmm0
ret
jmp 0x40a460

Function at 0x4b3040
Capabilities:
Encode data using base64

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rdx + 8]
lea rsi, [rbx + 0x2e]
imul rsi, rsi, 0xffffffffffffffe4
movabs rax, 0x5816058160581606
mov rcx, rdx
imul rsi
sar rdx, 5
sar rsi, 0x3f
sub rdx, rsi
lea rsi, [rdx + 0x15c]
sar rsi, 0x3f
shr rsi, 0x3d
lea rdx, [rsi + rdx]
lea rdx, [rdx + 0x15c]
sar rdx, 3
cmp rdx, 0x57
jae 0x4b3119
lea rsi, [rdx + rdx*2]
lea rdi, [0x0082fe60]
mov r8, qword [rdi + rsi*8 + 8]
lea r9, [r8 + rbx]
lea r9, [r9 + 0x40]
cmp r9, 0xffffffffffffffc4
jge 0x4b30c2
inc rdx
nop
jmp 0x4b3098
cmp r9, 0xffffffffffffffe0
jle 0x4b30cd
dec rdx
jmp 0x4b3098
mov rbx, qword [rdi + rsi*8]
mov rax, qword [rcx]
mov rsi, rdx
mul rbx
shr rax, 0x3f
add rdx, rax
mov qword [rcx], rdx
mov rdx, qword [rcx + 8]
lea rdx, [rdx + r8]
lea rdx, [rdx + 0x40]
mov qword [rcx + 8], rdx
mov rcx, rsi
shl rsi, 3
lea rdx, [rsi - 0x15c]
neg rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rax, rdx
mov ecx, 0x57
call fcn.0046a8a0
nop
int3
Function at 0x5348a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x5349e6
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x5349ad
mov rdx, qword [rsp + 0x38]
nop dword [rax + rax]
cmp rcx, rdx
ja 0x5349e0
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x40]
cmp rdx, rbx
jne 0x534974
mov rsi, qword [rsp + 0x20]
movzx edi, byte [rsi + 0x400]
movzx r8d, byte [rsi + 0x401]
lea rax, [rcx - 1]
mov r9, qword [rsp + 0x30]
cmp rax, r9
jae 0x5349b7
xor eax, eax
jmp 0x534957
movzx r9d, byte [rbx + rax]
inc edi
movzx r10d, dil
mov r11d, dword [rsi + r10*4]
add r8d, r11d
movzx r12d, r8b
mov r13d, dword [rsi + r12*4]
mov dword [rsi + r10*4], r13d
mov dword [rsi + r12*4], r11d
lea r10d, [r11 + r13]
movzx r10d, r10b
xor r9d, dword [rsi + r10*4]
mov byte [rdx + rax], r9b
inc rax
cmp rax, rcx
jl 0x534922
mov byte [rsi + 0x400], dil
mov byte [rsi + 0x401], r8b
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
nop
mov rsi, rdx
lea rdi, [rbx + rcx]
lea rdi, [rdi - 1]
cmp rdx, rdi
ja 0x5349a5
mov rdx, rbx
lea rdi, [rcx + rsi]
lea rdi, [rdi - 1]
cmp rbx, rdi
jbe 0x5349bf
mov rbx, rdx
mov rdx, rsi
nop dword [rax + rax]
jmp 0x5348f8
mov rdx, rsi
jmp 0x5348f8
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, r9
call fcn.0046a8a0
lea rax, [0x00656380]
mov qword [rsp], rax
lea rax, [0x006f42e0]
mov qword [rsp + 8], rax
call fcn.004380a0
nop dword [rax + rax]
call fcn.0046a920
nop
call fcn.004687a0
jmp fcn.005348a0
Function at 0x560fe0
Capabilities:
Parse credit card information

Disassembly:
movzx eax, byte [rsp + 8]
lea ecx, [rax - 0x61]
cmp cl, 0x19
ja 0x560ff3
mov byte [rsp + 0x18], 0
ret
lea ecx, [rax - 0x41]
cmp cl, 0x19
jbe 0x560fed
lea ecx, [rax - 0x30]
nop
cmp cl, 9
jbe 0x560fed
mov rcx, qword [rsp + 0x10]
cmp rcx, 3
jne 0x561180
cmp al, 0x2c
ja 0x561156
lea edx, [rax - 0x21]
nop
cmp dl, 1
ja 0x56102b
mov byte [rsp + 0x18], 0
ret
cmp al, 0x24
je 0x561025
cmp al, 0x26
jae 0x561025
cmp al, 0x2f
ja 0x561118
nop dword [rax + rax]
cmp al, 0x26
ja 0x5610f1
cmp al, 0x24
jne 0x5610e7
cmp rcx, 2
jg 0x5610a9
cmp rcx, 1
je 0x5610a1
nop dword [rax]
cmp rcx, 2
jne 0x561083
cmp al, 0x2f
jne 0x561074
mov eax, 1
mov byte [rsp + 0x18], al
ret
cmp al, 0x3b
je 0x56106a
cmp al, 0x2c
je 0x56106a
cmp al, 0x3f
sete al
jmp 0x56106f
cmp rcx, 7
jne 0x56109a
cmp al, 0x21
jne 0x561093
mov byte [rsp + 0x18], 0
ret
add eax, 0xffffffd8
cmp al, 2
jbe 0x56108d
mov byte [rsp + 0x18], 1
nop
ret
cmp al, 0x3f
sete byte [rsp + 0x18]
ret
cmp rcx, 5
jne 0x5610cf
cmp al, 0x40
jne 0x5610c0
mov eax, 1
mov byte [rsp + 0x18], al
ret
cmp al, 0x2f
je 0x5610b3
cmp al, 0x3f
je 0x5610b3
cmp al, 0x3a
sete al
jmp 0x5610b8
cmp rcx, 6
je 0x5610e1
cmp rcx, 7
jne 0x561083
mov byte [rsp + 0x18], 0
ret
mov byte [rsp + 0x18], 1
ret
cmp al, 0x26
je 0x561050
jmp 0x561083
lea edx, [rax - 0x2b]
cmp dl, 1
jbe 0x561050
lea edx, [rax - 0x2d]
cmp dl, 1
ja 0x56110b
mov byte [rsp + 0x18], 0
ret
cmp al, 0x2f
je 0x561050
jmp 0x561083
cmp al, 0x3d
ja 0x561136
lea edx, [rax - 0x3a]
nop
cmp dl, 1
jbe 0x561050
cmp al, 0x3d
je 0x561050
jmp 0x561083
lea edx, [rax - 0x3f]
nop dword [rax]
cmp dl, 1
jbe 0x561050
cmp al, 0x5f
je 0x561105
cmp al, 0x7e
je 0x561105
jmp 0x561083
lea edx, [rax - 0x3a]
nop dword [rax]
cmp dl, 4
jbe 0x561025
cmp al, 0x5b
je 0x561025
cmp al, 0x5d
je 0x561025
jmp 0x561033
cmp rcx, 4
je 0x561014
jmp 0x561033
Function at 0x1400037d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x1400037fb
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140003802
mov al, 1
jmp 0x14000394b
call fcn.14000432c
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov dword [rsp + 0x38], eax
call fcn.14000432c
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x3c]
call fcn.140004334
movzx eax, al
test eax, eax
je 0x140003853
xor al, al
jmp 0x14000394b
mov qword [rsp + 0x58], 0x20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400038b9
cmp dword [rsp + 0x30], 1
je 0x1400038c5
cmp dword [rsp + 0x30], 3
je 0x140003939
jmp 0x140003949
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x140003911
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x40], rax
je 0x140003911
xor al, al
jmp 0x14000394b
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000392b
mov dword [rsp + 0x34], 1
jmp 0x140003933
mov dword [rsp + 0x34], 0
mov al, byte [rsp + 0x34]
jmp 0x14000394b
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000394b
xor al, al
add rsp, 0x98
ret
Function at 0x140005314
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x70], 0
jg 0x140005336
xor eax, eax
jmp 0x1400054df
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x14000535c
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x1400054df
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x1400053f5
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140002580
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.14000428c
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x1400054cf
mov rcx, qword [rsp + 0x60]
call fcn.140003d64
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x140005496
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x140005494
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x1400054df
jmp 0x14000541b
cmp qword [rsp + 0x20], 0
jbe 0x1400054cf
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x58
ret