joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d0680
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1400c4a20
nop
mov qword [rbp - 0x50], rbx
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x5c], rcx
mov rdx, rsi
mov qword [rbp - 0x64], rdx
mov r8d, edi
mov dword [rbp - 0x54], r8d
mov r9, rbx
mov qword [rbp - 0x6c], r9
lea rcx, [rbp - 0x98]
call fcn.140003300
mov rcx, qword [rbp - 0x5c]
mov rdx, qword [rbp - 0x64]
mov r8d, dword [rbp - 0x54]
mov r9, qword [rbp - 0x6c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x98]
call fcn.140003350
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x1400d074f
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1400c4a60
call fcn.140002106
mov dword [rax + 0xa8], esi
mov eax, ebx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140002530
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14000a728], rbx
je 0x140002597
cmp rax, rbx
jne 0x14000258a
mov edi, 1
mov esi, edi
jmp 0x14000259c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000256f
mov edi, 1
mov eax, dword [0x14000a730]
cmp eax, edi
jne 0x1400025b4
mov ebx, 0x1f
mov ecx, ebx
call fcn.140159000
jmp 0x14000262a
mov eax, dword [0x14000a730]
test eax, eax
jne 0x14000261f
mov dword [0x14000a730], edi
lea r15, [0x140007548]
lea rbx, [0x140007530]
mov qword [rsp + 0x30], rbx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rbx, r15
jae 0x140002611
test eax, eax
jne 0x140002615
cmp qword [rbx], r14
je 0x140002606
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [0x1400074e0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x1400025de
test eax, eax
je 0x140002625
mov eax, 0xff
jmp 0x14000278b
mov dword [0x14000a164], edi
mov ebx, 0x1f
mov eax, dword [0x14000a730]
cmp eax, edi
jne 0x140002651
lea rdx, [0x140007528]
lea rcx, [0x1400074f8]
call sub.msvcrt.dll__initterm
mov dword [0x14000a730], 2
test esi, esi
jne 0x14000265f
mov rax, r14
xchg qword [0x14000a728], rax
cmp qword [0x14000a748], r14
je 0x14000269c
lea rcx, [0x14000a748]
call fcn.140002c30
test eax, eax
je 0x14000269c
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000a748]
mov r9, qword [0x1400074e0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400026b5
mov eax, 0xff
jmp 0x14000278b
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000273c
test ax, ax
je 0x1400026d0
test edx, edx
jne 0x14000273c
sub ax, di
cmp ax, bx
ja 0x1400026e6
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400026d0
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400016a0
mov dword [0x14000a160], eax
cmp dword [0x14000a180], r14d
jne 0x140002725
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000a164], r14d
jne 0x14000273a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000a160]
jmp 0x14000278b
cmp ax, 0x22
jne 0x140002750
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400026be
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140002cc4
add rsp, 0x28
jmp 0x140002530
Function at 0x140002b1c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002b68
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002b60
cmp dword [rcx + 0x3c], edx
jl 0x140002b60
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002b60
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140002b68
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140002c90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002cb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140002cb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x142775058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1427751df
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 0x142775089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14277506f
add dl, dl
jne 0x142775096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1427750f6
xor eax, eax
add dl, dl
jne 0x1427750a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1427751ad
add dl, dl
jne 0x1427750b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1427750c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1427750d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1427750dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1427750ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14277507e
mov eax, 1
add dl, dl
jne 0x142775106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142775113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1427750fb
sub eax, ebx
mov ebx, 1
jne 0x14277514c
mov ecx, 1
add dl, dl
jne 0x14277512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14277513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142775123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14277507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142775168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142775175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14277515d
cmp eax, 0x7d00
jae 0x14277519b
cmp eax, 0x500
jb 0x142775196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14277507e
cmp eax, 0x7f
ja 0x14277519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14277507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1427751d2
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 0x14277507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1403b97b0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14059d380]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 2
call fcn.140419cc0
test eax, eax
je 0x1403b9826
mov rax, qword [rbx + 0x120]
mov rcx, rax
shr rcx, 0x20
bswap ecx
mov dword [rsp + 0x20], ecx
bswap eax
mov dword [rsp + 0x24], eax
mov rax, qword [rbx + 0xa0]
mov rcx, rax
shr rcx, 0x20
bswap ecx
mov dword [rsp + 0x28], ecx
bswap eax
mov dword [rsp + 0x2c], eax
lea r8, [rsp + 0x20]
mov rcx, rsi
mov rdx, rdi
call fcn.140419e30
jmp 0x1403b9907
movzx eax, byte [rdi + 0xf]
mov rcx, rax
and eax, 0xf
mov r8, qword [rbx + rax*8 + 0x60]
mov r9, qword [rbx + rax*8 + 0xe0]
mov rax, r9
shld rax, r8, 0x3c
shr rcx, 4
xor rax, qword [rbx + rcx*8 + 0x60]
shr r9, 4
xor r9, qword [rbx + rcx*8 + 0xe0]
and r8d, 0xf
lea rdx, [0x1404568e0]
movzx ecx, word [rdx + r8*2]
shl rcx, 0x30
xor rcx, r9
mov r8d, 0xf
nop word [rax + rax]
movzx r10d, byte [rdi + r8 - 1]
mov r9d, r10d
and r9d, 0xf
mov r11, rcx
shld r11, rax, 0x3c
xor r11, qword [rbx + r9*8 + 0x60]
shr rcx, 4
xor rcx, qword [rbx + r9*8 + 0xe0]
and eax, 0xf
movzx r9d, word [rdx + rax*2]
shl r9, 0x30
xor r9, rcx
mov rax, rcx
shld rax, r11, 0x3c
and r11d, 0xf
shr r9, 4
movzx ecx, word [rdx + r11*2]
shl rcx, 0x30
shr r10, 4
xor r9, qword [rbx + r10*8 + 0xe0]
xor rcx, r9
xor rax, qword [rbx + r10*8 + 0x60]
dec r8
jne 0x1403b9880
shr rcx, 0x20
bswap ecx
mov dword [rsi], ecx
bswap r9d
mov dword [rsi + 4], r9d
mov rcx, rax
shr rcx, 0x20
bswap ecx
mov dword [rsi + 8], ecx
bswap eax
mov dword [rsi + 0xc], eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140428330
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x140419d00
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rcx + 8]
vmovdqa xmm0, xmmword [rcx + rax*4 + 0x10]
vpxor xmm0, xmm0, xmmword [r8]
mov r8d, dword [rcx]
lea rax, [rcx + rax*4]
add rax, 0x20
lea ecx, [r8 - 1]
test edx, edx
je 0x140419d9f
test ecx, ecx
je 0x140419d98
add r8d, 0xfffffffe
mov edx, ecx
and edx, 7
je 0x140419d54
xor r10d, r10d
nop word cs:[rax + rax]
vaesenc xmm0, xmm0, xmmword [rax]
add rax, 0x10
inc r10d
cmp edx, r10d
jne 0x140419d40
sub ecx, r10d
cmp r8d, 7
jb 0x140419d98
nop word [rax + rax]
vaesenc xmm0, xmm0, xmmword [rax]
vaesenc xmm0, xmm0, xmmword [rax + 0x10]
vaesenc xmm0, xmm0, xmmword [rax + 0x20]
vaesenc xmm0, xmm0, xmmword [rax + 0x30]
vaesenc xmm0, xmm0, xmmword [rax + 0x40]
vaesenc xmm0, xmm0, xmmword [rax + 0x50]
vaesenc xmm0, xmm0, xmmword [rax + 0x60]
vaesenc xmm0, xmm0, xmmword [rax + 0x70]
sub rax, 0xffffffffffffff80
add ecx, 0xfffffff8
jne 0x140419d60
vaesenclast xmm0, xmm0, xmmword [rax]
jmp 0x140419e1d
test ecx, ecx
je 0x140419e18
add r8d, 0xfffffffe
mov edx, ecx
and edx, 7
je 0x140419dd4
xor r10d, r10d
nop word cs:[rax + rax]
vaesdec xmm0, xmm0, xmmword [rax]
add rax, 0x10
inc r10d
cmp edx, r10d
jne 0x140419dc0
sub ecx, r10d
cmp r8d, 7
jb 0x140419e18
nop word [rax + rax]
vaesdec xmm0, xmm0, xmmword [rax]
vaesdec xmm0, xmm0, xmmword [rax + 0x10]
vaesdec xmm0, xmm0, xmmword [rax + 0x20]
vaesdec xmm0, xmm0, xmmword [rax + 0x30]
vaesdec xmm0, xmm0, xmmword [rax + 0x40]
vaesdec xmm0, xmm0, xmmword [rax + 0x50]
vaesdec xmm0, xmm0, xmmword [rax + 0x60]
vaesdec xmm0, xmm0, xmmword [rax + 0x70]
sub rax, 0xffffffffffffff80
add ecx, 0xfffffff8
jne 0x140419de0
vaesdeclast xmm0, xmm0, xmmword [rax]
vmovdqu xmmword [r9], xmm0
xor eax, eax
ret

