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

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x10
mov qword [rsp + 0x30], rbx
lea r13, [0x140000000]
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov qword [rsp + 0x40], rsi
mov rax, rcx
mov qword [rsp + 8], r14
xor r12d, r12d
mov qword [rsp], r15
test rdi, rdi
je 0x140003770
cmp rax, rdi
jae 0x1400038e8
movzx r8d, byte [rax]
test r8b, r8b
je 0x1400038e8
xor ebx, ebx
mov ecx, r8d
shr rcx, 3
mov rdx, rdi
movsx r9, byte [rcx + r13 + 0x79c00]
test r9d, r9d
sete bl
add ebx, r9d
test rdi, rdi
jne 0x1400037a6
movsxd rdx, ebx
add rdx, rax
xor esi, esi
lea rcx, [rax + 1]
cmp rax, rdx
cmovb esi, r8d
cmp rcx, rdx
jae 0x1400037be
movzx r15d, byte [rcx]
jmp 0x1400037c1
xor r15b, r15b
lea rcx, [rax + 2]
cmp rcx, rdx
jae 0x1400037d0
movzx r14d, byte [rcx]
jmp 0x1400037d3
xor r14b, r14b
lea rcx, [rax + 3]
cmp rcx, rdx
jae 0x1400037e1
movzx ebp, byte [rcx]
jmp 0x1400037e4
xor bpl, bpl
lea r10, [r9*4]
movzx ecx, sil
mov r9d, dword [r10 + r13 + 0x85940]
and r9d, ecx
movzx r8d, r15b
shl r9d, 6
mov ecx, r8d
and ecx, 0x3f
movzx edx, r14b
or r9d, ecx
movzx r11d, bpl
shl r9d, 6
and r8d, 0xc0
mov ecx, edx
and edx, 0xc0
and ecx, 0x3f
or r9d, ecx
mov ecx, r11d
shr r11d, 2
and ecx, 0x3f
or r11d, edx
shl r9d, 6
shr r11d, 2
or r9d, ecx
mov ecx, dword [r10 + r13 + 0x79be8]
or r11d, r8d
shr r9d, cl
shr r11d, 2
mov edx, r9d
cmp r9d, dword [r10 + r13 + 0x79bd0]
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
xor r8d, r8d
or r11d, ecx
mov ecx, 0x80
cmp edx, 0xd800
cmove r8d, ecx
xor edx, edx
or r11d, r8d
mov ecx, 0x100
cmp r9d, 0xffff
cmova edx, ecx
mov ecx, dword [r10 + r13 + 0x85928]
or r11d, edx
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x1400038da
xor edx, edx
test bpl, bpl
setne dl
xor ecx, ecx
test r14b, r14b
setne cl
add edx, ecx
xor ecx, ecx
test r15b, r15b
setne cl
add edx, ecx
xor ecx, ecx
test sil, sil
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
movsxd rcx, ebx
add rax, rcx
inc r12d
jmp 0x140003762
mov r15, qword [rsp]
mov eax, r12d
mov r14, qword [rsp + 8]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x10
pop r13
pop r12
pop rdi
ret
Function at 0x140006fa0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x100]
lea r11, [0x140079ee0]
mov rax, qword [rcx + 0x108]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x4054], ebx
jne 0x140007036
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.14001b850
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140007040
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0x108]
lea r9, [0x140079ee0]
movss xmm2, dword [rcx + 0x120]
movss xmm3, dword [rcx + 0x124]
movsxd rcx, dword [rcx + 0x100]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x14000a980
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140094040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, qword [0x140095da0]
mov r11d, 1
mov r15d, dword [rsp + 0x90]
mov r14d, edx
mov r9d, r15d
mov r10, rcx
mov rbx, qword [rsi + 0x4008]
mov eax, dword [rbx + 0x14]
and eax, 4
or eax, 0x1000103
or r15d, eax
mov eax, 3
bt r9d, 0x1e
mov r9d, dword [rsi + 0x49b8]
cmovae eax, r11d
bts r9d, 8
mov dword [rsi + 0x49b8], r9d
mov dword [rsi + 0x49f0], eax
cmp qword [rbx + 0x1b8], 0
jne 0x14000aa1f
cmp qword [rsi + 0x4da8], 0
mov eax, 0x260
je 0x14000aa24
mov eax, 0x230
movss xmm2, dword [rbx + rax]
lea rcx, [rsp + 0x30]
movss xmm3, dword [rbx + rax + 4]
subss xmm3, dword [rbx + 0x114]
subss xmm2, dword [rbx + 0x110]
mov rdx, qword [r8]
call fcn.140013a90
movsd xmm0, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
or r9d, 2
movsd qword [rsi + 0x49d8], xmm0
xor edx, edx
mov dword [rsi + 0x49b8], r9d
mov dword [rsi + 0x49c0], r11d
mov r9, qword [rbx + 8]
test r10, r10
je 0x14000aa94
mov dword [rsp + 0x28], r14d
lea r8, str._s__s__08X
mov qword [rsp + 0x20], r10
call fcn.140002ff0
jmp 0x14000aaa5
lea r8, str._s__08X
mov dword [rsp + 0x20], r14d
call fcn.140002ff0
mov rcx, qword [rsp + 0x30]
mov r8d, r15d
movss xmm6, dword [rsi + 0x3920]
xor edx, edx
call fcn.14000d910
mov rdi, qword [rsi + 0x4008]
movzx ebp, al
movss dword [rsi + 0x3920], xmm6
cmp word [rdi + 0xcc], 1
mov dword [rdi + 0x88], r14d
jne 0x14000aaec
movsd xmm0, qword [rdi + 0x28]
movsd qword [rbx + 0x110], xmm0
mov r9d, r14d
lea rdx, [0x140078e51]
not r9d
lea r10, [0x140079ee0]
mov ebx, r9d
mov r8b, 0x23
cmp r8b, 0x23
jne 0x14000ab19
cmp byte [rdx], r8b
jne 0x14000ab19
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x14000ab06
not ebx
cmp dword [rsi + 0x406c], ebx
jne 0x14000ab49
xor edx, edx
xor ecx, ecx
call fcn.140007200
cmp dword [rsi + 0x4ae8], r14d
jne 0x14000ab96
bt r15d, 0x17
jb 0x14000ab96
cmp word [rdi + 0x16c], 0
jne 0x14000ab6c
cmp byte [rdi + 0x172], 0
je 0x14000ab96
xor edx, edx
mov rcx, rdi
call fcn.140010090
xor edx, edx
mov rcx, rdi
call fcn.140016640
mov rdx, rdi
mov ecx, ebx
call fcn.140007200
mov eax, dword [rsi + 0x4b0c]
mov dword [rsi + 0x4090], eax
movzx eax, bpl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400483d0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x1400147b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140094040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140095da0]
mov edi, ecx
cmp byte [rbx + 0x4cf1], 0
jne 0x140014811
cmp byte [rbx + 0x4cf2], 0
jne 0x140014811
movsx r9d, word [rbx + 0x5e38]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002f70
test dil, 2
je 0x14001493f
jmp 0x14001489a
movss xmm1, dword [rbx + 0x39c4]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5e38]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140086820]
mulss xmm1, dword [0x140086810]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe48]
addss xmm1, dword [rbx + 0xe4c]
mov qword [rbx + 0x49d0], rax
mov dword [rbx + 0x49bc], 1
movss dword [rbx + 0x49c8], xmm0
movss dword [rbx + 0x49cc], xmm1
movss xmm0, dword [rbx + 0x3a20]
mulss xmm0, dword [0x14008675c]
or dword [rbx + 0x49b8], 0x41
movss dword [rbx + 0x4a18], xmm0
call fcn.140002f70
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400148f0
lea r11, [0x140079ee0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x1400148d3
cmp byte [r8], r9b
jne 0x1400148d3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400148c0
not ecx
call fcn.14000aeb0
test rax, rax
je 0x14001493f
cmp byte [rax + 0xbe], 0
je 0x14001493f
mov byte [rax + 0xc3], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xc5], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xe4], 1
mov edx, 0x10
inc word [rbx + 0x5e38]
movsx r9d, word [rbx + 0x5e38]
call fcn.140002f70
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.14000d910
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400483d0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001a440
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140095da0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001a4a3
mov qword [rsp], rbx
lea rbx, [0x140079ee0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001a483
cmp byte [r8], r9b
jne 0x14001a483
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001a470
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f00]
not eax
mov r8, qword [r10 + 0x5f08]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001a4cf
cmp dword [r8 + 8], eax
je 0x14001a4d6
add r8, 0x48
cmp r8, rcx
jne 0x14001a4c0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret

