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

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400d6040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r10, rcx
test al, al
je 0x14009d710
cmp al, 0x25
jne 0x14009d704
cmp byte [r10 + 1], al
jne 0x14009d710
inc r10
movzx eax, byte [r10 + 1]
inc r10
test al, al
jne 0x14009d6f7
cmp byte [r10], 0x25
jne 0x14009d83a
cmp byte [r10 + 1], 0x25
je 0x14009d83a
mov rcx, r10
lea r11, [rsp + 0x20]
call fcn.140095060
mov r8, rax
cmp r10, rax
jae 0x14009d770
movabs r9, 0x800000000000009
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r10]
inc r10
lea ecx, [rdx - 0x24]
cmp cl, 0x3b
ja 0x14009d765
bt r9, rcx
jb 0x14009d76b
mov byte [r11], dl
inc r11
cmp r10, r8
jb 0x14009d750
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.140067230
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x14009d7a8
inc rcx
cmp byte [rcx], 0x20
je 0x14009d7a0
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x14009d828
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x14009d7c3
movzx r8d, byte [rcx + 1]
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x14009d7d9
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x14009d816
movss xmm2, dword [0x1400c2958]
cmp al, 0x39
ja 0x14009d816
movzx eax, al
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 0x14009d7f0
cmp r9b, 0x2d
jne 0x14009d835
xorps xmm1, xmmword [0x1400c2f50]
movaps xmm0, xmm1
jmp 0x14009d83d
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14009d83d
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400a9ce0
add rsp, 0x90
pop rbx
ret
Function at 0x14009d860
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400d6040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r10, rcx
test al, al
je 0x14009d8a0
cmp al, 0x25
jne 0x14009d894
cmp byte [r10 + 1], al
jne 0x14009d8a0
inc r10
movzx eax, byte [r10 + 1]
inc r10
test al, al
jne 0x14009d887
cmp byte [r10], 0x25
jne 0x14009d9c4
cmp byte [r10 + 1], 0x25
je 0x14009d9c4
mov rcx, r10
lea r11, [rsp + 0x20]
call fcn.140095060
mov r8, rax
cmp r10, rax
jae 0x14009d900
movabs r9, 0x800000000000009
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r10]
inc r10
lea ecx, [rdx - 0x24]
cmp cl, 0x3b
ja 0x14009d8f5
bt r9, rcx
jb 0x14009d8fb
mov byte [r11], dl
inc r11
cmp r10, r8
jb 0x14009d8e0
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.140067230
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x14009d938
nop dword [rax]
inc rcx
cmp byte [rcx], 0x20
je 0x14009d930
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x14009d9b6
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x14009d953
movzx r8d, byte [rcx + 1]
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x14009d969
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x14009d9a4
movsd xmm2, qword [0x1400c28e0]
cmp al, 0x39
ja 0x14009d9a4
movzx eax, al
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 0x14009d980
cmp r9b, 0x2d
jne 0x14009d9bf
xorps xmm1, xmmword [0x1400c2f40]
movaps xmm0, xmm1
jmp 0x14009d9c7
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14009d9c7
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400a9ce0
add rsp, 0x90
pop rbx
ret
Function at 0x1400a0e40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbx, r8
mov r14, rdx
mov r8, qword [r8 + 0x10]
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400a0e69
mov rdx, qword [rbx]
movabs rdi, 0xcbf29ce484222325
xor ecx, ecx
test r8, r8
je 0x1400a0ea3
movabs r9, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
xor rdi, rax
imul rdi, r9
inc rcx
cmp rcx, r8
jb 0x1400a0e90
mov r9, rdi
mov r8, rbx
lea rdx, [rsp + 0x20]
call fcn.1400a1390
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1400a0eca
mov qword [r14], rax
mov byte [r14 + 8], 0
jmp 0x1400a108d
movabs rax, 0x492492492492492
cmp qword [0x1401519d0], rax
jne 0x1400a0eeb
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [0x1401519c8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov ecx, 0x38
call fcn.1400a9e28
mov rsi, rax
mov qword [rsp + 0x38], rax
mov rdx, rbx
lea rcx, [rax + 0x10]
call fcn.140001ea0
mov ecx, dword [rbx + 0x20]
mov dword [rsi + 0x30], ecx
mov r9, qword [0x1401519d0]
lea rcx, [r9 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x1400a0f3e
cvtsi2ss xmm0, rcx
jmp 0x1400a0f53
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rbx, qword [0x1401519f8]
xorps xmm2, xmm2
test rbx, rbx
js 0x1400a0f69
cvtsi2ss xmm2, rbx
jmp 0x1400a0f81
mov rcx, rbx
shr rcx, 1
mov rax, rbx
and eax, 1
or rcx, rax
cvtsi2ss xmm2, rcx
addss xmm2, xmm2
movaps xmm1, xmm0
divss xmm1, xmm2
movss xmm3, dword [0x1401519c0]
comiss xmm1, xmm3
seta al
test al, al
je 0x1400a1026
divss xmm0, xmm3
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
xor ecx, ecx
movss xmm1, dword [0x1400c2a00]
comiss xmm0, xmm1
jb 0x1400a0fcc
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x1400a0fcc
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 0x1400a0ffe
cmp rbx, 0x200
jae 0x1400a0ffb
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x1400a0ffe
mov rbx, rcx
mov rdx, rbx
call fcn.1400a1110
mov r9, rdi
lea r8, [rsi + 0x10]
lea rdx, [rsp + 0x30]
call fcn.1400a1390
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
mov r9, qword [0x1401519d0]
mov rdx, qword [rsp + 0x20]
mov r8, qword [rdx + 8]
inc r9
mov qword [0x1401519d0], r9
mov qword [rsi], rdx
mov qword [rsi + 8], r8
mov qword [r8], rsi
mov qword [rdx + 8], rsi
mov rax, qword [0x1401519f0]
and rax, rdi
add rax, rax
mov rcx, qword [0x1401519d8]
mov r9, qword [rcx + rax*8]
cmp r9, qword [0x1401519c8]
jne 0x1400a106e
mov qword [rcx + rax*8], rsi
jmp 0x1400a1080
cmp r9, rdx
jne 0x1400a1079
mov qword [rcx + rax*8], rsi
jmp 0x1400a1085
cmp qword [rcx + rax*8 + 8], r8
jne 0x1400a1085
mov qword [rcx + rax*8 + 8], rsi
mov qword [r14], rsi
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400a9004
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400a903e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400a9043
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400a908c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400aee40]
cmp byte [rcx + rax], 0
je 0x1400a908c
dec r8
sub rdx, 1
jne 0x1400a9072
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400a9850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400a911c
mov ebx, eax
test eax, eax
jne 0x1400a9880
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400a98e3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a98da
test al, 0x10
je 0x1400a98da
bt eax, 0xa
jae 0x1400a98d3
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400a98f4
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400a98cf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400a98cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400a98da
and dword [rsp + 0x3c], 0
jmp 0x1400a98df
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400aa9e4
Capabilities:
Parse pe header

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

Disassembly:
call fcn.1410cb28f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1410cb139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410cb11f
add dl, dl
jne 0x1410cb146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410cb1a6
xor eax, eax
add dl, dl
jne 0x1410cb155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410cb25d
add dl, dl
jne 0x1410cb166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410cb173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410cb180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410cb18d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410cb19a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1410cb12e
mov eax, 1
add dl, dl
jne 0x1410cb1b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410cb1c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410cb1ab
sub eax, ebx
mov ebx, 1
jne 0x1410cb1fc
mov ecx, 1
add dl, dl
jne 0x1410cb1de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410cb1eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410cb1d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410cb12e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1410cb218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410cb225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410cb20d
cmp eax, 0x7d00
jae 0x1410cb24b
cmp eax, 0x500
jb 0x1410cb246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410cb12e
cmp eax, 0x7f
ja 0x1410cb24e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410cb12e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410cb282
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 0x1410cb12e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001f500
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.1400497f0
sub rsp, rax
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14001f5c2
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001f56d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001f560
cmp rcx, 1
jb 0x14001f61a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001f590
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003cdc8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001f550
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001f5f3
lea rcx, [rsp + 0x80]
call fcn.14003e59c
jmp 0x14001f5f5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14002dd40
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140032330
int3

Function at 0x14001f620
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], ax
lea rbx, [rsp + 0x30]
mov edi, 0x28
mov dl, 0x4e
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001f67d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001f670
cmp rcx, 1
jb 0x14001f6f7
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001f693
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14003cdc8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001f660
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002dd40
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140032330
int3
Function at 0x14002e714
Capabilities:
Parse pe header

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

