joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002830
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14003d080]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rcx
movdqa xmm0, xmmword [0x140037a80]
movdqu xmmword [rsp + 0x48], xmm0
xor r14d, r14d
mov word [rsp + 0x38], r14w
xor r8d, r8d
lea rdx, [0x140037298]
lea rcx, [rsp + 0x38]
call fcn.1400042b0
nop
xor r9d, r9d
lea r8d, [r14 + 0x2a]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400028c0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.1400042b0
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 0xa
jb 0x140002925
lea rdi, [rcx + 0xa]
mov qword [rsp + 0x48], rdi
lea rbx, [rsp + 0x38]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x38]
lea rcx, [rbx + rcx*2]
mov r8d, 0x14
lea rdx, str.overwolf_
call fcn.140009570
mov word [rbx + rdi*2], r14w
jmp 0x140002944
mov qword [rsp + 0x20], 0xa
lea r9, str.overwolf_
mov edx, 0xa
lea rcx, [rsp + 0x38]
call fcn.1400053e0
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 0x14
jb 0x14000298f
lea rdi, [rcx + 0x14]
mov qword [rsp + 0x48], rdi
lea rbx, [rsp + 0x38]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x38]
lea rcx, [rbx + rcx*2]
mov r8d, 0x28
lea rdx, str.OverwolfLauncher.exe
call fcn.140009570
mov word [rbx + rdi*2], r14w
jmp 0x1400029ae
mov qword [rsp + 0x20], 0x14
lea r9, str.OverwolfLauncher.exe
mov edx, 0x14
lea rcx, [rsp + 0x38]
call fcn.1400053e0
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400029fa
test al, 0x10
jne 0x1400029fa
lea rax, [rsp + 0x38]
cmp rsi, rax
je 0x1400029f6
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
mov rcx, rsi
call fcn.1400042b0
mov bl, 1
jmp 0x1400029fc
xor bl, bl
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140002a3a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002a35
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002a64
call fcn.140007ac4
movzx eax, bl
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140007aa0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14000eb84
int3
Function at 0x140003bb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14003d080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003bdd
xor eax, eax
jmp 0x140003d23
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003c17
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003c17
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003d23
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003d16
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003c5a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003c69
movsx ecx, dil
jmp 0x140003cbd
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
js 0x140003d16
cmp eax, 1
jle 0x140003cd7
cmp eax, 3
jne 0x140003d16
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14000ba18
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003d1b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003d04
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14000dfb4
cmp rsi, rax
jne 0x140003d16
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140003d1b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140007aa0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005be0
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x2e0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x14003d080]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
xor ebp, ebp
xor edx, edx
lea ecx, [rbp + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140005c51
mov dword [rsp + 0x90], 0x238
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140005c58
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140005d33
lea rdx, str.Overwolf.exe
lea rcx, [rsp + 0x28]
call fcn.1400030e0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.140005f30
nop
lea rcx, [rsp + 0x28]
call fcn.140003070
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0xbc]
lea rcx, [rsp + 0x28]
call fcn.1400030e0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x68]
call fcn.140005f30
nop
mov rcx, rax
call fcn.140003060
mov rdi, rax
lea rcx, [rsp + 0x48]
call fcn.140003060
sub rdi, rax
nop dword [rax + rax]
movzx ebx, word [rax]
movzx ecx, word [rax + rdi]
sub ebx, ecx
jne 0x140005ce3
add rax, 2
test ecx, ecx
jne 0x140005cd0
lea rcx, [rsp + 0x68]
call fcn.140003070
nop
lea rcx, [rsp + 0x28]
call fcn.140003070
test ebx, ebx
je 0x140005d16
lea rdx, [rsp + 0x90]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140005d1d
jmp 0x140005c90
mov ebp, dword [rsp + 0x98]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x48]
call fcn.140003070
mov eax, ebp
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140007aa0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001230
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x29], rcx
xor r15d, r15d
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x21], r15
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [r15 + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400012dc
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400012d0
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rbp - 0x21]
test eax, eax
jne 0x1400012f6
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r15b
jmp 0x14000140a
mov dword [rbp - 0x31], 0x20
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x31]
lea r8, [rbp + 7]
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rbp - 0x21]
test eax, eax
je 0x1400012ca
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], r15
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], r15b
mov r14d, r15d
cmp dword [rbp - 0x31], r15d
jbe 0x1400013fb
nop dword [rax]
nop word [rax + rax]
mov eax, r14d
movzx r9d, byte [rbp + rax + 7]
lea r8, str._02x
mov edx, 3
lea rcx, [rbp - 0x35]
call fcn.140001010
lea rax, [rbp - 0x35]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001390
mov rcx, qword [rbp - 9]
mov rdx, qword [rbp - 1]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x1400013d9
lea rax, [rbx + rcx]
mov qword [rbp - 9], rax
lea rdi, [rbp - 0x19]
cmp rdx, 0x10
cmovae rdi, qword [rbp - 0x19]
add rdi, rcx
mov r8, rbx
lea rdx, [rbp - 0x35]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x1400013ee
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x35]
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.140001820
inc r14d
cmp r14d, dword [rbp - 0x31]
jb 0x140001360
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 9]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140001a30
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400023bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002406
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002406
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002406
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002406
cmp dword [rcx + 0x84], 0xe
jbe 0x140002406
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002408
xor al, al
add rsp, 0x28
ret

Function at 0x14059f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14059f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14059f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14059f06f
add dl, dl
jne 0x14059f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14059f0f6
xor eax, eax
add dl, dl
jne 0x14059f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14059f1ad
add dl, dl
jne 0x14059f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14059f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14059f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14059f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14059f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14059f07e
mov eax, 1
add dl, dl
jne 0x14059f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14059f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14059f0fb
sub eax, ebx
mov ebx, 1
jne 0x14059f14c
mov ecx, 1
add dl, dl
jne 0x14059f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14059f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14059f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14059f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14059f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14059f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14059f15d
cmp eax, 0x7d00
jae 0x14059f19b
cmp eax, 0x500
jb 0x14059f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14059f07e
cmp eax, 0x7f
ja 0x14059f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14059f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14059f1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14059f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001700
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x140013020]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
mov qword [rsp + 0x68], rcx
mov rcx, qword [rcx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0x22
jb 0x14000193c
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000174f
mov rax, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x22
lea r9, str.powershell__Command___fget_item_
lea rcx, [rsp + 0x40]
call fcn.140006290
nop
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 0x20
jb 0x1400017c5
lea rax, [rcx + 0x20]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x40]
add rbx, rcx
mov r8d, 0x20
lea rdx, str.__Force__f.attributesHidden_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x20], 0
lea rax, [rsp + 0x40]
jmp 0x1400017dd
mov qword [rsp + 0x20], 0x20
mov edx, 0x20
lea rcx, [rsp + 0x40]
call fcn.140005cb0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x80], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x80], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140001858
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001853
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001853
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c59c
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], 0x10
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x1400018b5
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400018b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000c59c
movdqa xmm0, xmmword [0x14000ef30]
movdqu xmmword [rsp + 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140001901
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400018fc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001935
mov rcx, r8
call fcn.14000c59c
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14000c540
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400011b0
nop
int3
Function at 0x1400034b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 0xf
mov byte [rcx], al
mov dword [rsp + 0x20], 1
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140003575
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbp, rax
test rax, rax
je 0x14000356f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14000356f
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140003522
mov rcx, qword [rdi + 0x18]
cmp rbx, rcx
ja 0x140003558
mov rsi, rdi
cmp rcx, 0x10
jb 0x140003540
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rbx
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], 0
jmp 0x140003566
mov r9, rax
mov rdx, rbx
mov rcx, rdi
call fcn.140005e40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400047d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140013020]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400047fd
xor eax, eax
jmp 0x140004969
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004837
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004837
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140004969
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000495c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000487a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400048a5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004961
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004914
sub eax, 1
je 0x140004914
cmp eax, 2
jne 0x14000495c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004961
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004942
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000495c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004961
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000c540
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

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

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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140013020]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005213
cmp byte [rcx + 0x71], 0
je 0x140005213
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000520f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
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]
test eax, eax
je 0x1400051d4
sub eax, 1
je 0x1400051d8
cmp eax, 2
jne 0x14000520f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000c540
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005206
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000520f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400051bc
xor al, al
jmp 0x1400051bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000c540
add rsp, 0x60
pop rbx
ret
Function at 0x14000a120
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 0x14000a1ec
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000a1ec
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 0x14000a205
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 0x14000a1dc
cmp byte [rax], 0x5c
jne 0x14000a1d6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14000a1d6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000a1c2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14000a1d3
test r8b, 0x10
jne 0x14000a1d6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14000a1d6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140006930
test edi, edi
jne 0x14000a140
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.140006920
int3

Function at 0x14000d0fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d146
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d146
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d146
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d146
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d146
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000d148
xor al, al
add rsp, 0x28
ret