Function at 0x140419f10
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movsxd rax, r8d
shl rax, 4
vmovdqa xmm0, xmmword [rdx + rax]
vmovdqa xmmword [rcx], xmm0
add rcx, 0x10
add rax, rdx
add rax, 0xfffffffffffffff0
cmp rax, rdx
jbe 0x140419f46
vaesimc xmm0, xmmword [rax]
vmovdqa xmmword [rcx], xmm0
add rcx, 0x10
add rax, 0xfffffffffffffff0
cmp rax, rdx
ja 0x140419f30
vmovaps xmm0, xmmword [rax]
vmovaps xmmword [rcx], xmm0
ret

Function at 0x140420460
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
vmovaps xmm0, xmmword [str.expand_32_byte_k]
vmovups xmmword [rcx], xmm0
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x20], eax
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x24], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x28], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x2c], eax
xor eax, eax
ret
Function at 0x140422d30
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov eax, 0xffffffdf
cmp edx, 1
ja 0x140422dec
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
lea r14, [rcx + 0x10]
mov ecx, 0x2000000
call fcn.140419cc0
test eax, eax
je 0x140422d81
mov eax, r14d
shr eax, 2
and eax, 3
mov r15d, 4
sub r15d, eax
test eax, eax
cmove r15d, eax
jmp 0x140422d84
xor r15d, r15d
mov rax, qword [rbx + 8]
cmp rax, r15
je 0x140422da9
lea rcx, [r14 + r15*4]
lea rdx, [r14 + rax*4]
mov eax, dword [rbx]
shl eax, 4
add eax, 0x10
movsxd r8, eax
call fcn.1404513d0
mov qword [rbx + 8], r15
mov ecx, 0x2000000
call fcn.140419cc0
mov rcx, rbx
test eax, eax
je 0x140422dd3
mov edx, ebp
mov r8, rdi
mov r9, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140419d00
mov rdx, rdi
mov r8, rsi
cmp ebp, 1
jne 0x140422de5
call fcn.140422440
jmp 0x140422dea
call fcn.1404228c0
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140423ee0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
vmovdqu xmm0, xmmword [r8]
vpxor xmm0, xmm0, xmmword [rdx]
vmovd eax, xmm0
movzx edx, al
lea rsi, str.cw
movzx edx, byte [rdx + rsi]
vpshufb xmm1, xmm0, xmmword [0x14045a670]
vpmovzxdq ymm1, xmm1
vmovq r8, xmm1
lea rdi, [0x14045a1f0]
movzx r8d, byte [r8 + rdi]
shl r8d, 8
or r8d, edx
mov edx, eax
shr edx, 0x10
movzx edx, dl
lea rbx, [0x14045a0f0]
movzx r10d, byte [rdx + rbx]
shl r10d, 0x10
shr rax, 0x18
lea r14, [0x140459ff0]
movzx edx, byte [rax + r14]
shl edx, 0x18
or edx, r10d
lea eax, [rdx + r8]
vpextrd r10d, xmm0, 1
movzx r11d, r10b
movzx r11d, byte [r11 + rsi]
vpextrq r15, xmm1, 1
movzx r15d, byte [r15 + rdi]
shl r15d, 8
or r15d, r11d
mov r11d, r10d
shr r11d, 0x10
movzx r11d, r11b
movzx r11d, byte [r11 + rbx]
shl r11d, 0x10
shr r10, 0x18
movzx r10d, byte [r10 + r14]
shl r10d, 0x18
or r10d, r11d
lea ebp, [r10 + r15]
vpextrd r11d, xmm0, 2
movzx r12d, r11b
movzx r12d, byte [r12 + rsi]
vextracti128 xmm1, ymm1, 1
vmovq r13, xmm1
movzx r13d, byte [r13 + rdi]
shl r13d, 8
or r13d, r12d
mov r12d, r11d
shr r12d, 0x10
movzx r12d, r12b
movzx r12d, byte [r12 + rbx]
shl r12d, 0x10
or r12d, r13d
shr r11, 0x18
movzx r11d, byte [r11 + r14]
shl r11d, 0x18
or r11d, r12d
vpextrd r12d, xmm0, 3
movzx r13d, r12b
movzx esi, byte [r13 + rsi]
vpextrq r13, xmm1, 1
movzx r13d, byte [r13 + rdi]
shl r13d, 8
or r13d, esi
mov esi, r12d
shr esi, 0x10
movzx esi, sil
movzx esi, byte [rsi + rbx]
shl esi, 0x10
shr r12, 0x18
movzx edi, byte [r12 + r14]
shl edi, 0x18
or edi, esi
shrd r10d, r15d, 0x10
lea esi, [rdi + r13]
shrd edi, r13d, 0x10
bswap r11d
xor edi, r11d
rol r11d, 0x10
bswap esi
xor ebp, r11d
shrd edx, r8d, 0x10
bswap ebp
rol ebp, 0x10
mov r8d, edx
xor r8d, esi
mov ebx, r10d
bswap ebx
rol ebx, 0x10
xor r8d, ebp
mov ebp, edi
rol ebp, 0x10
xor ebp, r8d
bswap ebp
rol ebp, 0x10
mov r14d, r8d
rol r14d, 0x10
xor ebx, edx
mov edx, ebx
xor ebp, dword [r9]
xor ebp, r10d
mov dword [rcx], ebp
xor eax, dword [r9 + 4]
bswap edx
xor eax, edi
xor eax, r8d
bswap r8d
mov dword [rcx + 4], eax
xor edx, dword [r9 + 8]
xor edx, r14d
xor edx, esi
mov dword [rcx + 8], edx
xor r8d, dword [r9 + 0xc]
xor ebx, r11d
xor ebx, r8d
mov dword [rcx + 0xc], ebx
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
vzeroupper
ret
Function at 0x1404274b0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
push rax
mov qword [rsp], r8
mov r8d, dword [rdx]
mov eax, dword [rdx + 4]
bswap r8d
bswap eax
mov edx, r8d
shr edx, 4
xor edx, eax
and edx, 0xf0f0f0f
xor eax, edx
shl edx, 4
xor edx, r8d
mov r8d, edx
shr r8d, 0x10
movzx r9d, ax
xor r9d, r8d
xor eax, r9d
shl r9d, 0x10
xor r9d, edx
mov r8d, eax
shr r8d, 2
xor r8d, r9d
and r8d, 0x33333333
xor r9d, r8d
shl r8d, 2
xor r8d, eax
mov edx, r8d
shr edx, 8
xor edx, r9d
and edx, 0xff00ff
xor r9d, edx
shl edx, 8
xor edx, r8d
rol edx, 1
mov eax, edx
xor eax, r9d
and eax, 0xaaaaaaaa
xor edx, eax
xor eax, r9d
rol eax, 1
xor r9d, r9d
lea r8, [0x14045b290]
lea r11, [0x14045b390]
lea rsi, [0x14045b490]
lea rdi, [0x14045b590]
lea rbx, [0x14045b690]
lea r14, [0x14045b790]
lea r15, [0x14045b890]
lea r12, [0x14045b990]
nop dword [rax + rax]
mov ebp, edx
mov edx, dword [rcx + r9]
xor edx, ebp
mov r10d, edx
and r10d, 0x3f
mov r13d, edx
shr r13d, 8
and r13d, 0x3f
xor eax, dword [r8 + r10*4]
mov r10d, edx
shr r10d, 0x10
and r10d, 0x3f
shr edx, 0x18
and edx, 0x3f
xor eax, dword [r11 + r13*4]
mov r13d, ebp
rol r13d, 0x1c
xor r13d, dword [rcx + r9 + 4]
xor eax, dword [rsi + r10*4]
mov r10d, r13d
and r10d, 0x3f
xor eax, dword [rdi + rdx*4]
mov edx, r13d
shr edx, 8
and edx, 0x3f
xor eax, dword [rbx + r10*4]
mov r10d, r13d
shr r10d, 0x10
and r10d, 0x3f
shr r13d, 0x18
and r13d, 0x3f
xor eax, dword [r14 + rdx*4]
xor eax, dword [r15 + r10*4]
xor eax, dword [r12 + r13*4]
mov r13d, dword [rcx + r9 + 8]
xor r13d, eax
mov edx, r13d
and edx, 0x3f
mov edx, dword [r8 + rdx*4]
mov r10d, r13d
shr r10d, 8
and r10d, 0x3f
xor edx, dword [r11 + r10*4]
mov r10d, r13d
shr r10d, 0x10
and r10d, 0x3f
shr r13d, 0x18
and r13d, 0x3f
xor edx, dword [rsi + r10*4]
mov r10d, eax
rol r10d, 0x1c
xor r10d, dword [rcx + r9 + 0xc]
xor edx, dword [rdi + r13*4]
mov r13d, r10d
and r13d, 0x3f
xor edx, dword [rbx + r13*4]
mov r13d, r10d
shr r13d, 8
and r13d, 0x3f
xor edx, dword [r14 + r13*4]
mov r13d, r10d
shr r13d, 0x10
and r13d, 0x3f
xor edx, dword [r15 + r13*4]
shr r10d, 0x18
and r10d, 0x3f
xor edx, dword [r12 + r10*4]
xor edx, ebp
add r9, 0x10
cmp r9d, 0x80
jne 0x140427580
ror edx, 1
mov ecx, edx
xor ecx, eax
and ecx, 0xaaaaaaaa
xor edx, ecx
xor ecx, eax
shrd ecx, eax, 1
mov r8d, ecx
shr r8d, 8
xor r8d, edx
and r8d, 0xff00ff
xor edx, r8d
shl r8d, 8
xor r8d, ecx
mov eax, r8d
shr eax, 2
xor eax, edx
and eax, 0x33333333
xor edx, eax
shl eax, 2
xor eax, r8d
mov ecx, edx
shr ecx, 0x10
movzx r8d, ax
xor r8d, ecx
xor eax, r8d
shl r8d, 0x10
xor r8d, edx
mov ecx, r8d
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
xor eax, ecx
shl ecx, 4
xor ecx, r8d
bswap ecx
mov rdx, qword [rsp]
mov dword [rdx], ecx
bswap eax
mov dword [rdx + 4], eax
xor eax, eax
add rsp, 8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140429b88
Capabilities:
Parse pe header

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