Function at 0x14001a4e0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [0x1400799f8]
call fcn.140003210
mov rbx, rax
test rax, rax
je 0x14001a65a
mov qword [rsp + 0x30], rsi
mov rcx, rax
mov qword [rsp + 0x38], rdi
call fcn.14004f2e8
mov esi, eax
cmp eax, 0xffffffff
je 0x14001a648
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.14004fd44
test eax, eax
jne 0x14001a648
mov rcx, rbx
call fcn.14004f2e8
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14001a648
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.14004fd44
test eax, eax
jne 0x14001a648
cmp rdi, 0xffffffffffffffff
je 0x14001a648
mov rcx, rdi
call fcn.140007800
mov rsi, rax
test rax, rax
je 0x14001a648
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.140053724
mov rcx, rbx
cmp rax, rdi
je 0x14001a5af
call fcn.14004fa3c
mov rcx, rsi
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp fcn.1400078a0
call fcn.14004fa3c
test rdi, rdi
je 0x14001a5c4
mov rdx, rdi
mov rcx, rsi
call fcn.14001a660
mov r8, qword [0x140095da0]
test r8, r8
je 0x14001a631
movsx rdx, word [r8 + 0x6048]
lea rcx, [r8 + 0x604c]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001a626
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6048], cx
movsx rax, cx
lea rcx, [r8 + 0x604c]
lea rcx, [rcx + rax*8]
xor eax, eax
mov dword [rcx], r9d
mov dword [rcx + 4], eax
inc word [rcx + 6]
inc dword [r8 + 0x6044]
mov rcx, rsi
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp fcn.1400534b0
mov rcx, rbx
call fcn.14004fa3c
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x14002f220
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x140095da0]
test rax, rax
je 0x14002f23b
mov rbx, qword [rax + 0x90]
jmp 0x14002f23d
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14002f268
mov dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret
Function at 0x140046110
Capabilities:
Encode data using xor

Disassembly:
movsd xmm1, qword [0x1400867c8]
comisd xmm0, xmm1
jbe 0x140046130
movsd xmm2, qword [0x140086908]
addsd xmm0, xmm2
comisd xmm0, xmm1
ja 0x140046126
movsd xmm1, qword [0x140086900]
comisd xmm1, xmm0
jbe 0x140046150
movsd xmm2, qword [0x1400867d8]
addsd xmm0, xmm2
comisd xmm1, xmm0
ja 0x140046146
movsd xmm3, qword [0x1400867b8]
mov ecx, 1
movsd xmm4, qword [0x140086a40]
movaps xmm2, xmm3
xorps xmm5, xmm5
nop dword [rax + rax]
xorps xmm2, xmm4
lea eax, [rcx + 1]
imul eax, ecx
add ecx, 2
mulsd xmm2, xmm0
mulsd xmm2, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm2, xmm1
ucomisd xmm2, xmm5
addsd xmm3, xmm2
jp 0x140046170
jne 0x140046170
movaps xmm0, xmm3
ret

Function at 0x1400461a0
Capabilities:
Encode data using xor

Disassembly:
movsd xmm2, qword [0x1400867c8]
movaps xmm1, xmm0
comisd xmm0, xmm2
jbe 0x1400461ca
movsd xmm0, qword [0x140086908]
nop dword [rax]
addsd xmm1, xmm0
comisd xmm1, xmm2
ja 0x1400461c0
movsd xmm0, qword [0x140086900]
comisd xmm0, xmm1
jbe 0x1400461ea
movsd xmm2, qword [0x1400867d8]
addsd xmm1, xmm2
comisd xmm0, xmm1
ja 0x1400461e0
xorps xmm4, xmm4
xorps xmm3, xmm3
ucomisd xmm1, xmm4
mov edx, 1
movaps xmm2, xmm1
jp 0x140046204
jne 0x140046204
xorps xmm0, xmm0
ret
movsd xmm5, qword [0x140086a40]
mov ecx, 6
nop dword [rax]
nop word [rax + rax]
addsd xmm3, xmm2
mov eax, ecx
imul eax, edx
xorps xmm2, xmm5
mulsd xmm2, xmm1
inc edx
add ecx, 4
mulsd xmm2, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm2, xmm0
ucomisd xmm2, xmm4
jp 0x140046220
jne 0x140046220
movaps xmm0, xmm3
ret
Function at 0x140048e64
Capabilities:
Parse pe header

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

