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

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1400a6040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [rcx]
mov ebx, edx
test al, al
je 0x14003c448
cmp al, 0x25
jne 0x14003c43d
cmp byte [rcx + 1], al
jne 0x14003c448
inc rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x14003c431
cmp byte [rcx], 0x25
jne 0x14003c518
cmp byte [rcx + 1], 0x25
je 0x14003c518
xorps xmm3, xmm3
mov r8, rcx
cvtss2sd xmm3, xmm2
mov edx, 0x40
lea rcx, [rsp + 0x30]
movq r9, xmm3
call fcn.140002710
cmp byte [rsp + 0x30], 0x20
lea rcx, [rsp + 0x30]
jne 0x14003c48d
inc rcx
cmp byte [rcx], 0x20
je 0x14003c485
lea eax, [rbx - 4]
cmp eax, 1
jbe 0x14003c507
movzx edx, byte [rcx]
movzx r8d, dl
cmp dl, 0x2d
jne 0x14003c4a6
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
xorps xmm1, xmm1
cmovne rax, rcx
cmp r8b, 0x2b
lea rcx, [rax + 1]
cmovne rcx, rax
movzx eax, byte [rcx]
cmp al, 0x30
jl 0x14003c4f6
movss xmm2, dword [0x140095f00]
nop dword [rax]
cmp al, 0x39
ja 0x14003c4f6
movsx eax, byte [rcx]
inc rcx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x14003c4d0
cmp dl, 0x2d
jne 0x14003c513
xorps xmm1, xmmword [0x140096480]
movaps xmm0, xmm1
jmp 0x14003c51b
call fcn.140068a60
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14003c51b
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140053ea0
add rsp, 0x80
pop rbx
ret