Function at 0x140435d9c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140435ee4

Function at 0x140435ee4
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140435ee4
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 0x140435f53
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140435f53
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140435f53
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140435f53
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140435f53
cmp dword [rcx + 0x84], 0xe
jbe 0x140435f53
cmp dword [rcx + 0xf8], 0
je 0x140435f53
mov ecx, ebx
call fcn.140435e1c
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.140436078
nop
cmp dword [rbp + 0x20], 0
je 0x140435fa1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140435eb0
int3

Function at 0x14043b4f0
Capabilities:
Parse pe header

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

Function at 0x140445bc8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14043ec9c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140445c69
cmp ebx, dword [rsp + 0x30]
je 0x140445c62
test esi, esi
je 0x140445c62
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140445c3d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140445c4a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140445c27
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140445c4e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140445c6b
mov eax, 1
jmp 0x140445c6b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140446ac4
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 0x140446af4
xor eax, eax
jmp 0x140446bb7
mov rbp, rbx
cmp word [rax], si
je 0x140446b19
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140446b00
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140446afc
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.14043eb5c
movsxd r14, eax
test eax, eax
jne 0x140446b57
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140446aed
mov rcx, r14
call fcn.14043ea6c
mov rdi, rax
test rax, rax
jne 0x140446b70
xor ecx, ecx
call fcn.14043ea30
jmp 0x140446b4c
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.14043eb5c
test eax, eax
jne 0x140446ba1
mov rcx, rdi
call fcn.14043ea30
jmp 0x140446bab
xor ecx, ecx
call fcn.14043ea30
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 0x140448820
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140448836
mov al, 1
jmp 0x140448896
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140448847
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140448894
mov ecx, dword [rcx + 0x18]
nop
call fcn.140446bd4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140448894
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140448894
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140448894
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140448896
xor al, al
add rsp, 0x20
pop rbx
ret