joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7bf060
Capabilities:
Check if file exists

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], rdx
mov rcx, qword [rbp + 0x58]
call fcn.0040f0e0
nop
mov rcx, qword [rbp + 0x50]
call fcn.0040ef50
mov dword [rbp + 0x3c], 0x43
lea rcx, [rbp + 0x28]
movzx rdx, word [rbp + 0x3c]
call fcn.004107b0
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
lea r8, [0x007bf170]
call fcn.00410bc0
lea rcx, [rbp + 0x20]
mov rdx, qword [rbp + 0x30]
mov r8, qword [rbp + 0x58]
call fcn.00410bc0
mov rcx, qword [rbp + 0x20]
call sub.shlwapi.dll_PathFileExistsW_1
test eax, eax
je 0x7bf0f1
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x30]
call fcn.0040f580
jmp 0x7bf0fd
add dword [rbp + 0x3c], 1
cmp dword [rbp + 0x3c], 0x5b
jne 0x7bf0a2
nop
nop
lea rcx, [rbp + 0x20]
mov edx, 3
call fcn.0040f030
lea rcx, [rbp + 0x58]
call fcn.0040ef50
mov rax, qword [rbp + 0x50]
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x7ca6f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x50
mov rbp, rsp
mov rsi, rcx
lea rdi, [rbp + 0x40]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
mov byte [rbp + 0x3e], 0
lea rcx, [rbp + 0x40]
mov edx, 0x20019
mov rax, qword [0x008c8a38]
call qword [rax]
mov qword [rbp + 0x30], rax
cmp qword [rbp + 0x30], 0
je 0x7ca760
mov rcx, qword [rbp + 0x30]
lea rdx, [0x007ca778]
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call sub.AdvApi32.dll_RegQueryValueExW
test eax, eax
sete al
mov byte [rbp + 0x3e], al
mov rcx, qword [rbp + 0x30]
call sub.AdvApi32.dll_RegCloseKey
movzx rax, byte [rbp + 0x3e]
mov byte [rbp + 0x3f], al
movzx rax, byte [rbp + 0x3f]
lea rsp, [rbp + 0x50]
pop rsi
pop rdi
pop rbp
ret
Function at 0x7cd850
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
add rsp, 0xffffffffffffff80
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], rbp
nop
call fcn.007ca840
mov byte [rbp + 0x7e], al
cmp byte [rbp + 0x7e], 0
je 0x7cd8ae
lea rcx, [0x007cdb64]
mov rax, qword [0x008c8890]
mov rdx, qword [rax]
mov r8b, 1
call fcn.006f83a0
jmp 0x7cd8c7
lea rcx, [0x007cdb94]
mov rax, qword [0x008c8890]
mov rdx, qword [rax]
mov r8b, 1
call fcn.006f83a0
mov ecx, 0x90
call sub.user32.dll_GetKeyState
and ax, 1
cmp ax, 1
jne 0x7cda79
lea rcx, [0x007cdbc4]
mov rax, qword [0x008c8890]
mov rdx, qword [rax]
mov r8b, 1
call fcn.006f83a0
cmp byte [rbp + 0x7e], 0
je 0x7cdad5
nop
mov rcx, qword [0x007cba78]
mov dl, 1
xor r8, r8
call fcn.007cc520
mov qword [rbp + 0x70], rax
jmp 0x7cd923
mov dword [rbp + 0x68], 0xffffffff
mov rcx, qword [rbp + 0x70]
call fcn.007ccc50
xor rcx, rcx
sub eax, 1
mov dword [rbp + 0x2c], eax
mov dword [rbp + 0x6c], ecx
mov eax, dword [rbp + 0x2c]
cmp dword [rbp + 0x6c], eax
jg 0x7cd9d1
mov eax, dword [rbp + 0x2c]
add eax, 1
mov dword [rbp + 0x2c], eax
nop
mov rcx, qword [rbp + 0x70]
mov edx, dword [rbp + 0x6c]
call fcn.007ccc80
mov rcx, rax
lea rdx, [rbp + 0x50]
call fcn.007cc1f0
mov rcx, qword [rbp + 0x50]
call fcn.00432ee0
mov dword [rbp + 0x68], eax
mov rcx, qword [rbp + 0x70]
mov edx, dword [rbp + 0x6c]
call fcn.007ccc80
mov rcx, rax
lea rdx, [rbp + 0x40]
call fcn.007cc1f0
lea rcx, [rbp + 0x48]
lea rdx, [0x007cdbec]
mov r8, qword [rbp + 0x40]
call fcn.00410bc0
mov rcx, qword [rbp + 0x48]
mov rax, qword [0x008c8890]
mov rdx, qword [rax]
mov r8b, 1
call fcn.006f83a0
jmp 0x7cd9c5
add dword [rbp + 0x6c], 1
mov eax, dword [rbp + 0x2c]
cmp dword [rbp + 0x6c], eax
jne 0x7cd954
nop
nop
lea rcx, [rbp + 0x30]
mov edx, dword [rbp + 0x68]
call fcn.00432c30
lea rcx, [rbp + 0x38]
lea rdx, [0x007cdc2c]
mov r8, qword [rbp + 0x30]
call fcn.00410bc0
mov rcx, qword [rbp + 0x38]
mov rax, qword [0x008c8890]
mov rdx, qword [rax]
mov r8b, 1
call fcn.006f83a0
jmp 0x7cda13
cmp dword [rbp + 0x68], 0xf
jge 0x7cda5e
cmp dword [rbp + 0x68], 0
je 0x7cda5e
lea rcx, [0x007cdc78]
mov rax, qword [0x008c8890]
mov rdx, qword [rax]
mov r8b, 1
call fcn.006f83a0
mov cl, 0x90
xor rdx, rdx
xor r8, r8
xor r9, r9
call sub.user32.dll_keybd_event
mov cl, 0x90
xor rdx, rdx
mov r8d, 2
xor r9, r9
call sub.user32.dll_keybd_event
jmp 0x7cdad5
lea rcx, [0x007cdcb8]
mov rax, qword [0x008c8890]
mov rdx, qword [rax]
mov r8b, 1
call fcn.006f83a0
jmp 0x7cdad5
lea rcx, [0x007cdd0c]
mov rax, qword [0x008c8890]
mov rdx, qword [rax]
mov r8b, 1
call fcn.006f83a0
cmp byte [rbp + 0x7e], 0
jne 0x7cdad5
lea rcx, [0x007cdd34]
mov rax, qword [0x008c8890]
mov rdx, qword [rax]
mov r8b, 1
call fcn.006f83a0
mov cl, 0x90
xor rdx, rdx
xor r8, r8
xor r9, r9
call sub.user32.dll_keybd_event
mov cl, 0x90
xor rdx, rdx
mov r8d, 2
xor r9, r9
call sub.user32.dll_keybd_event
nop
lea rcx, [rbp + 0x30]
mov edx, 5
call fcn.0040f030
movzx rax, byte [rbp + 0x7f]
lea rsp, [rbp + 0x80]
pop rbp
ret
Function at 0x7cf580
Capabilities:
Persist via run registry key

Disassembly:
push rbp
push rbx
sub rsp, 0xd8
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
pop r8
add byte [rax], al
add byte [rax], al
Function at 0x7d76f0
Capabilities:
Hash data with crc32

Disassembly:
xor rcx, rcx
mov eax, ecx
xor rdx, rdx
mov r8d, eax
and r8d, 1
test r8b, r8b
je 0x7d770f
shr eax, 1
xor eax, 0xedb88320
jmp 0x7d7712
shr eax, 1
add edx, 1
cmp edx, 8
jne 0x7d76f8
nop
lea rdx, [0x008d5898]
movsxd r8, ecx
mov dword [rdx + r8*4], eax
add ecx, 1
cmp ecx, 0x100
jne 0x7d76f3
nop
mov byte [0x008d5c98], 1
ret

Function at 0x7d7740
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rdx
mov esi, r8d
mov edi, ecx
cmp byte [0x008d5c98], 0
jne 0x7d775d
call fcn.007d76f0
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x7d779d
add ecx, 1
lea rdx, [0x008d5898]
movsxd r8, eax
movzx r8, byte [rbx + r8]
mov r9d, edi
xor r9d, r8d
and r9d, 0xff
mov r9d, r9d
shr edi, 8
mov edx, dword [rdx + r9*4]
xor edx, edi
mov edi, edx
add eax, 1
cmp eax, ecx
jne 0x7d776c
nop
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x7e9e90
Capabilities:
Delete file

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x70], rcx
mov rcx, qword [rbp + 0x70]
call fcn.0040f0e0
nop
call fcn.007e85f0
cmp eax, 6
jge 0x7e9f3f
lea rcx, [rbp + 0x40]
lea rdx, [0x007e9fe0]
call fcn.00442e40
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x70]
call fcn.004346c0
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
xor r8, r8
call fcn.004343e0
lea rcx, [rbp + 0x48]
mov edx, 4
mov r8, qword [rbp + 0x40]
lea r9, [0x007e9ffc]
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea rax, [0x007ea060]
mov qword [rsp + 0x28], rax
call fcn.00410ce0
mov rcx, qword [rbp + 0x48]
call fcn.00410760
mov rcx, rax
call sub.KERNEL32.DLL_DeleteFileW
jmp 0x7e9f5d
mov rcx, qword [rbp + 0x70]
mov edx, 0x150b
call fcn.007e8e40
mov rcx, qword [rbp + 0x70]
mov edx, 1
call fcn.007e94c0
nop
lea rcx, [rbp + 0x30]
mov edx, 4
call fcn.0040f030
lea rcx, [rbp + 0x70]
call fcn.0040ef50
movzx rax, byte [rbp + 0x5f]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x7f0860
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x24], 0xca
jne 0x7f08af
mov rcx, qword [rsp + 0x40]
call fcn.007f1670
mov r11, qword [rsp + 0x40]
cmp dword [r11 + 0x58], 0
je 0x7f08a3
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x24], 0xcf
mov eax, 1
jmp 0x7f09f9
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x24], 0xcb
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x24], 0xcb
jne 0x7f09b0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x240]
cmp dword [rax + 0x20], 0
je 0x7f0998
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x7f08f3
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
call qword [rax]
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x240]
mov rcx, qword [rsp + 0x40]
call qword [rax]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x7f0918
xor eax, eax
jmp 0x7f09f9
cmp dword [rsp + 0x20], 2
jne 0x7f0921
jmp 0x7f0998
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x7f0993
cmp dword [rsp + 0x20], 3
je 0x7f093b
cmp dword [rsp + 0x20], 1
jne 0x7f0993
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov ecx, dword [rax + 8]
add ecx, 1
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov dword [rax + 8], ecx
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0xc]
cmp dword [rcx + 8], eax
jl 0x7f0993
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov ecx, dword [rax + 0xc]
mov rax, qword [rsp + 0x40]
add ecx, dword [rax + 0x1a4]
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov dword [rax + 0xc], ecx
jmp 0x7f08d7
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xac]
mov dword [rcx + 0xb4], eax
jmp 0x7f09ef
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x24], 0xcc
je 0x7f09ef
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov dword [rax + 0x28], 0x14
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
mov dword [rcx + 0x2c], eax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
call qword [rax]
mov rcx, qword [rsp + 0x40]
call fcn.007f0a10
add rsp, 0x38
ret
Function at 0x7f0a10
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x24], 0xcc
je 0x7f0a56
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x220]
mov rcx, qword [rsp + 0x40]
call qword [rax]
mov r11, qword [rsp + 0x40]
mov dword [r11 + 0xa8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x24], 0xcc
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x220]
cmp dword [rax + 0x10], 0
je 0x7f0b5d
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x8c]
cmp dword [rcx + 0xa8], eax
jae 0x7f0b21
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x7f0ad2
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xa8]
mov dword [rcx + 8], eax
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x8c]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
call qword [rax]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xa8]
mov dword [rsp + 0x20], eax
mov r8, qword [rsp + 0x40]
add r8, 0xa8
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x228]
xor r9d, r9d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [rax + 8]
mov r11, qword [rsp + 0x40]
mov eax, dword [rsp + 0x20]
cmp dword [r11 + 0xa8], eax
jne 0x7f0b1c
xor eax, eax
jmp 0x7f0b8b
jmp 0x7f0a6c
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x220]
mov rcx, qword [rsp + 0x40]
call qword [rax + 8]
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x220]
mov rcx, qword [rsp + 0x40]
call qword [rax]
mov r11, qword [rsp + 0x40]
mov dword [r11 + 0xa8], 0
jmp 0x7f0a56
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x5c], 0
je 0x7f0b72
mov dword [rsp + 0x24], 0xce
jmp 0x7f0b7a
mov dword [rsp + 0x24], 0xcd
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x24]
mov dword [rcx + 0x24], eax
mov eax, 1
add rsp, 0x38
ret
Function at 0x812ba0
Capabilities:
Delete file
Move file

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x80], rcx
nop
mov rcx, qword [rbp + 0x80]
call fcn.00434230
mov byte [rbp + 0x6f], al
cmp byte [rbp + 0x6f], 0
jne 0x812c4e
lea rcx, [rbp + 0x30]
mov edx, 0x38
xor r8, r8
call fcn.0040aae0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x48], 0
mov dword [rbp + 0x38], 3
lea rcx, [rbp + 0x20]
mov rdx, qword [rbp + 0x80]
lea r8, [0x00812cb0]
call fcn.00410bc0
mov rcx, qword [rbp + 0x20]
call fcn.00410760
mov qword [rbp + 0x40], rax
mov word [rbp + 0x50], 0x414
lea rcx, [rbp + 0x30]
call sub.shell32.dll_SHFileOperationW
test eax, eax
sete al
mov byte [rbp + 0x6f], al
nop
mov rcx, qword [rbp + 0x80]
mov dl, 1
call fcn.0057d0f0
jmp 0x812c4e
nop
lea rcx, [rbp + 0x20]
call fcn.0040ef50
movzx rax, byte [rbp + 0x6f]
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x817690
Capabilities:
Persist via run registry key

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
nop
mov rcx, qword [0x004df008]
mov dl, 1
call fcn.00511b30
mov qword [rbp + 0x50], rax
lea rcx, [0x008179c8]
lea rdx, [rbp + 0x50]
call fcn.007bcc80
mov rcx, qword [rbp + 0x50]
lea rdx, [rbp + 0x38]
mov rax, qword [rbp + 0x50]
mov rbx, qword [rax]
call qword [rbx + 0x38]
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x38]
xor r8, r8
call fcn.004102a0
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x30]
call fcn.007bcd60
lea rcx, [rbp + 0x48]
lea rdx, [0x008179f4]
mov r8, qword [rbp + 0x40]
call fcn.0040fe50
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.004108b0
mov rcx, qword [rbp + 0x28]
mov rax, qword [0x008c8890]
mov rdx, qword [rax]
mov r8b, 1
call fcn.006f83a0
mov rcx, 0xffffffff80000001
lea rdx, [0x00817a10]
mov r8, qword [rbp + 0x50]
call fcn.008142f0
mov rcx, 0xffffffff80000001
lea rdx, [0x00817a78]
mov r8, qword [rbp + 0x50]
call fcn.008142f0
mov rcx, 0xffffffff80000001
lea rdx, [0x00817ae8]
mov r8, qword [rbp + 0x50]
call fcn.008142f0
mov rcx, 0xffffffff80000001
lea rdx, [0x00817b74]
mov r8, qword [rbp + 0x50]
call fcn.008142f0
mov rcx, 0xffffffff80000002
lea rdx, [0x00817a10]
mov r8, qword [rbp + 0x50]
call fcn.008142f0
mov rcx, 0xffffffff80000002
lea rdx, [0x00817a78]
mov r8, qword [rbp + 0x50]
call fcn.008142f0
mov rcx, 0xffffffff80000002
lea rdx, [0x00817ae8]
mov r8, qword [rbp + 0x50]
call fcn.008142f0
mov rcx, 0xffffffff80000002
lea rdx, [0x00817b74]
mov r8, qword [rbp + 0x50]
call fcn.008142f0
call fcn.006fbf70
test al, al
je 0x8178c7
mov rcx, 0xffffffff80000001
lea rdx, [0x00817c08]
mov r8, qword [rbp + 0x50]
call fcn.008142f0
mov rcx, 0xffffffff80000001
lea rdx, [0x00817c88]
mov r8, qword [rbp + 0x50]
call fcn.008142f0
mov rcx, 0xffffffff80000001
lea rdx, [0x00817d10]
mov r8, qword [rbp + 0x50]
call fcn.008142f0
mov rcx, 0xffffffff80000001
lea rdx, [0x00817db4]
mov r8, qword [rbp + 0x50]
call fcn.008142f0
mov rcx, 0xffffffff80000002
lea rdx, [0x00817c08]
mov r8, qword [rbp + 0x50]
call fcn.008142f0
mov rcx, 0xffffffff80000002
lea rdx, [0x00817c88]
mov r8, qword [rbp + 0x50]
call fcn.008142f0
mov rcx, 0xffffffff80000002
lea rdx, [0x00817d10]
mov r8, qword [rbp + 0x50]
call fcn.008142f0
mov rcx, 0xffffffff80000002
lea rdx, [0x00817db4]
mov r8, qword [rbp + 0x50]
call fcn.008142f0
mov rcx, qword [rbp + 0x50]
call fcn.00816150
lea rcx, [0x00817a10]
mov rdx, qword [rbp + 0x50]
call fcn.00815490
lea rcx, [0x00817a78]
mov rdx, qword [rbp + 0x50]
call fcn.00815490
lea rcx, [0x00817ae8]
mov rdx, qword [rbp + 0x50]
call fcn.00815490
lea rcx, [0x00817b74]
mov rdx, qword [rbp + 0x50]
call fcn.00815490
nop
lea rcx, [rbp + 0x28]
call fcn.0040ef50
lea rcx, [rbp + 0x30]
call fcn.0040efa0
lea rcx, [rbp + 0x38]
call fcn.0040ef50
lea rcx, [rbp + 0x40]
mov edx, 2
call fcn.0040f060
movzx rax, byte [rbp + 0x5f]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x140a0a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a0a1df
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 0x140a0a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a0a06f
add dl, dl
jne 0x140a0a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a0a0f6
xor eax, eax
add dl, dl
jne 0x140a0a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a0a1ad
add dl, dl
jne 0x140a0a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a0a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a0a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a0a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a0a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a0a07e
mov eax, 1
add dl, dl
jne 0x140a0a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a0a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a0a0fb
sub eax, ebx
mov ebx, 1
jne 0x140a0a14c
mov ecx, 1
add dl, dl
jne 0x140a0a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a0a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a0a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a0a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a0a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a0a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a0a15d
cmp eax, 0x7d00
jae 0x140a0a19b
cmp eax, 0x500
jb 0x140a0a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a0a07e
cmp eax, 0x7f
ja 0x140a0a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a0a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a0a1d2
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 0x140a0a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140023900
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140027b10
sub rsp, rax
mov rax, qword [0x140065a40]
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 0x1400239c2
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14002396d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140023960
cmp rcx, 1
jb 0x140023a1a
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 0x140023990
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400370d4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140023950
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1400239f3
lea rcx, [rsp + 0x80]
call fcn.140039f04
jmp 0x1400239f5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140027840
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14002bea0
int3
Function at 0x140027390
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140065a40]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x140027435
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1400273ed
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1400273e0
cmp rcx, 1
jb 0x140027466
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 0x140027403
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400370d4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1400273d0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140027840
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14002bea0
int3
Function at 0x140027510
Capabilities:
Set environment variable

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0xb0
mov rax, qword [0x140065a40]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x140067a50]
mov rbp, r8
mov rsi, rdx
mov r14, rcx
test rax, rax
jne 0x140027560
lea rcx, [0x140048c1c]
call qword [sym.imp.python38.dll_PyImport_ImportModule]
mov qword [0x140067a50], rax
test rax, rax
je 0x14002779a
mov qword [rsp + 0xa8], rbx
lea rdx, str.environ
mov qword [rsp + 0xa0], rdi
mov rcx, rax
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x90], r15
call qword [sym.imp.python38.dll_PyObject_GetAttrString]
mov rcx, rsi
mov r15, rax
call qword [sym.imp.python38.dll_PyUnicode_FromString]
movzx edx, byte [rsi]
lea rbx, [rsp + 0x30]
xor ecx, ecx
mov r13, rax
mov word [rsp + 0x30], cx
lea edi, [rcx + 0x28]
test rbp, rbp
je 0x140027696
test dl, dl
je 0x140027632
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1400275dd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1400275d0
cmp rcx, 1
jb 0x1400277a0
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 0x140027600
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400370d4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1400275c0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call qword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov rdx, r13
mov rcx, r15
mov r8, rax
mov rbx, rax
call qword [sym.imp.python38.dll_PyObject_SetItem]
test eax, eax
je 0x14002767d
mov ecx, 1
call qword [sym.imp.python38.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python38.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x140027737
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x140027737
test dl, dl
je 0x140027712
nop word [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1400276bd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1400276b0
cmp rcx, 1
jb 0x140027794
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 0x1400276e0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400370d4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1400276a0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r15
call qword [sym.imp.python38.dll_PyObject_DelItem]
test eax, eax
je 0x140027737
mov rcx, r14
call fcn.140013e80
sub qword [r13], 1
jne 0x140027748
mov rax, qword [r13 + 8]
mov rcx, r13
call qword [rax + 0x30]
sub qword [r15], 1
jne 0x140027758
mov rax, qword [r15 + 8]
mov rcx, r15
call qword [rax + 0x30]
mov r13, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140027840
add rsp, 0xb0
pop r14
pop rsi
pop rbp
ret
call fcn.14002bea0
int3
call fcn.14002bea0
int3
call fcn.14002bea0
int3