Function at 0x14003c540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1400a6040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [rcx]
mov ebx, edx
test al, al
je 0x14003c578
cmp al, 0x25
jne 0x14003c56d
cmp byte [rcx + 1], al
jne 0x14003c578
inc rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x14003c561
cmp byte [rcx], 0x25
jne 0x14003c63a
cmp byte [rcx + 1], 0x25
je 0x14003c63a
mov r8, rcx
movaps xmm3, xmm2
lea rcx, [rsp + 0x30]
movq r9, xmm2
mov edx, 0x40
call fcn.140002710
cmp byte [rsp + 0x30], 0x20
lea rcx, [rsp + 0x30]
jne 0x14003c5b9
inc rcx
cmp byte [rcx], 0x20
je 0x14003c5b1
lea eax, [rbx - 4]
cmp eax, 1
jbe 0x14003c62d
movzx edx, byte [rcx]
movzx r8d, dl
cmp dl, 0x2d
jne 0x14003c5d2
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
xorps xmm1, xmm1
cmovne rax, rcx
cmp r8b, 0x2b
lea rcx, [rax + 1]
cmovne rcx, rax
movzx eax, byte [rcx]
cmp al, 0x30
jl 0x14003c61c
movsd xmm2, qword [0x140095e98]
cmp al, 0x39
ja 0x14003c61c
movsx eax, byte [rcx]
inc rcx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x14003c5f8
cmp dl, 0x2d
jne 0x14003c635
xorps xmm1, xmmword [0x140096470]
movaps xmm0, xmm1
jmp 0x14003c63d
call fcn.140068a60
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14003c63d
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140053ea0
add rsp, 0x80
pop rbx
ret
Function at 0x14003e560
Capabilities:
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400a6040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
movaps xmm1, xmm2
lea rcx, [rsp + 0x30]
mov rsi, r9
mov rdi, rdx
call fcn.14003d160
cmp qword [rax + 0x18], 0xf
jbe 0x14003e59a
mov rax, qword [rax]
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x50]
mov r8, rax
mov dword [rsp + 0x20], 0x20
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14003e5f4
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e5ef
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003e61a
call fcn.1400542b4
lea rcx, [rsp + 0x50]
call fcn.140068a60
cvtsd2ss xmm0, xmm0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140053ea0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
call fcn.140069338
int3
Function at 0x14004ae80
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, qword [0x1400a8e30]
xorps xmm2, xmm2
movaps xmmword [rsp + 0x40], xmm6
xorps xmm0, xmm0
unpcklps xmm0, xmm2
xorps xmm1, xmm1
unpcklps xmm1, xmm2
movsd qword [rbx + 0x1ae4], xmm0
movsd qword [rbx + 0x1aec], xmm1
mov dword [rbx + 0x1ac8], 2
test rbx, rbx
jne 0x14004aee0
mov r8d, 0xb37
lea rdx, str.C:UsersAdministratorDesktopkursk_updated_externalImguiimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___or_ImGui::SetCurrentContext____
call fcn.140067e4c
mov rbx, qword [0x1400a8e30]
movsd xmm0, qword [rbx + 0x10]
lea rcx, [rbx + 0x1a78]
movdqa xmm6, xmmword [0x140096210]
lea rdx, [rsp + 0x20]
movsd qword [rbx + 0x1af4], xmm0
mov dword [rbx + 0x1acc], 2
movups xmm0, xmmword [rbx + 0x1610]
mov dword [rsp + 0x20], 2
movups xmmword [rsp + 0x24], xmm0
call fcn.140016290
movsd xmm0, qword [0x140095b58]
xor r8d, r8d
movzx eax, byte [0x140095b64]
mov ecx, dword [0x140095b60]
movups xmmword [rbx + 0x1610], xmm6
cmp dword [0x1400a6090], 2
movsd qword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], ecx
mov byte [rsp + 0x2c], al
jl 0x14004b0b1
movdqa xmm2, xmmword [0x1400960c0]
mov r8d, 0xc
movdqa xmm5, xmmword [0x140096490]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1400960e0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
movdqa xmm6, xmmword [str.9999]
movdqa xmm4, xmmword [0x140096120]
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, dword [0x140095b58]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140096130]
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
movdqa xmm2, xmmword [0x1400960d0]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmm6
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rsp + 0x24]
andps xmm2, xmm4
packuswb xmm2, xmm2
pmuldq xmm1, xmm5
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140096130]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
movd dword [rsp + 0x24], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
movd xmm0, ecx
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x140096130]
xorps xmm3, xmm0
movd dword [rsp + 0x28], xmm3
mov eax, r8d
lea r9, [rsp + 0x20]
add r9, rax
nop dword [rax]
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 0xd
jl 0x14004b0c0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x201f
call fcn.14000aaa0
call fcn.14000da50
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
jmp fcn.14000e5c0
Function at 0x140053d00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140053d61
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140053d20
mov ecx, dword [r9]
jmp 0x140053e48
cmp ecx, 0x4e0
jb 0x140053e48
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140053d80
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140053dd0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140054bc8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140054c12
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140054c12
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140054c12
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140054c12
cmp dword [rcx + 0x84], 0xe
jbe 0x140054c12
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140054c14
xor al, al
add rsp, 0x28
ret
Function at 0x14005a0bc
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.140079750
sub rsp, rax
mov rax, qword [0x1400a6040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14006b3c0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005a10b
mov rax, rbp
jmp 0x14005a217
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 + 0xa87d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006b654
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xa87d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005a213
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005a213
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006b654
test rax, rax
js 0x14005a213
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005a213
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005a205
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005a205
cmp byte [rcx], 0xd
jne 0x14005a1eb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005a1fa
cmp byte [rcx + 1], 0xa
jne 0x14005a1fa
inc rcx
jmp 0x14005a1fa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa6410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005a1cd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005a217
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140053ea0
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 0x140068b60
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 0x140068bcf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140068bcf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140068bcf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140068bcf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140068bcf
cmp dword [rcx + 0x84], 0xe
jbe 0x140068bcf
cmp dword [rcx + 0xf8], 0
je 0x140068bcf
mov ecx, ebx
call fcn.140068c74
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.140068a68
nop
cmp dword [rbp + 0x20], 0
jne 0x140068c30
call fcn.140071c08
cmp eax, 1
jne 0x140068c20
xor dl, dl
jmp 0x140068c2a
call fcn.140071b90
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140068c3b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140068c44
int3
xor r8d, r8d
xor edx, edx
jmp 0x140068b60

Function at 0x140068d48
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 0x140068bcf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140068bcf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140068bcf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140068bcf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140068bcf
cmp dword [rcx + 0x84], 0xe
jbe 0x140068bcf
cmp dword [rcx + 0xf8], 0
je 0x140068bcf
mov ecx, ebx
call fcn.140068c74
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.140068a68
nop
cmp dword [rbp + 0x20], 0
jne 0x140068c30
call fcn.140071c08
cmp eax, 1
jne 0x140068c20
xor dl, dl
jmp 0x140068c2a
call fcn.140071b90
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140068c3b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140068c44
int3
xor r8d, r8d
xor edx, edx
jmp 0x140068b60
Function at 0x14006bce4
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
xor edi, edi
mov rax, r15
lea rcx, [0x1400a87d0]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x14006bd3a
cmp word [rdx], r9w
jne 0x14006bd3a
or byte [rax + rbp*8 + 0x38], 4
jmp 0x14006bd3f
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x14006bebe
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x14006be89
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x14006bd87
cmp rcx, r8
jae 0x14006bda7
cmp word [rcx], r9w
jne 0x14006bd87
add rax, 4
mov edx, r9d
jmp 0x14006bd8a
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x14006bd5c
jmp 0x14006bebe
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006be82
cmp dword [rsp + 0x80], edi
je 0x14006be82
lea r9, [0x1400a87d0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x14006be5c
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x14006be0f
mov word [rbx], bp
jmp 0x14006bebb
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x14006be2a
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x14006bebb
cmp word [rsp + 0x70], bp
jne 0x14006be68
cmp rbx, rsi
je 0x14006be07
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14006b65c
cmp word [rsp + 0x70], bp
je 0x14006bebe
mov word [rbx], 0xd
jmp 0x14006bebb
mov rcx, r15
lea r9, [0x1400a87d0]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14006beb8
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14006bebe
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x1400707f4
Capabilities:
Get file size

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

Function at 0x140071598
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ebx, eax
test eax, eax
je 0x1400715e0
test rdi, rdi
je 0x1400715cf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.140071c38
cmp eax, 1
je 0x1400715e0
mov eax, 4
jmp 0x140071625
call fcn.140071bc4
cmp eax, 2
jne 0x14007161c
call fcn.14006d614
test al, al
je 0x14007161c
call fcn.14006d760
test al, al
jne 0x140071612
bts esi, 0x15
xor ecx, ecx
mov rdx, rdi
mov r8, rbp
mov r9d, esi
call fcn.14006d534
jmp 0x140071625
call fcn.14006d698
mov rcx, rax
jmp 0x140071602
neg ebx
sbb eax, eax
neg eax
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400733c8
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 0x1400733f8
xor eax, eax
jmp 0x1400734bb
mov rbp, rbx
cmp word [rax], si
je 0x14007341d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140073404
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140073400
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.1400732e8
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14007345e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400733f1
call fcn.14006ec10
mov rdi, rax
test rax, rax
jne 0x140073474
xor ecx, ecx
call fcn.14006cf40
jmp 0x140073453
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.1400732e8
test eax, eax
jne 0x1400734a5
mov rcx, rdi
call fcn.14006cf40
jmp 0x1400734af
xor ecx, ecx
call fcn.14006cf40
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 0x140077ca0
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.14005a3a4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140077d2a
cmp byte [rbp - 0x21], r15b
je 0x140077d25
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140077d60
call fcn.14006d298
test eax, eax
jne 0x140077d4c
cmp byte [rbp - 0x21], r15b
je 0x140077d44
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140077d60
cmp byte [rbp - 0x21], r15b
je 0x140077d5d
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.14006aa3c
test eax, eax
jne 0x140077e00
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14005a3a4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140077d9f
cmp byte [rbp - 0x21], r15b
je 0x140077dd4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140077dd4
call fcn.14006d298
test eax, eax
jne 0x140077dc0
cmp byte [rbp - 0x21], r15b
je 0x140077db9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140077dd4
cmp byte [rbp - 0x21], r15b
je 0x140077dd1
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.14006aa3c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140077e00
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140077e03
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140077e11
mov rcx, rdi
call fcn.14006cf40
cmp byte [rbp + 0x3f], r15b
je 0x140077e20
mov rcx, qword [rbp + 0x27]
call fcn.14006cf40
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