joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14022ab80
Capabilities:
Inspect section memory permissions

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rax, qword [rsp + 0x50]
mov qword [rcx + 8], r8
mov ecx, dword [r8]
mov dword [rsi + 0x20], ecx
lea r10, [0x140384088]
mov qword [rsi + 0x10], r10
test r9d, r9d
js 0x14022abd4
mov r10d, r9d
shr r10d, 2
mov r11d, 6
cmp byte [rdx], 1
jne 0x14022abcb
xor r11d, r11d
cmp byte [rdx + 1], 0
setne r11b
lea r11d, [r11 + r11*4]
inc r11d
cmp r10d, r11d
jb 0x14022acf5
mov r10d, ecx
and r10d, 0xf0000000
cmp r10d, 0x20000000
je 0x14022abf9
and ecx, 0xe0000000
cmp ecx, 0x40000000
jne 0x14022acf5
movzx r10d, byte [rdx]
cmp r10b, 1
jne 0x14022ac09
cmp byte [rdx + 1], 0
je 0x14022ac6c
movzx ecx, byte [r8 + 4]
cmp ecx, 4
jbe 0x14022acf5
test r9d, r9d
js 0x14022ac3e
lea r11d, [rcx*4 + 4]
cmp r11d, r9d
ja 0x14022acf5
mov r11d, dword [r8 + 0x10]
shl r11d, 2
cmp r11d, r9d
jg 0x14022acf5
mov r9d, dword [r8 + 8]
lea r11d, [rcx + 1]
cmp r9d, r11d
jg 0x14022ac7c
cmp r10b, 3
jae 0x14022ac8e
cmp ecx, 5
jne 0x14022ac9d
cmp byte [rsi + 0x39], 0
jne 0x14022acf5
cmp byte [rsi + 0x3a], 0
jne 0x14022acf5
jmp 0x14022ac73
mov dword [rsi + 0x24], 0x10000
mov byte [rsi + 0x3b], 1
jmp 0x14022ad0f
shl r9d, 2
mov dword [rsi + 0x24], r9d
movzx r10d, byte [rdx]
cmp r10b, 3
jb 0x14022ac51
mov edx, dword [r8 + 4]
shr edx, 8
mov dword [rsi + 0x30], edx
cmp ecx, 5
je 0x14022ac56
mov r9d, dword [r8 + 0x18]
mov edx, r9d
and dl, 1
mov byte [rsi + 0x38], dl
mov r10d, r9d
shr r10b, 1
mov edx, r9d
shr dl, 2
and dl, 1
mov r11d, r9d
shl r11d, 0xc
and r11d, 0xf000000
or dword [rsi + 0x30], r11d
shr r9d, 0x10
and r10b, 1
mov byte [rsi + 0x39], r10b
mov byte [rsi + 0x3a], dl
mov dword [rsi + 0x34], r9d
jne 0x14022acf0
cmp ecx, 7
ja 0x14022ace9
test dl, dl
jne 0x14022acf5
cmp ecx, 7
jb 0x14022ac73
jmp 0x14022ad15
cmp ecx, 7
ja 0x14022ad15
mov dword [rax], 3
mov rcx, qword [rsi]
test rcx, rcx
je 0x14022ad0f
call fcn.14020ab10
mov qword [rsi], 0
add rsp, 0x20
pop rsi
ret
movsxd rax, dword [r8 + 8]
cmp dword [r8 + 0x1c], eax
jle 0x14022ac73
lea rax, [r8 + rax*4]
mov qword [rsi + 0x10], rax
jmp 0x14022ac73
Function at 0x14022d830
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov r11d, r8d
mov r10d, edx
mov esi, dword [rsp + 0x58]
movsxd r14, edx
lea rdi, [rcx + 0x10]
xor r8d, r8d
mov rbx, rsi
nop
mov eax, r11d
xor edx, edx
div r9d
lea ebp, [rdx + 0x37]
lea r15d, [rdx + 0x30]
cmp edx, 0xa
cmovge r15d, ebp
inc r8
mov word [rdi - 0x10], r15w
add rdi, 2
dec rbx
cmp r11d, r9d
jb 0x14022d882
mov r11d, eax
cmp r8, r14
jl 0x14022d850
cmp r8d, esi
jl 0x14022d897
cmp r8d, r10d
jl 0x14022d8f7
cmp r8d, 2
jae 0x14022d90a
jmp 0x14022d99a
mov eax, esi
mov rdx, rax
sub rdx, r8
cmp rdx, 0x10
jb 0x14022d8e0
mov r9, rdx
and r9, 0xfffffffffffffff0
and rbx, 0xfffffffffffffff0
add r8, rbx
movaps xmm0, xmmword [str.00000000a_ab_beef_fn_nr_rt_tv_v]
mov r11, r9
nop dword [rax]
movups xmmword [rdi - 0x10], xmm0
movups xmmword [rdi], xmm0
add rdi, 0x20
add r11, 0xfffffffffffffff0
jne 0x14022d8c0
cmp rdx, r9
je 0x14022d8ef
nop word cs:[rax + rax]
mov word [rcx + r8*2], 0x30
inc r8
cmp rax, r8
jne 0x14022d8e0
mov r8d, esi
cmp r8d, r10d
jge 0x14022d88c
mov eax, r8d
mov word [rcx + rax*2], 0
cmp r8d, 2
jb 0x14022d99a
mov edx, r8d
shr edx, 1
movsxd r10, r8d
lea rax, [rcx + r10*2]
cmp edx, 1
jne 0x14022d920
xor r9d, r9d
jmp 0x14022d97b
mov r11d, edx
and r11d, 0xfffffffe
dec r10
xor r9d, r9d
movabs rsi, 0x7ffffffffffffffe
nop word [rax + rax]
movzx edi, word [rcx + r10*2]
movzx ebx, word [rcx + r9*2]
mov word [rcx + r10*2], bx
mov word [rcx + r9*2], di
mov rdi, r9
xor rdi, rsi
movzx ebx, word [rax + rdi*2]
movzx ebp, word [rcx + r9*2 + 2]
mov word [rax + rdi*2], bp
mov word [rcx + r9*2 + 2], bx
add r9, 2
add r10, 0xfffffffffffffffe
cmp r11, r9
jne 0x14022d940
test dl, 1
je 0x14022d99a
mov rdx, r9
not rdx
movzx r10d, word [rax + rdx*2]
movzx r11d, word [rcx + r9*2]
mov word [rax + rdx*2], r11w
mov word [rcx + r9*2], r10w
mov eax, r8d
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1402458b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x1403a6f68]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x1403aea80]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 8]
test rax, rax
je 0x1402458f5
mov ecx, 0x230
add rcx, qword [rax + 0x728]
jmp 0x140245909
mov ecx, dword [0x1403a6f48]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
test rax, rax
je 0x140245949
movabs rax, 0x7ffffffffffffff8
cmp rsi, rax
jge 0x140245962
add rsi, 7
and rsi, 0xfffffffffffffff8
mov rdi, qword [rcx]
mov rax, qword [rcx + 8]
sub rax, rdi
cmp rax, rsi
jge 0x14024593c
mov rdx, rsi
call fcn.1401c63e0
mov rdi, rax
jmp 0x14024594b
lea rax, [rdi + rsi]
mov qword [rcx], rax
add qword [rcx + 0x10], rsi
jmp 0x14024594b
xor edi, edi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140262cb0
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rax, str..._.._runtime_vm_zone.h
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x107
lea rdx, str.Zone::Alloc:_size_is_too_large:_size_lld
lea rcx, [rsp + 0x20]
mov r8, rsi
call fcn.140023df0
int3

Function at 0x140260d90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1403a4f00]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140260dbc
cmp byte [rax + 8], 0
jne 0x140260dc6
mov rcx, rax
call fcn.140049860
test rax, rax
jne 0x140260dc6
call fcn.14018c690
test rax, rax
je 0x140260dd6
mov rcx, rax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14018c4b0
nop
add rsp, 0x20
pop rsi
ret

Function at 0x140274e70
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x140274e8d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140274ee8
test al, 7
jne 0x140274e80
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140274ea1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140274f12
test dh, dh
je 0x140274f0c
shr rdx, 0x10
test dl, dl
je 0x140274f06
test dh, dh
je 0x140274f00
shr rdx, 0x10
test dl, dl
je 0x140274efa
test dh, dh
je 0x140274ef4
shr edx, 0x10
test dl, dl
je 0x140274eee
test dh, dh
jne 0x140274ea1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret
Function at 0x140278860
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, [0x1403afbf0]
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 0x1402788be
cmp word [rdx], r12w
jne 0x1402788be
or byte [rax + r8*8 + 0x38], cl
jmp 0x1402788c4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140278a1f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1402789fa
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1402788fd
mov rcx, r9
jmp 0x140278920
cmp r9, rdx
jae 0x140278937
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 0x1402788e1
jmp 0x140278a1f
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 0x1402789f4
cmp dword [rsp + 0x80], edi
je 0x1402789f4
mov rdx, r14
lea r11, [0x1403afbf0]
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 0x1402789cd
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1402789a0
mov word [rbx], r12w
jmp 0x140278a1b
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 0x1402789a9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140278a1b
cmp word [rsp + 0x70], r12w
jne 0x1402789da
cmp rbx, rsi
je 0x14027899a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140276698
cmp word [rsp + 0x70], r12w
je 0x140278a1f
mov word [rbx], r13w
jmp 0x140278a1b
lea r11, [0x1403afbf0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140278a17
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140278a1f
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 0x14027bf28
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x1403a6f68]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x14038bf40]
mov rbp, rcx
call fcn.140292978
xor edi, edi
test rax, rax
je 0x14027c00e
mov ebx, edi
call fcn.140276810
mov r14d, dword [rax]
call fcn.140276810
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.1402928c4
mov rsi, rax
test rax, rax
je 0x14027bf9f
call fcn.140276810
mov dword [rax], r14d
jmp 0x14027bfc9
call fcn.140276810
cmp dword [rax], 0x22
jne 0x14027c006
call fcn.140276810
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1402928c4
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14027c006
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14027bfcd
cmp rax, 3
je 0x14027bfe8
mov rcx, rsi
call fcn.14027be84
test al, al
je 0x14027bff9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14027bff9
mov dil, 1
mov rcx, rbx
call fcn.14026bdf8
mov al, dil
jmp 0x14027c010
mov rcx, rbx
call fcn.14026bdf8
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140262cb0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140282568
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140282588
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140276784
or eax, 0xffffffff
jmp 0x14028258a
xor eax, eax
add rsp, 0x28
ret

