joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011c968
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14011c7f3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011c7f3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14011c7f3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14011c7f3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14011c7f3
cmp dword [rcx + 0x84], 0xe
jbe 0x14011c7f3
cmp dword [rcx + 0xf8], 0
je 0x14011c7f3
mov ecx, ebx
call fcn.14011c894
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14011c670
cmp dword [rbp + 0x20], 0
je 0x14011c840
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14011c848
int3
xor r8d, r8d
xor edx, edx
jmp 0x14011c78c

Function at 0x100411cb0
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x69c17c2d
xlatb
mov byte [rax - 0x5c], bl
jl fcn.100411cb0
js 0x100411d0f
insb byte [rdi], dx
xor al, 0x34
xor al, 0x34
jl 0x100411c7f
sbb byte [rax + 0x74], 0x7c
cmp byte [rbp + 0x34a4b951], 0x34
jl 0x100411cd5
jno 0x100411cdc
movsd dword [rdi], dword [rsi]
xor al, 0x34
sti
Function at 0x14000aa90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14000aac4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14000aab0
ret
Function at 0x14000cc30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x50
movabs rax, 0xfffffffffffffff
mov ebx, 1
bsr rcx, rax
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x14000ce59
lea rax, [rdx - 1]
mov qword [rsp + 0x60], rbp
mov rbp, qword [0x140086e18]
or rax, rbx
bsr rcx, rax
mov qword [rsp + 0x70], rsi
mov r8, rbp
inc ecx
mov qword [rsp + 0x78], rdi
shl rbx, cl
lea rcx, [0x140086e28]
lea rdx, [rbx + rbx]
call fcn.1400085e0
mov rdi, qword [0x140086e18]
lea r10, [rbx - 1]
mov qword [0x140086e40], r10
mov qword [0x140086e48], rbx
mov rdi, qword [rdi]
mov rsi, rdi
cmp rdi, rbp
je 0x14000ce44
mov qword [rsp + 0x48], r12
movabs r11, 0x100000001b3
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
movups xmm0, xmmword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
xor edx, edx
mov rsi, qword [rsi]
movabs rax, 0xcbf29ce484222325
movaps xmmword [rsp + 0x20], xmm0
test r8, r8
je 0x14000cd14
mov r9, qword [rsp + 0x20]
nop dword [rax]
movzx ecx, byte [rdx + r9]
inc rdx
xor rax, rcx
imul rax, r11
cmp rdx, r8
jb 0x14000cd00
mov r13, qword [0x140086e28]
and rax, r10
shl rax, 4
add r13, rax
mov r12, qword [r13]
cmp r12, rbp
jne 0x14000cd3b
mov qword [r13], rdi
mov qword [r13 + 8], rdi
jmp 0x14000cdf6
mov rbx, qword [r13 + 8]
cmp r8, qword [rbx + 0x18]
jne 0x14000cd86
mov rdx, qword [rbx + 0x10]
movq rcx, xmm0
call fcn.140049c50
test eax, eax
jne 0x14000cd86
mov r8, qword [rbx]
cmp r8, rdi
je 0x14000cd80
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rdi
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r13 + 8], rdi
jmp 0x14000cdec
mov r14, rbx
cmp r12, rbx
je 0x14000cdc7
movups xmm0, xmmword [rdi + 0x10]
movaps xmmword [rsp + 0x20], xmm0
mov r15, qword [rsp + 0x28]
nop dword [rax]
mov rbx, qword [rbx + 8]
mov r14, rbx
cmp r15, qword [rbx + 0x18]
jne 0x14000cdc2
mov rdx, qword [rbx + 0x10]
mov r8, r15
mov rcx, qword [rsp + 0x20]
call fcn.140049c50
test eax, eax
je 0x14000ce0a
cmp r12, rbx
jne 0x14000cda0
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r14
mov rax, qword [r14 + 8]
mov qword [rax], rdi
mov qword [r14 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r13], rdi
movabs r11, 0x100000001b3
mov rdi, rsi
cmp rsi, rbp
je 0x14000ce30
mov r10, qword [0x140086e40]
jmp 0x14000ccd6
mov r8, qword [rbx]
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rdi
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
jmp 0x14000cdec
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbx
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.1400444a4
int3
Function at 0x1400134e0
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 0x1400135ac
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400135ac
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 0x1400135c5
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 0x14001359c
cmp byte [rax], 0x5c
jne 0x140013596
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140013596
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140013582
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140013593
test r8b, 0x10
jne 0x140013596
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140013596
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000cea0
test edi, edi
jne 0x140013500
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.14000ce90
int3
Function at 0x14001cab0
Capabilities:
Persist via run registry key
Set registry value
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140084a00]
xor rax, rsp
mov qword [rbp - 8], rax
call fcn.140007800
xorps xmm0, xmm0
lea rdx, str.ClipArt1
xorps xmm1, xmm1
lea rcx, [rbp - 0x28]
mov r8d, 8
movups xmmword [rbp - 0x28], xmm0
movdqu xmmword [rbp - 0x18], xmm1
call fcn.140007c70
cmp qword [rbp - 0x10], 0xf
lea r8, [rbp - 0x28]
mov ecx, 0x1f0001
cmova r8, qword [rbp - 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
test rax, rax
je 0x14001cb20
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_ExitProcess]
cmp qword [rbp - 0x10], 0xf
lea r8, [rbp - 0x28]
mov qword [rsp + 0x90], rbx
cmova r8, qword [rbp - 0x28]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x98], rdi
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
movdqa xmm1, xmmword [0x140078cb0]
lea rcx, [rbp - 0x48]
xorps xmm0, xmm0
xor edi, edi
movups xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x48], di
mov rbx, rax
movdqu xmmword [rbp - 0x38], xmm1
call fcn.140003040
test al, al
je 0x14001cbdd
lea rax, [rbp - 0x50]
xor r8d, r8d
lea r9d, [rdi + 2]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001cbdd
mov eax, dword [rbp - 0x38]
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
lea r9d, [rdi + 1]
lea rdx, str.My_Program
cmova rcx, qword [rbp - 0x48]
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1400068a0
test rbx, rbx
je 0x14001cbf9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x30]
mov rbx, qword [rsp + 0x90]
cmp rdx, 7
jbe 0x14001cc3d
mov rcx, qword [rbp - 0x48]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001cc38
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001cca4
call fcn.14003d2a4
mov rdx, qword [rbp - 0x10]
movdqa xmm0, xmmword [0x140078cb0]
mov word [rbp - 0x48], di
movdqu xmmword [rbp - 0x38], xmm0
cmp rdx, 0xf
jbe 0x14001cc85
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001cc80
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001cca4
call fcn.14003d2a4
mov rdi, qword [rsp + 0x98]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14003d170
add rsp, 0x80
pop rbp
ret
call fcn.14002498c
int3
Function at 0x14001dd70
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
mov dword [rsp + 0x34], r14d
lea ecx, [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov esi, eax
mov word [rsp + 0x20], r14w
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 4]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetGeoInfoA]
movsxd rbp, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 0xf
mov byte [rbx], r14b
mov dword [rsp + 0x34], 1
test eax, eax
jne 0x14001dde3
mov qword [rbx + 0x10], rbp
mov byte [rbx + rbp], al
jmp 0x14001de16
mov rcx, rbx
cmp rbp, 0xf
ja 0x14001de00
mov qword [rbx + 0x10], rbp
mov r8, rbp
xor edx, edx
call fcn.140049210
mov byte [rbx + rbp], 0
jmp 0x14001de16
mov byte [rsp + 0x20], 0
mov r9, rbp
movzx r8d, byte [rsp + 0x30]
mov rdx, rbp
call fcn.14000a890
mov r8, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14001de23
mov r8, qword [rbx]
mov word [rsp + 0x20], r14w
mov r9d, ebp
mov edx, 4
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetGeoInfoA]
mov rcx, qword [rbx + 0x10]
dec rcx
mov qword [rbx + 0x10], rcx
cmp qword [rbx + 0x18], 0xf
jbe 0x14001de54
mov rax, qword [rbx]
mov byte [rax + rcx], 0
jmp 0x14001de58
mov byte [rbx + rcx], 0
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14001e810
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rbx, rcx
lea r10, [rsp + 0x20]
mov ecx, 0x10
xor r9b, r9b
nop dword [rax]
nop word [rax + rax]
movzx edx, r9b
lea r10, [r10 + 4]
movzx eax, r9b
add r9b, 4
movzx r8d, byte [rax + rbx + 1]
movzx eax, byte [rdx + rbx]
shl eax, 8
or r8d, eax
movzx eax, byte [rdx + rbx + 2]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + rbx + 3]
shl r8d, 8
or r8d, eax
mov dword [r10 - 4], r8d
sub rcx, 1
jne 0x14001e850
mov esi, dword [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov r11b, 0x10
nop
mov r9d, dword [rdi + 4]
lea r10, [rdi]
movzx eax, r11b
lea rdi, [rdi + 4]
mov r8d, r9d
inc r11b
ror r8d, 0x12
mov edx, dword [rsp + rax*4 + 0x18]
mov ecx, edx
ror ecx, 0x13
mov eax, r9d
ror eax, 7
xor r8d, eax
mov eax, r9d
shr eax, 3
xor r8d, eax
mov eax, edx
ror eax, 0x11
xor ecx, eax
shr edx, 0xa
xor ecx, edx
add r8d, ecx
add r8d, dword [r10 + 0x24]
add r8d, esi
mov esi, r9d
mov dword [r10 + 0x40], r8d
cmp r11b, 0x40
jb 0x14001e8a0
movups xmm0, xmmword [rbx + 0x50]
lea rax, [rbx + 0x50]
xor esi, esi
movups xmm1, xmmword [rax + 0x10]
mov qword [rbp + 0x68], rax
movups xmmword [rsp], xmm0
mov r12d, dword [rsp + 8]
lea ebx, [rsi + 0x40]
mov r13d, dword [rsp + 4]
mov r11d, dword [rsp]
movups xmmword [rsp + 0x10], xmm1
mov r14d, dword [rsp + 0x18]
mov r15d, dword [rsp + 0x14]
mov edi, dword [rsp + 0x10]
mov eax, dword [rsp + 0x1c]
nop word [rax + rax]
mov ecx, edi
lea rsi, [rsi + 4]
ror ecx, 0xb
mov r10d, edi
ror r10d, 0x19
mov edx, edi
xor r10d, ecx
not edx
and edx, r14d
mov ecx, edi
ror ecx, 6
mov r8d, r12d
xor r10d, ecx
mov r9d, r13d
mov ecx, r15d
and r9d, r8d
and ecx, edi
xor edx, ecx
lea rcx, [0x140078b40]
add r10d, edx
mov edx, r11d
add r10d, dword [rsi + rcx - 4]
mov ecx, r11d
add r10d, dword [rsp + rsi + 0x1c]
ror ecx, 0xd
add r10d, eax
ror edx, 0x16
mov eax, r14d
xor edx, ecx
mov r14d, r15d
mov ecx, r11d
mov r15d, edi
mov edi, dword [rsp + 0xc]
ror ecx, 2
add edi, r10d
xor edx, ecx
mov dword [rsp + 0xc], r12d
mov r12d, r13d
mov r13d, r11d
mov ecx, r12d
or ecx, r8d
and r11d, ecx
lea ecx, [r10 + rdx]
or r11d, r9d
add r11d, ecx
sub rbx, 1
jne 0x14001e940
lea r8, [rsp]
mov dword [rsp + 0x1c], eax
sub r8, qword [rbp + 0x60]
lea edx, [rbx + 8]
mov rax, qword [rbp + 0x68]
mov dword [rsp], r11d
mov dword [rsp + 0x10], edi
mov dword [rsp + 0x18], r14d
mov dword [rsp + 0x14], r15d
mov dword [rsp + 8], r12d
mov dword [rsp + 4], r13d
nop word [rax + rax]
mov ecx, dword [rax + r8 - 0x50]
add dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x14001ea10
mov rbx, qword [rsp + 0x170]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022e10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rbp
sub rsp, 0x78
mov rax, qword [rcx + 0x38]
mov rbp, rdx
mov rbx, rcx
cmp qword [rcx + 0x30], rax
jne 0x140022e52
mov rax, qword gs:[0x58]
mov rbx, qword [rax]
mov eax, 0x14
cmp byte [rax + rbx], 0
jne 0x140022e43
call fcn.14003d84c
mov eax, 0x140
add rax, rbx
add rsp, 0x78
pop rbp
pop rbx
ret
cmp qword [rcx + 0x58], 0
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
jne 0x140022e7f
call fcn.140022c80
lea r12, [rbx + 0x48]
xorps xmm0, xmm0
xor ebx, ebx
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x30], rbx
mov r8, rdi
mov qword [rsp + 0x38], rbx
movups xmmword [rsp + 0x20], xmm0
inc r8
cmp byte [r8 + rbp], bl
jne 0x140022ea1
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140007c70
mov r13, qword [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r14, qword [rsp + 0x20]
cmp r13, 0xf
mov r8, qword [rsp + 0x30]
movabs rsi, 0xcbf29ce484222325
cmova rdx, r14
mov r9, rsi
mov rcx, rbx
movabs r10, 0x100000001b3
test r8, r8
je 0x140022f05
movzx eax, byte [rcx + rdx]
inc rcx
xor r9, rax
imul r9, r10
cmp rcx, r8
jb 0x140022ef2
lea r8, [rsp + 0x20]
mov rcx, r12
lea rdx, [rsp + 0x40]
call fcn.140023e10
mov r15, qword [rax + 8]
cmp r13, 0xf
jbe 0x140022f52
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140022f4a
mov r14, qword [r14 - 8]
add rdx, 0x27
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140023065
mov rcx, r14
call fcn.14003d2a4
test r15, r15
jne 0x140022f80
mov rax, qword gs:[0x58]
mov rbx, qword [rax]
mov eax, 0x14
cmp byte [rax + rbx], r15b
jne 0x140022f73
call fcn.14003d84c
mov eax, 0x140
add rax, rbx
jmp 0x14002303d
xorps xmm0, xmm0
mov qword [rsp + 0x30], rbx
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], rbx
inc rdi
cmp byte [rdi + rbp], bl
jne 0x140022f92
mov r8, rdi
lea rcx, [rsp + 0x20]
mov rdx, rbp
call fcn.140007c70
mov rbp, qword [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov rdi, qword [rsp + 0x20]
cmp rbp, 0xf
mov r8, qword [rsp + 0x30]
cmova rdx, rdi
test r8, r8
je 0x140022ff3
movabs rcx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rdx + rbx]
inc rbx
xor rsi, rax
imul rsi, rcx
cmp rbx, r8
jb 0x140022fe0
mov r8, rsi
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.140023ee0
mov rbx, qword [rax + 0x30]
cmp rbp, 0xf
jbe 0x14002303a
lea rdx, [rbp + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140023032
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140023065
mov rcx, rdi
call fcn.14003d2a4
mov rax, rbx
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x50]
add rsp, 0x78
pop rbp
pop rbx
ret
call fcn.14002498c
int3
Function at 0x140023d40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rdi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x140023d65
cvtsi2ss xmm0, rdx
jmp 0x140023d7a
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call fcn.140047940
movss xmm1, dword [0x140078ca0]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140023da8
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140023da8
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x140023dda
cmp rbx, 0x200
jae 0x140023dd7
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x140023dda
mov rbx, rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140023510

Function at 0x1400343e0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003444f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003444f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003444f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003444f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003444f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003444f
cmp dword [rcx + 0xf8], 0
je 0x14003444f
mov ecx, ebx
call fcn.14003450c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400342dc
nop
cmp dword [rbp + 0x20], 0
je 0x14003449d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400344a8
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400343e0

Function at 0x1400345f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400343e0
Function at 0x14003dd9c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140046ae7
mov rsi, rbx
cmp word [rax], bp
je 0x140046aa6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140046a90
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140046a8c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140030228
mov rdi, rax
test rax, rax
je 0x140046ad4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400495d0
mov rbp, rdi
xor ecx, ecx
call fcn.140030048
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400477f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140047818
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140047818
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002200
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140002221
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000224e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002250
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400022a9
test ecx, ecx
jle 0x140002289
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400022a9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400022a9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x1400022d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400022f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002301
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp 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]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002324
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002326
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002362
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400023fe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000239d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400023de
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400023fe
cmp rbx, rax
ja 0x1400023b0
test rbx, rbx
je 0x1400023fe
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret