joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140053ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x140054058
movzx edx, byte [rax]
nop
test edx, edx
jne 0x140053f1c
test r8b, r8b
jne 0x140053f1c
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x140053f2f
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x140054018
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x140054006
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x140053ffc
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x140053f83
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x140053fc6
mov eax, 1
cmp rax, rbx
ja 0x140053fb5
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.1400668a0
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x140053ff4
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x140053fbd
mov r8d, eax
mov eax, r10d
jmp 0x140053f88
mov rcx, rbx
call fcn.1400667e0
xor eax, eax
mov rcx, rax
call fcn.1400667e0
mov eax, r8d
mov rcx, rbx
call fcn.1400668a0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x14005404e
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x140054011
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x140053f35
mov eax, edx
mov rcx, rbx
call fcn.1400667e0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.1400667e0
nop
int3
Function at 0x14005bd00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14005bdbb
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x14005be00]
mov qword [rsp + 0x10], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.140063fa0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.1400640e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.14005bd00
Function at 0x140066260
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x140ee5f80]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x140ee5352], 0
je 0x140066296
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x140ee63e0]
aesenc xmm0, xmmword [0x140ee63f0]
aesenc xmm0, xmmword [0x140ee6400]
movq rax, xmm0
ret
jmp 0x14000ac00
Function at 0x14041f0d5
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1410f3108]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1410f3104]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x14041f123
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14041f11b
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14041f20c
inc ebx
add rax, 0x28
jmp 0x14041f0fb
mov rcx, r12
call fcn.14041f945
mov rbp, rax
test rax, rax
jne 0x14041f142
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14041f070
movsxd rbx, ebx
mov rax, qword [0x1410f3108]
imul rbx, rbx, 0x28
add rax, rbx
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.14041f9f5
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1410f3108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
jne 0x14041f1a6
mov rax, qword [0x1410f3108]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14041f070
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14041f206
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14041f206
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1410f3108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x14041f206
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14041f070
inc dword [0x1410f3104]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14041f660
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
lea r13, [0x1410f3160]
mov rcx, r13
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x1410f3140]
test rbx, rbx
je 0x14041f6ae
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r12, rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x14041f6a8
test r12, r12
je 0x14041f6a8
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x14041f680
mov rcx, r13
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]

Function at 0x14041f870
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14041f893
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14041f893
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14041f894
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r9d, r8d
jbe 0x14041f8ce
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp r10, rdx
ja 0x14041f8c5
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x14041f8d0
inc r8d
add rax, 0x28
jmp 0x14041f8ac
xor eax, eax
ret
Function at 0x14041f945
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14095f1b0]
mov r8, rcx
mov rcx, r9
call fcn.14041f870
test eax, eax
je 0x14041f971
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.14041f894
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000a690
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov dword [rsp + 0x34], eax
mov rbx, rdx
mov dword [rsp + 0x30], esi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
lea r8d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0xf
mov rdx, rbx
jbe 0x14000a6dc
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14000a72a
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000a725
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000a749
mov rcx, r8
call fcn.14002f600
mov qword [rbx + 0x10], rsi
mov byte [rbx], sil
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14003642c
int3