Function at 0x140032690
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 0x1400324fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400324fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400324fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400324fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400324fb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400324fb
cmp dword [rcx + 0xf8], 0
je 0x1400324fb
mov ecx, ebx
call fcn.1400325ac
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.140032388
nop
cmp dword [rbp + 0x20], 0
je 0x140032549
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140032554
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003248c
Function at 0x1400432c4
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 0x14004334b
mov rsi, rbx
cmp word [rax], bp
je 0x14004330a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400432f4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400432f0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140040b4c
mov rdi, rax
test rax, rax
je 0x140043338
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140049e50
mov rbp, rdi
xor ecx, ecx
call fcn.14003ef1c
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 0x140046ec0
Capabilities:
Get file size

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

Function at 0x140049700
Capabilities:
Parse pe header

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

Disassembly:
shr word [rsp + 0xe], 0x4d
test rcx, rcx
push 0x752038b5
lea rsp, [rsp + 0x18]
je 0x14127c0ef
lea r8, [0x14129aeb0]
push 0xffffffff8a98efb7
movzx r9d, byte [rax]
xor r9d, edx
and r9d, 0xff
mov r9d, dword [r8 + r9*4]
shr edx, 8
xor edx, r9d
sar dword [rsp + 3], 0x28
inc rax
xor edx, 0x5c1b7b26
dec rcx
lea rsp, [rsp + 8]
jne 0x14127c0b6
not edx
jmp 0x141282440
mov dword [rbp + riz], edx
push 0x1f9c599c
lea rsp, [rsp + 8]
jmp fcn.1412777d0
Function at 0x42b050
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov ebx, edx
cmp word [rcx], 0x5c
jne 0x42b07a
cmp word [rcx + 2], 0x5c
jne 0x42b07a
mov eax, 0x23bd
jmp 0x42b2bc
call fcn.0042b010
mov rsi, rax
mov rdi, rax
test rax, rax
jne 0x42b095
mov eax, 8
jmp 0x42b2bc
mov rcx, rsi
call fcn.00426280
cmp eax, 1
jl 0x42b0bf
movsxd rcx, eax
cmp word [rsi + rcx*2 - 2], 0x20
je 0x42b0b8
movsxd rax, eax
mov word [rsi + rax*2], 0
jmp 0x42b0bf
sub eax, 1
test eax, eax
jne 0x42b0a2
nop
mov ecx, 0x104
lea rdx, [rbp + 0x2e]
call sub.kernel32.dll_GetCurrentDirectoryW
movzx r13, word [rbp + 0x2e]
movzx rax, word [rbp + 0x2e]
sub ax, 0x61
cmp ax, 0x1a
jae 0x42b0ed
movzx r13, word [rbp + 0x2e]
and r13w, 0xffdf
mov word [rbp + 0x26], 0x3d
movzx rcx, word [rsi]
call fcn.00426450
test al, al
je 0x42b127
cmp word [rsi + 2], 0x3a
jne 0x42b127
movzx rax, word [rsi]
movzx rcx, word [rsi]
sub cx, 0x61
cmp cx, 0x1a
jae 0x42b121
movzx rax, word [rsi]
and ax, 0xffdf
mov word [rbp + 0x28], ax
jmp 0x42b12c
mov word [rbp + 0x28], r13w
mov word [rbp + 0x2a], 0x3a
mov word [rbp + 0x2c], 0
mov word [rbp + 0x234], 0
mov rcx, rsi
mov edx, 0x104
lea r8, [rbp + 0x2e]
lea r9, [rbp + 0x238]
call sub.kernel32.dll_GetFullPathNameW
test eax, eax
jne 0x42b168
call sub.kernel32.dll_GetLastError_2
jmp 0x42b2bc
cmp eax, 0x104
jbe 0x42b17b
mov eax, 0xce
jmp 0x42b2bc
cmp word [rbp + 0x2e], 0
je 0x42b189
cmp word [rbp + 0x30], 0x3a
je 0x42b194
mov eax, 3
jmp 0x42b2bc
cmp qword [rbp + 0x238], 0
jne 0x42b1b6
lea rcx, [rbp + 0x2e]
call fcn.00426280
movsxd rax, eax
lea rax, [rbp + rax*2 + 0x2e]
mov qword [rbp + 0x238], rax
mov rax, qword [rbp + 0x238]
cmp word [rax], 0
jne 0x42b1f2
lea rax, [rbp + 0x34]
cmp qword [rbp + 0x238], rax
jbe 0x42b1f2
mov rax, qword [rbp + 0x238]
cmp word [rax - 2], 0x5c
jne 0x42b1f2
sub qword [rbp + 0x238], 2
mov rax, qword [rbp + 0x238]
mov word [rax], 0
lea rcx, [rbp + 0x2e]
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x42b218
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42b218
cmp eax, 3
je 0x42b218
cmp eax, 0x7b
jne 0x42b2bc
mov rax, qword [0x0044c150]
cmp byte [rax], 0
je 0x42b230
lea rcx, [rbp + 0x2e]
xor rdx, rdx
call fcn.0042ae70
cmp ebx, 2
je 0x42b25d
lea rcx, [rbp + 0x2e]
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x42b255
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
jne 0x42b2bc
mov eax, 3
jmp 0x42b2bc
test eax, 0x410
je 0x42b2b6
test ebx, ebx
je 0x42b26d
cmp ebx, 1
jne 0x42b27a
cmp r13w, word [rbp + 0x28]
jne 0x42b27a
lea rcx, [rbp + 0x2e]
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
je 0x42b2af
lea rcx, [rbp + 0x26]
lea rdx, [rbp + 0x2e]
call fcn.00428a70
test eax, eax
jne 0x42b2a7
mov rcx, qword [0x0044c5d0]
xor rdx, rdx
call fcn.0042adb0
mov rcx, rdi
call fcn.0043de90
xor rax, rax
jmp 0x42b2bc
mov eax, 8
jmp 0x42b2bc
call sub.kernel32.dll_GetLastError_2
jmp 0x42b2bc
mov eax, 0x10b
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x42b320
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x6a8
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.004401a0
mov rdi, rax
mov rcx, rdi
mov edx, 0x208
lea r8, [rbp + 0x36]
lea r9, [rbp + 0x28]
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
test esi, esi
je 0x42b480
lea rdi, [rbp + 0x36]
mov rcx, rdi
lea rdx, [0x0042b494]
mov r8d, 4
call fcn.0041cd90
test eax, eax
jne 0x42b3f8
add rdi, 8
mov qword [rbp + 0x28], rdi
mov rcx, rbx
mov rdx, rdi
call fcn.0041cee0
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x42b3d7
cmp qword [rbp + 0x28], rbx
jbe 0x42b3d7
mov rax, qword [rbp + 0x28]
movzx rdi, word [rax]
mov rax, qword [rbp + 0x28]
mov word [rax], 0
mov rcx, rbx
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
mov rax, qword [rbp + 0x28]
mov word [rax], di
cmp esi, 0xffffffff
je 0x42b3cf
test esi, esi
setne al
jmp 0x42b485
xor rax, rax
jmp 0x42b485
mov rcx, rbx
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42b3f0
test esi, esi
setne al
jmp 0x42b485
xor rax, rax
jmp 0x42b485
cmp qword [rbp + 0x28], 0
je 0x42b409
mov rax, qword [rbp + 0x28]
cmp word [rax], 0
jne 0x42b41e
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne sil
movzx rsi, sil
jmp 0x42b480
mov rcx, rdi
mov edx, 0x37
lea r8, [rbp + 0x450]
lea r9, [rbp + 0x448]
call fcn.0042a780
mov esi, eax
movzx rsi, sil
mov rcx, qword [rbp + 0x448]
call fcn.0042a850
test esi, esi
jne 0x42b480
cmp word [rdi + 2], 0x5c
je 0x42b46d
cmp word [rdi + 2], 0x3a
jne 0x42b480
cmp word [rdi + 4], 0x5c
jne 0x42b480
cmp word [rdi + 6], 0
jne 0x42b480
mov rcx, rdi
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
jbe 0x42b480
mov esi, 1
test esi, esi
setne al
lea rsp, [rbp + 0x6a8]
pop rbx
pop rsi
pop rdi
pop rbp
ret