Function at 0x140288cf0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140288ae0
Function at 0x140290a74
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140276698
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140276698
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140290bc4
cmp rax, 0xffffffffffffffff
je 0x140290bc4
xor edi, edi
test rbp, rbp
jle 0x140290b6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14028f840
mov rbx, rax
test rax, rax
jne 0x140290afc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140290b65
mov edx, 0x8000
mov ecx, r14d
call fcn.1402821e4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14027a2cc
cmp eax, 0xffffffff
je 0x140290b45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140290b0c
mov edx, r15d
mov ecx, r14d
call fcn.1402821e4
jmp 0x140290b65
cmp byte [rsi + 0x38], dil
je 0x140290b5c
cmp dword [rsi + 0x34], 5
jne 0x140290b5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140290b65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14028d5ac
jmp 0x140290bd8
jns 0x140290bd8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140276698
cmp rax, 0xffffffffffffffff
jne 0x140290b90
cmp byte [rsi + 0x30], dil
je 0x140290bd8
mov edi, dword [rsi + 0x2c]
jmp 0x140290bd8
mov ecx, r14d
call fcn.140281ff8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140290bd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140290bd8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140290bd1
mov eax, dword [rsi + 0x2c]
jmp 0x140290bd6
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140276698
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1402923e4
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 0x140292416
call fcn.140276810
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140276cc4
jmp 0x140292535
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140292535
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140292535
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140292445
lock or dword [rcx + 0x14], 0x10
jmp 0x140292535
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140292459
call fcn.14029aa00
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1402818c4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140278d0c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140292523
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1402924ee
mov rcx, rsi
call fcn.1402818c4
cmp eax, edi
je 0x1402924d9
mov rcx, rsi
call fcn.1402818c4
cmp eax, 0xfffffffe
je 0x1402924d9
mov rcx, rsi
call fcn.1402818c4
movsxd rbx, eax
lea r14, [0x1403afbf0]
mov rcx, rsi
sar rbx, 6
call fcn.1402818c4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1402924e0
lea rdx, [0x1403a7630]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1402924ee
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140292512
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140292512
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140292512
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 0x140292538
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 0x140292594
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140292571
call fcn.140276810
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140276cc4
or eax, 0xffffffff
jmp 0x14029258e
sub dword [rcx + 0x10], 1
jns 0x140292580
add rsp, 0x28
jmp fcn.1402923e4
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140292550
Function at 0x1402952fc
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 0x14029532c
xor eax, eax
jmp 0x1402953ef
mov rbp, rbx
cmp word [rax], si
je 0x140295351
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140295338
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140295334
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.14029077c
movsxd r14, eax
test eax, eax
jne 0x14029538f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140295325
mov rcx, r14
call fcn.14028d5e8
mov rdi, rax
test rax, rax
jne 0x1402953a8
xor ecx, ecx
call fcn.14028d5ac
jmp 0x140295384
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.14029077c
test eax, eax
jne 0x1402953d9
mov rcx, rdi
call fcn.14028d5ac
jmp 0x1402953e3
xor ecx, ecx
call fcn.14028d5ac
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 0x14029540c
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 0x140295493
mov rsi, rbx
cmp word [rax], bp
je 0x140295452
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14029543c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140295438
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14028d5e8
mov rdi, rax
test rax, rax
je 0x140295480
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140266320
mov rbp, rdi
xor ecx, ecx
call fcn.14028d5ac
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 0x14029c14c
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.1402758b8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14029c1d6
cmp byte [rbp - 0x21], r15b
je 0x14029c1d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14029c20c
call fcn.14028fbd8
test eax, eax
jne 0x14029c1f8
cmp byte [rbp - 0x21], r15b
je 0x14029c1f0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14029c20c
cmp byte [rbp - 0x21], r15b
je 0x14029c209
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.1402755b4
test eax, eax
jne 0x14029c2ac
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1402758b8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14029c24b
cmp byte [rbp - 0x21], r15b
je 0x14029c280
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14029c280
call fcn.14028fbd8
test eax, eax
jne 0x14029c26c
cmp byte [rbp - 0x21], r15b
je 0x14029c265
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14029c280
cmp byte [rbp - 0x21], r15b
je 0x14029c27d
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.1402755b4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14029c2ac
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14029c2af
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14029c2bd
mov rcx, rdi
call fcn.14028d5ac
cmp byte [rbp + 0x3f], r15b
je 0x14029c2cc
mov rcx, qword [rbp + 0x27]
call fcn.14028d5ac
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 0x180ab8626
Capabilities:
Encode data using xor