Function at 0x14000a750
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x30], esi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
add eax, eax
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 4]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 7
mov rdx, rbx
mov r8, qword [rbx + 0x10]
jbe 0x14000a7a2
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
add r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x14000a7f4
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000a7ef
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000a813
mov rcx, r8
call fcn.14002f600
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], 7
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14003642c
int3
Function at 0x14000c750
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140070040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, r9
mov r13, r8
mov rbp, rdx
mov qword [rsp + 0x38], rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
mov rbx, qword [rsp + 0xe0]
xor edi, edi
cmp qword [rcx + 0x18], 7
jbe 0x14000c79a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000c7ce
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rdi
mov qword [rbp + 0x18], rdi
mov r8d, 0x19
lea rdx, str.Error:_Ini_File_Not_Exist
mov rcx, rbp
call fcn.140002680
jmp 0x14000c904
mov ebp, 1
mov ecx, 0x208
call fcn.14002f8b0
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdi, 0xffffffffffffffff
mov r15d, 0x104
nop dword [rax + rax]
mov rax, r14
cmp qword [r14 + 0x18], 7
jbe 0x14000c81d
mov rax, qword [r14]
mov r8, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14000c82a
mov r8, qword [rbx]
mov rdx, r12
cmp qword [r12 + 0x18], 7
jbe 0x14000c839
mov rdx, qword [r12]
mov rcx, r13
cmp qword [r13 + 0x18], 7
jbe 0x14000c847
mov rcx, qword [r13]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r15 - 1]
cmp eax, ecx
jb 0x14000c8c8
mov r8, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14000c86f
mov r8, qword [rbx]
mov rax, rsi
sub r8, rsi
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000c894
add rax, 2
test ecx, ecx
jne 0x14000c880
test edx, edx
je 0x14000c8c8
mov rcx, rsi
call fcn.14002f600
inc ebp
imul r15d, ebp, 0x104
mov ecx, r15d
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.14002f8b0
mov rsi, rax
jmp 0x14000c810
mov rbp, qword [rsp + 0x38]
nop dword [rax]
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x14000c8d0
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140002190
mov rcx, rsi
call fcn.14002f600
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbp + 0x10], xmm1
mov rax, rbp
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14002f5e0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000d3c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
xor ebp, ebp
add rcx, 0x70
call fcn.14002c220
test eax, eax
setne dl
mov byte [rbx + 0xf8], dl
test eax, eax
je 0x14000d407
cmp qword [rbx + 0xb8], 0x10000
jae 0x14000d407
lea rcx, [rbx + 0x70]
call fcn.14002c5e0
mov eax, dword [rbx + 0x2c8]
cmp byte [rbx + 0xf8], bpl
je 0x14000d512
cmp eax, 1
je 0x14000d4ef
mov dword [rbx + 0x2c8], 1
call fcn.14000ba90
test al, al
je 0x14000d56e
lea rcx, [rbx + 0x10]
call fcn.1400265a0
test al, al
je 0x14000d56e
lea rcx, [rbx + 0x10]
call fcn.140026840
mov rcx, rbx
call fcn.14000ef90
add rbx, 0x4c8
cmp byte [rbx + 8], bpl
jne 0x14000d559
cmp qword [rbx + 0x18], rbp
je 0x14000d559
mov word [rbx + 8], 0x101
mov dword [rbx + 0x20], 0x32
mov ecx, 8
call fcn.14002f634
mov qword [rax], rbx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x1400119b0]
xor edx, edx
xor ecx, ecx
call fcn.14003a978
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000d581
cmp dword [rsp + 0x38], 0
je 0x14000d576
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.14002ed64
test eax, eax
jne 0x14000d576
jmp 0x14000d559
mov eax, dword [0x1400732c0]
inc eax
mov dword [0x1400732c0], eax
cmp eax, 5
jle 0x14000d559
mov dword [0x1400732c0], ebp
mov rcx, rbx
call fcn.14000d100
jmp 0x14000d559
test eax, eax
je 0x14000d559
mov dword [rbx + 0x2c8], ebp
mov rcx, rbx
call fcn.14000ef90
mov byte [rbx + 0x4d0], bpl
mov edi, 0x1388
cmp byte [rbx + 0x4d1], bpl
je 0x14000d559
nop dword [rax]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 0x32
js 0x14000d559
cmp byte [rbx + 0x4d1], bpl
jne 0x14000d540
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
xor ecx, ecx
call fcn.14003a4ec
nop
mov ecx, 1
call fcn.14002ecc8
nop
mov dword [rsp + 0x38], ebp
mov ecx, 6
call fcn.14002ecc8
int3
Function at 0x14000ef90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, [0x140073830]
call fcn.14002ee04
test eax, eax
jne 0x14000f03f
cmp dword [0x14007387c], 0x7fffffff
je 0x14000f02a
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x40], rdi
lea r8d, [rax + 4]
xor edi, edi
mov dword [rsp + 0x50], 2
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0xb0]
lea r9, [rsp + 0x48]
mov rcx, qword [rbx + 8]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x140073830]
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
jmp fcn.14002ee0c
mov ecx, 6
mov dword [0x14007387c], 0x7ffffffe
call fcn.14002ecc8
int3
mov ecx, 5
call fcn.14002ecc8
int3
Function at 0x140010a70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x50], rdx
xor ebp, ebp
mov dword [rsp + 0x40], ebp
mov rdi, qword [0x1400732d8]
lea r14, [0x140073830]
mov qword [rsp + 0x58], r14
mov rcx, r14
call fcn.14002ee04
test eax, eax
jne 0x140010bc8
cmp dword [0x14007387c], 0x7fffffff
je 0x140010bb3
mov dword [rsp + 0x38], 8
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x30]
lea r8d, [rbp + 4]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140001e80
mov rdx, rax
mov rcx, rdi
call fcn.14000a690
nop
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x38]
lea r8d, [rbp + 4]
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rsi, dword [rsp + 0x30]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], bpl
mov dword [rsp + 0x40], 2
mov rdx, rsi
cmp rsi, 0xf
jbe 0x140010b6b
mov rcx, rbx
call fcn.140008290
mov qword [rbx + 0x10], rbp
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140010b78
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x48]
mov r8d, esi
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov rcx, r14
call fcn.14002ee0c
mov rax, rbx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov dword [0x14007387c], 0x7ffffffe
mov ecx, 6
call fcn.14002ecc8
int3
mov ecx, 5
call fcn.14002ecc8
int3
Function at 0x140011a00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov ebx, ecx
mov rsi, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bx
mov r8, rdi
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140011b2c
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rdi
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test rbx, rbx
je 0x140011b2c
test eax, eax
je 0x140011b2c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x140011b2c
mov rcx, qword [rsi]
mov dword [rbp - 0x20], 0x41575d99
mov dword [rbp - 0x1c], 0xf42250af
mov dword [rbp - 0x18], 0xff60b5a2
mov dword [rbp - 0x14], 0x834affaf
mov dword [rbp - 0x10], 0xaf897417
mov dword [rbp - 0xc], 0xf0485d27
mov dword [rbp - 8], 0xc7364f78
mov dword [rbp - 4], 0x1c6d9a2
cmp rcx, qword [rsi + 8]
je 0x140011acb
mov qword [rsi + 8], rcx
mov rax, qword [rsi + 0x10]
sub rax, rcx
mov qword [rbp + 0x38], rdi
cmp rdi, rax
jbe 0x140011ae7
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.140011b70
xor ebx, ebx
test rdi, rdi
je 0x140011b28
nop
mov rdx, qword [rsi + 8]
mov rax, rbx
and eax, 0x1f
movzx ecx, byte [rbp + rax - 0x20]
xor cl, byte [r14 + rbx]
mov byte [rbp + 0x20], cl
cmp rdx, qword [rsi + 0x10]
je 0x140011b14
mov byte [rdx], cl
inc qword [rsi + 8]
jmp 0x140011b20
lea r8, [rbp + 0x20]
mov rcx, rsi
call fcn.140011c60
inc rbx
cmp rbx, rdi
jb 0x140011af0
mov al, 1
jmp 0x140011b2e
xor al, al
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x140012350
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [0x1400732e0], 0
jne 0x140012442
xor ebx, ebx
lea r8, [rsp + 0x48]
lea rdx, [0x140064cc8]
mov qword [rsp + 0x48], rbx
lea rcx, [0x140064cb8]
call qword [sym.imp.mscoree.dll_CLRCreateInstance]
lea rdi, [0x1400732e0]
test eax, eax
js 0x140012405
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea r8, [0x140064ca8]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x1400123f6
mov rcx, qword [rsp + 0x40]
lea r8, [0x140060f78]
mov r9, rdi
lea rdx, [0x140060f88]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x1400123eb
mov rcx, qword [0x1400732e0]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x140012442
cmp qword [0x1400732e0], 0
jne 0x140012442
lea r9, [0x140060f78]
mov qword [rsp + 0x20], rdi
lea r8, [0x140060f88]
xor edx, edx
lea rcx, str.v2.0.50727
call qword [sym.imp.mscoree.dll_CorBindToRuntime]
test eax, eax
js 0x14001244f
mov rcx, qword [0x1400732e0]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
lea r8, [0x1400645f8]
lea rdx, [0x140064610]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x140014560
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140070040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov edi, r9d
mov rbx, rdx
test r8b, r8b
jne 0x140014652
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.140011270
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.140011270
mov dword [rsp + 0xa0], edi
mov ecx, 0x48
call fcn.14002f634
mov rbx, rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140011270
nop
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x80]
call fcn.140011270
mov ecx, dword [rsp + 0xa0]
mov dword [rbx + 0x40], ecx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x14001a170]
xor edx, edx
xor ecx, ecx
call fcn.14003a978
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140014695
lea rcx, [rsp + 0x60]
call fcn.1400146c0
cmp dword [rsp + 0x38], 0
je 0x1400146a8
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.14002ed64
test eax, eax
jne 0x1400146a8
jmp 0x140014674
cmp qword [rdx + 0x18], 7
jbe 0x14001465c
mov rbx, qword [rdx]
cmp qword [rcx + 0x18], 7
jbe 0x140014666
mov rcx, qword [rcx]
mov r8, rbx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14002f5e0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.14002ecc8
nop
mov ecx, 1
call fcn.14002ecc8
int3

Function at 0x140014780
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140070040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400147f0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140002680
mov dword [rsp + 0x30], 1
mov r8d, SafeArrayDestroy
lea rdx, [0x140065350]
mov rcx, rbx
call fcn.140002de0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002f5e0
add rsp, 0x260
pop rbx
ret
Function at 0x140018450
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140018494
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140018480
ret
Function at 0x14001d920
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 0x14001da03
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001da03
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 0x14001da21
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 0x14001d9f3
cmp word [rax], 0x5c
jne 0x14001d9ec
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x14001d9ec
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001d9d7
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x14001d9e9
test r8b, 0x10
jne 0x14001d9ec
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x14001d9ec
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.140019b00
test edi, edi
jne 0x14001d950
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.140019af0
int3