joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800986a0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180051290
lea rcx, [rsp + 0x40]
call fcn.180098660
movzx eax, al
test eax, eax
jne 0x1800986e8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.180098590
mov rax, qword [rsp + 0x70]
jmp 0x1800988b9
lea rcx, [rsp + 0x40]
call fcn.180051320
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.180098610
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.180051320
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.180098460
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x18009878e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.180098590
mov rax, qword [rsp + 0x80]
jmp 0x1800988b9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.18007d290
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180051290
lea rcx, [rsp + 0x48]
call fcn.1800512d0
movzx eax, al
test eax, eax
jne 0x1800987f5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.180052270
lea rcx, [rsp + 0x40]
call fcn.180098590
mov rax, qword [rsp + 0x88]
jmp 0x1800988b9
lea rcx, [rsp + 0x48]
call fcn.180051320
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.180051320
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.180098460
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x18009888b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.180052270
lea rcx, [rsp + 0x40]
call fcn.180098590
mov rax, qword [rsp + 0xa0]
jmp 0x1800988b9
lea rcx, [rsp + 0x48]
call fcn.1800512f0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.180052270
lea rcx, [rsp + 0x40]
call fcn.180098590
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x18009e8f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140001e76
Capabilities:
Set environment variable

Disassembly:
push rsi
sub rsp, 0x150
mov rax, qword [0x140058768]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov r8d, 2
xor ecx, ecx
movabs r9, 0xcccccccccccccccd
lea r10, [0x140057048]
mov rax, rcx
mul r9
mov rsi, rdx
mov rax, r8
mul r9
shr rdx, 2
lea eax, [rdx + rdx*4]
add eax, 0xfffffffe
cmp eax, ecx
je 0x140001ef5
shr rsi, 2
lea rax, [rsi + rsi*4]
cmp eax, ecx
je 0x140001eeb
mov eax, dword [0x140057048]
add eax, ecx
imul eax, eax, 0x143fd
add eax, 0x1fa0b
bt eax, 0x10
jb 0x140001ef5
mov al, byte [rcx + r10 + 0xe]
mov byte [rcx + r10 + 4], al
inc rcx
inc r8
cmp rcx, 0xa
jne 0x140001ea9
mov ecx, 2
xor esi, esi
mov r8d, 0xcccccccd
lea r10, [0x140057060]
mov rax, rcx
mul r9
shr rdx, 2
lea eax, [rdx + rdx*4]
add eax, 0xfffffffe
cmp eax, esi
je 0x140001f5f
mov eax, esi
imul rax, r8
shr rax, 0x22
lea eax, [rax + rax*4]
neg eax
add eax, esi
je 0x140001f55
mov eax, dword [0x140057060]
add eax, esi
imul eax, eax, 0x143fd
add eax, 0x1fa0b
bt eax, 0x10
jb 0x140001f5f
mov al, byte [rsi + r10 + 0x13]
mov byte [rsi + r10 + 4], al
inc rsi
inc rcx
cmp rsi, 0xf
jne 0x140001f15
lea rcx, str.__S_____L__P_I
lea rdx, [0x14003b445]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rsi, [rsp + 0x40]
mov r8d, 0x104
mov rcx, rsi
xor edx, edx
call fcn.1400070d0
mov rcx, rsi
call fcn.140001dbc
mov rcx, rsi
xor edx, edx
call qword [0x14005d7a8]
test eax, eax
je 0x140002088
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x40]
mov edx, 0xc0000000
mov r8d, 3
xor r9d, r9d
call qword [0x14005d6a0]
cmp rax, 0xffffffffffffffff
je 0x140002088
mov rsi, rax
mov edx, 0x280000
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 4
call qword [0x14005d690]
mov qword [0x14005d840], rax
mov qword [rsp + 0x20], 0
lea r9, [0x14005d848]
mov rcx, rsi
mov rdx, rax
mov r8d, 0x280000
call qword [0x14005d6b0]
test eax, eax
je 0x14000207d
mov dword [0x14005c140], 1
mov r8d, dword [0x14005d848]
mov rdx, qword [0x14005d840]
mov rcx, qword [0x1400586f0]
lea rax, [0x14005d84c]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
call qword [0x14005d678]
call fcn.14000109c
call qword [0x14005d840]
mov ecx, 0x29
jmp 0x140002082
mov ecx, 0x2a
call qword [0x14005d6e0]
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.1400175e0
nop
add rsp, 0x150
pop rsi
ret
Function at 0x140026d0c
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 0x140026b6b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140026b6b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140026b6b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140026b6b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140026b6b
cmp dword [rcx + 0x84], 0xe
jbe 0x140026b6b
cmp dword [rcx + 0xf8], 0
je 0x140026b6b
mov ecx, ebx
call fcn.140026c28
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.1400269f8
nop
cmp dword [rbp + 0x20], 0
je 0x140026bb9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140026bc4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140026afc
Function at 0x14002d310
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14002d342
call fcn.140025368
mov dword [rax], 0x16
call fcn.140022b84
jmp 0x14002d461
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002d461
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002d461
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002d371
lock or dword [rcx + 0x14], 0x10
jmp 0x14002d461
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002d385
call fcn.14002e974
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14002b3bc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002e0f0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002d44f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14002d41a
mov rcx, rsi
call fcn.14002b3bc
cmp eax, edi
je 0x14002d405
mov rcx, rsi
call fcn.14002b3bc
cmp eax, 0xfffffffe
je 0x14002d405
mov rcx, rsi
call fcn.14002b3bc
movsxd rbx, eax
lea r14, [0x140060030]
mov rcx, rsi
sar rbx, 6
call fcn.14002b3bc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002d40c
lea rdx, [0x14005b570]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002d41a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14002d43e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14002d43e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14002d43e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14002d464
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14002d78c
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.140017cb0
sub rsp, rax
mov rax, qword [0x140058768]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002b3bc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002d7db
mov rax, rbp
jmp 0x14002d8e3
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 + 0x60030]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002e8c8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x60030]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002d8df
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 0x14002d8df
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002e8c8
test rax, rax
js 0x14002d8df
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002d8df
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002d8d1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002d8d1
cmp byte [rcx], 0xd
jne 0x14002d8b7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002d8c6
cmp byte [rcx + 1], 0xa
jne 0x14002d8c6
inc rcx
jmp 0x14002d8c6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5b5c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002d899
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002d8e3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400175e0
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 0x14002dc44
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140060030]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14002dca2
cmp word [rdx], r12w
jne 0x14002dca2
or byte [rax + r8*8 + 0x38], cl
jmp 0x14002dca8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002de03
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002ddde
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14002dce1
mov rcx, r9
jmp 0x14002dd04
cmp r9, rdx
jae 0x14002dd1b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14002dcc5
jmp 0x14002de03
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002ddd8
cmp dword [rsp + 0x80], edi
je 0x14002ddd8
mov rdx, r14
lea r11, [0x140060030]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14002ddb1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002dd84
mov word [rbx], r12w
jmp 0x14002ddff
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14002dd8d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002ddff
cmp word [rsp + 0x70], r12w
jne 0x14002ddbe
cmp rbx, rsi
je 0x14002dd7e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002e8d0
cmp word [rsp + 0x70], r12w
je 0x14002de03
mov word [rbx], r13w
jmp 0x14002ddff
lea r11, [0x140060030]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002ddfb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002de03
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140031aac
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 0x140031adc
xor eax, eax
jmp 0x140031b9f
mov rbp, rbx
cmp word [rax], si
je 0x140031b01
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140031ae8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140031ae4
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.1400300d8
movsxd r14, eax
test eax, eax
jne 0x140031b3f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140031ad5
mov rcx, r14
call fcn.14002a21c
mov rdi, rax
test rax, rax
jne 0x140031b58
xor ecx, ecx
call fcn.14002a1e0
jmp 0x140031b34
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.1400300d8
test eax, eax
jne 0x140031b89
mov rcx, rdi
call fcn.14002a1e0
jmp 0x140031b93
xor ecx, ecx
call fcn.14002a1e0
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 0x14003773c
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.14001d0a8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400377c6
cmp byte [rbp - 0x21], r15b
je 0x1400377c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400377fc
call fcn.14002bafc
test eax, eax
jne 0x1400377e8
cmp byte [rbp - 0x21], r15b
je 0x1400377e0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400377fc
cmp byte [rbp - 0x21], r15b
je 0x1400377f9
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.14002590c
test eax, eax
jne 0x14003789c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001d0a8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003783b
cmp byte [rbp - 0x21], r15b
je 0x140037870
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140037870
call fcn.14002bafc
test eax, eax
jne 0x14003785c
cmp byte [rbp - 0x21], r15b
je 0x140037855
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140037870
cmp byte [rbp - 0x21], r15b
je 0x14003786d
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.14002590c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003789c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003789f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400378ad
mov rcx, rdi
call fcn.14002a1e0
cmp byte [rbp + 0x3f], r15b
je 0x1400378bc
mov rcx, qword [rbp + 0x27]
call fcn.14002a1e0
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
Function at 0x1414d60b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1414d6237
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 0x1414d60e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414d60c7
add dl, dl
jne 0x1414d60ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414d614e
xor eax, eax
add dl, dl
jne 0x1414d60fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414d6205
add dl, dl
jne 0x1414d610e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414d611b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414d6128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414d6135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1414d6142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1414d60d6
mov eax, 1
add dl, dl
jne 0x1414d615e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414d616b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1414d6153
sub eax, ebx
mov ebx, 1
jne 0x1414d61a4
mov ecx, 1
add dl, dl
jne 0x1414d6186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1414d6193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1414d617b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1414d60d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1414d61c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1414d61cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1414d61b5
cmp eax, 0x7d00
jae 0x1414d61f3
cmp eax, 0x500
jb 0x1414d61ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1414d60d6
cmp eax, 0x7f
ja 0x1414d61f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1414d60d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1414d622a
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 0x1414d60d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x414e00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x414fa6
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00430ec0
xorps xmm15, xmm15
mov r14, qword [0x005a5040]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x414e6b
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x414e80
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
nop
test rbx, rbx
jbe 0x414ea5
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x414eb9
cmp rbx, 0x1000
jae 0x414e75
nop dword [rax]
jmp 0x414f29
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x414ecd
xor edx, edx
jmp 0x414f20
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00430ec0
xorps xmm15, xmm15
mov r14, qword [0x005a5040]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop dword [rax]
test dl, dl
jne 0x414eaf
jmp 0x414e94
call fcn.00460020
xorps xmm15, xmm15
mov r14, qword [0x005a5040]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00435400
lea rax, [0x004b447a]
mov ebx, 0x18
call fcn.00435d00
mov rax, qword [rsp + 0x38]
call fcn.00435a00
lea rax, [0x004b453a]
mov ebx, 0x19
call fcn.00435d00
mov rax, qword [rsp + 0x30]
nop
call fcn.00435a00
call fcn.00435660
call fcn.00435480
lea rax, [0x004b6694]
mov ebx, 0x21
nop dword [rax + rax]
call fcn.00433ac0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045c480
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00414e00
Function at 0x414fe0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41520a
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00430f40
xorps xmm15, xmm15
mov r14, qword [0x005a5040]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x415059
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x41506c
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x415090
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
nop
jmp 0x4150a4
cmp rbx, 0x1000
jae 0x415063
jmp 0x415125
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4150b6
xor esi, esi
jmp 0x415116
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
nop dword [rax]
call fcn.00430f40
xorps xmm15, xmm15
mov r14, qword [0x005a5040]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x41509a
nop
jmp 0x415082
call fcn.00460020
xorps xmm15, xmm15
mov r14, qword [0x005a5040]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x4151a5
call fcn.00435400
lea rax, [0x004b4922]
mov ebx, 0x19
call fcn.00435d00
mov rax, qword [rsp + 0x68]
call fcn.00435a00
lea rax, [0x004b453a]
mov ebx, 0x19
call fcn.00435d00
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.00435a00
call fcn.00435660
call fcn.00435480
lea rax, [0x004b15f0]
mov ebx, 0xd
nop dword [rax + rax]
call fcn.00433ac0
cmp eax, 0x5af
je 0x415148
call fcn.00435400
lea rax, [0x004b4922]
mov ebx, 0x19
nop dword [rax]
call fcn.00435d00
mov rax, qword [rsp + 0x38]
call fcn.00435a00
lea rax, [0x004b453a]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00435d00
mov eax, dword [rsp + 0x34]
call fcn.00435a00
call fcn.00435660
call fcn.00435480
lea rax, [0x004b5fa8]
mov ebx, 0x1f
call fcn.00433ac0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045c480
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00414fe0