Disassembly:
jg 0x180b96dc1
jae 0x180b16660
xor r14b, 0xe5
push r11
mov r14, qword [rsp + 0x20]
movabs r11, 0x2a042a817770095a
movabs r11, 0x5c1c40b675d277b1
test r11, r11
pop r11
popfq
lea rsp, [rsp + 0x18]
call fcn.181556772
invalid
lea rcx, [rcx*8 + 0x20bd4568]
xor ecx, 0x48b42c24
not ecx
mov r8, qword [rsp + 0x28]
or cx, 0x47e
neg cx
setbe cl
mov rcx, qword [rsp + 0x38]
add qword [rsp + 0x10], 0x7f490916
call fcn.180c04b64
cmp dword [rbp - 0x61dca3c9], 0xf5fc51b
fidiv dword [rbp + rcx*8 - 0x26b0355d]
xor ebx, dword [rdi + rbp - 0x5e]
cld
invalid
Function at 0x140e0b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140e0b1df
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 0x140e0b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e0b06f
add dl, dl
jne 0x140e0b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e0b0f6
xor eax, eax
add dl, dl
jne 0x140e0b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e0b1ad
add dl, dl
jne 0x140e0b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e0b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e0b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e0b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e0b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e0b07e
mov eax, 1
add dl, dl
jne 0x140e0b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e0b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e0b0fb
sub eax, ebx
mov ebx, 1
jne 0x140e0b14c
mov ecx, 1
add dl, dl
jne 0x140e0b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e0b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e0b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e0b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e0b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e0b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e0b15d
cmp eax, 0x7d00
jae 0x140e0b19b
cmp eax, 0x500
jb 0x140e0b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e0b07e
cmp eax, 0x7f
ja 0x140e0b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e0b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e0b1d2
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 0x140e0b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20