Function at 0x14004f09c
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.140069360
sub rsp, rax
mov rax, qword [0x140094040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005b5b0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004f0eb
mov rax, rbp
jmp 0x14004f1f3
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x954f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005b840
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x954f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004f1ef
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 0x14004f1ef
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005b840
test rax, rax
js 0x14004f1ef
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004f1ef
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004f1e1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004f1e1
cmp byte [rcx], 0xd
jne 0x14004f1c7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004f1d6
cmp byte [rcx + 1], 0xa
jne 0x14004f1d6
inc rcx
jmp 0x14004f1d6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x94350]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004f1a9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004f1f3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400483d0
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 0x140059cd0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140059acc
Function at 0x14005bfc4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400954f0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14005c01b
cmp word [rdx], r13w
jne 0x14005c01b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005c020
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005c145
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005c166
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005c059
mov rdx, r9
mov word [rbx], cx
jmp 0x14005c080
cmp r9, r8
jae 0x14005c090
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14005c03a
jmp 0x14005c145
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005c13a
cmp dword [rsp + 0x80], esi
je 0x14005c13a
lea r8, [0x1400954f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005c112
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005c0e2
mov word [rbx], r13w
jmp 0x14005c142
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14005c0ef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005c142
cmp word [rsp + 0x70], r13w
jne 0x14005c11f
cmp rbx, r14
je 0x14005c0dc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005b848
cmp word [rsp + 0x70], r13w
je 0x14005c145
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400954f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005c13f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005c145
Function at 0x14005ffa0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005ffb6
mov al, 1
jmp 0x140060016
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005ffc7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140060014
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400635ac
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140060014
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140060014
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140060014
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140060016
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140062678
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 0x1400626a8
xor eax, eax
jmp 0x14006276b
mov rbp, rbx
cmp word [rax], si
je 0x1400626cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400626b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400626b0
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.140062598
movsxd r14, eax
test eax, eax
jne 0x14006270b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400626a1
mov rcx, r14
call fcn.14005e6fc
mov rdi, rax
test rax, rax
jne 0x140062724
xor ecx, ecx
call fcn.14005cd9c
jmp 0x140062700
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.140062598
test eax, eax
jne 0x140062755
mov rcx, rdi
call fcn.14005cd9c
jmp 0x14006275f
xor ecx, ecx
call fcn.14005cd9c
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 0x140066ed4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400553e8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140066f5e
cmp byte [rbp - 0x21], r15b
je 0x140066f59
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140066f94
call fcn.14005cfec
test eax, eax
jne 0x140066f80
cmp byte [rbp - 0x21], r15b
je 0x140066f78
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140066f94
cmp byte [rbp - 0x21], r15b
je 0x140066f91
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140060ce4
test eax, eax
jne 0x140067034
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400553e8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140066fd3
cmp byte [rbp - 0x21], r15b
je 0x140067008
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140067008
call fcn.14005cfec
test eax, eax
jne 0x140066ff4
cmp byte [rbp - 0x21], r15b
je 0x140066fed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140067008
cmp byte [rbp - 0x21], r15b
je 0x140067005
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140060ce4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140067034
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140067037
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140067045
mov rcx, rdi
call fcn.14005cd9c
cmp byte [rbp + 0x3f], r15b
je 0x140067054
mov rcx, qword [rbp + 0x27]
call fcn.14005cd9c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret