joyce8/EMBER2024-capa huggingface dataset:
Function at 0x141b96058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x141b961df
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 0x141b96089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b9606f
add dl, dl
jne 0x141b96096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b960f6
xor eax, eax
add dl, dl
jne 0x141b960a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b961ad
add dl, dl
jne 0x141b960b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b960c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b960d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b960dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141b960ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141b9607e
mov eax, 1
add dl, dl
jne 0x141b96106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b96113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b960fb
sub eax, ebx
mov ebx, 1
jne 0x141b9614c
mov ecx, 1
add dl, dl
jne 0x141b9612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b9613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b96123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b9607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141b96168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b96175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b9615d
cmp eax, 0x7d00
jae 0x141b9619b
cmp eax, 0x500
jb 0x141b96196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b9607e
cmp eax, 0x7f
ja 0x141b9619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b9607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141b961d2
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 0x141b9607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x1428c7694
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1428c769e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1428c76c7
pop rbp
sub rbp, 0x33
sub rbp, 0x28c7694
sub rsp, 0x20
jmp 0x1428c76e6
mov rax, 0x28c7694
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xfffffffff56f4d1d
xor byte [rax], dl
inc rax
dec rcx
jne 0x1428c7705
jmp 0x1428c771c
push rbp
xchg esp, eax
hlt
Function at 0x180003be0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x18003a040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, 8
call fcn.180008244
lea rcx, [0x180003620]
mov r9, rax
lea r8, [0x1800050b0]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call fcn.18000f274
mov qword [rsp + 0x40], rax
test rax, rax
je 0x180003c82
cmp dword [rsp + 0x48], 0
je 0x180003c95
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rsp + 0x48], eax
je 0x180003ca0
movaps xmm0, xmmword [rsp + 0x40]
lea rcx, [rsp + 0x30]
xor edx, edx
movdqa xmmword [rsp + 0x30], xmm0
call fcn.1800077fc
test eax, eax
jne 0x180003c77
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180007f80
add rsp, 0x68
ret
mov ecx, 2
call fcn.1800053cc
int3
mov ecx, 6
mov dword [rsp + 0x48], 0
call fcn.1800053cc
int3
mov ecx, 1
call fcn.1800053cc
int3
mov ecx, 5
call fcn.1800053cc
int3

Function at 0x180006bfc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x180006c2a
xor eax, eax
jmp 0x180006d10
cmp qword [rcx + 0x68], 0
je 0x180006c3b
call fcn.180006d2c
jmp 0x180006d10
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180006c52
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180006c54
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180006c86
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.18000a1d0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x180006d0a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x180006cbd
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x180006ce6
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.18000fd18
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x180006d0a
cmp rsi, rbx
ja 0x180006cc4
test rsi, rsi
je 0x180006d0a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18000fd18
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18000ec04
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180008aa0
sub rsp, rax
mov rax, qword [0x18003a040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800165dc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18000ec53
mov rax, rbp
jmp 0x18000ed5b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3c5b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180016874
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x3c5b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18000ed57
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000ed57
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180016874
test rax, rax
js 0x18000ed57
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18000ed57
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18000ed49
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18000ed49
cmp byte [rcx], 0xd
jne 0x18000ed2f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18000ed3e
cmp byte [rcx + 1], 0xa
jne 0x18000ed3e
inc rcx
jmp 0x18000ed3e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3a3e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18000ed11
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18000ed5b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180007f80
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800188cc
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x18003c5b0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x18001892a
cmp word [rdx], r12w
jne 0x18001892a
or byte [rax + r8*8 + 0x38], cl
jmp 0x180018930
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180018a8b
mov r9d, reloc.OLEAUT32.dll_SafeArrayCopy
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x180018a66
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180018969
mov rcx, r9
jmp 0x18001898c
cmp r9, rdx
jae 0x1800189a3
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, reloc.OLEAUT32.dll_SafeArrayCopy
add rbx, 2
cmp rcx, rdx
jb 0x18001894d
jmp 0x180018a8b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180018a60
cmp dword [rsp + 0x80], edi
je 0x180018a60
mov rdx, r14
lea r11, [0x18003c5b0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x180018a39
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180018a0c
mov word [rbx], r12w
jmp 0x180018a87
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x180018a15
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x180018a87
cmp word [rsp + 0x70], r12w
jne 0x180018a46
cmp rbx, rsi
je 0x180018a06
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18001687c
cmp word [rsp + 0x70], r12w
je 0x180018a8b
mov word [rbx], r13w
jmp 0x180018a87
lea r11, [0x18003c5b0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x180018a83
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180018a8b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18001aa60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x18001aa92
call fcn.180012044
mov dword [rax], SafeArrayCopy
call fcn.180010168
jmp 0x18001abb1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18001abb1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18001abb1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18001aac1
lock or dword [rcx + 0x14], 0x10
jmp 0x18001abb1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18001aad5
call fcn.18001c188
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1800165dc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.180018d78
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18001ab9f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x18001ab6a
mov rcx, rsi
call fcn.1800165dc
cmp eax, edi
je 0x18001ab55
mov rcx, rsi
call fcn.1800165dc
cmp eax, 0xfffffffe
je 0x18001ab55
mov rcx, rsi
call fcn.1800165dc
movsxd rbx, eax
lea r14, [0x18003c5b0]
mov rcx, rsi
sar rbx, 6
call fcn.1800165dc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x18001ab5c
lea rdx, [0x18003a4e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18001ab6a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x18001ab8e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x18001ab8e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x18001ab8e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x18001abb4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x18001f668
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18001f698
xor eax, eax
jmp 0x18001f75b
mov rbp, rbx
cmp word [rax], si
je 0x18001f6bd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001f6a4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001f6a0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18001ddec
movsxd r14, eax
test eax, eax
jne 0x18001f6fb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001f691
mov rcx, r14
call fcn.18001abcc
mov rdi, rax
test rax, rax
jne 0x18001f714
xor ecx, ecx
call fcn.180019554
jmp 0x18001f6f0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18001ddec
test eax, eax
jne 0x18001f745
mov rcx, rdi
call fcn.180019554
jmp 0x18001f74f
xor ecx, ecx
call fcn.180019554
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180024ff0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18001687c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18001687c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180025140
cmp rax, 0xffffffffffffffff
je 0x180025140
xor edi, edi
test rbp, rbp
jle 0x1800250eb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800199d4
mov rbx, rax
test rax, rax
jne 0x180025078
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800250e1
mov edx, 0x8000
mov ecx, r14d
call fcn.180024e78
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18001baf4
cmp eax, 0xffffffff
je 0x1800250c1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180025088
mov edx, r15d
mov ecx, r14d
call fcn.180024e78
jmp 0x1800250e1
cmp byte [rsi + 0x38], dil
je 0x1800250d8
cmp dword [rsi + 0x34], 5
jne 0x1800250d8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1800250e1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180019554
jmp 0x180025154
jns 0x180025154
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18001687c
cmp rax, 0xffffffffffffffff
jne 0x18002510c
cmp byte [rsi + 0x30], dil
je 0x180025154
mov edi, dword [rsi + 0x2c]
jmp 0x180025154
mov ecx, r14d
call fcn.18001fe20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180025154
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x180025154
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18002514d
mov eax, dword [rsi + 0x2c]
jmp 0x180025152
mov eax, SafeArrayCopy
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18001687c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180025d10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180025d38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180025d38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003530
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x1400035d0
jmp 0x1400035bf
jae 0x14000369e
cmp r8, 0x201
jae 0x1400035d0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140003636
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14000360e
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140018be0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14000365f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000370a
mov r8d, r13d
cmp r12, r8
jne 0x1400035b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000373e
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400035bf
jmp 0x1400035d0
cmp r14, r8
jb 0x140003758
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140005b20
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x1400036f3
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.1400011e0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x1400036de
jmp 0x1400036f3
lea rcx, str.internal_error:_entered_unreachable_code_rustc_f6e511eec7342f59a25f7c0534f1dbea00d01b14library_alloc_src_vecmod.rs
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140019790
jmp 0x14000376d
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140019b40
ud2
Function at 0x14000a190
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x14001bbd0]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000a226
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x14000a253
test eax, eax
js 0x14000a232
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x14000a249
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.1400056b0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140001c70
mov ecx, 7
int 0x29
ud2
Function at 0x140018468
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400184b2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400184b2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400184b2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400184b2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400184b2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400184b4
xor al, al
add rsp, 0x28
ret
Function at 0x142366058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1423661df
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 0x142366089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14236606f
add dl, dl
jne 0x142366096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1423660f6
xor eax, eax
add dl, dl
jne 0x1423660a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1423661ad
add dl, dl
jne 0x1423660b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1423660c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1423660d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1423660dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1423660ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14236607e
mov eax, 1
add dl, dl
jne 0x142366106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142366113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1423660fb
sub eax, ebx
mov ebx, 1
jne 0x14236614c
mov ecx, 1
add dl, dl
jne 0x14236612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14236613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142366123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14236607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142366168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142366175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14236615d
cmp eax, 0x7d00
jae 0x14236619b
cmp eax, 0x500
jb 0x142366196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14236607e
cmp eax, 0x7f
ja 0x14236619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14236607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1423661d2
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 0x14236607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400261c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400261f4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400261e0
ret
Function at 0x14002d860
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 0x14002d92c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14002d92c
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 0x14002d945
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 0x14002d91c
cmp byte [rax], 0x5c
jne 0x14002d916
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14002d916
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14002d902
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14002d913
test r8b, 0x10
jne 0x14002d916
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14002d916
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400291c0
test edi, edi
jne 0x14002d880
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.1400291b0
int3