joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010e490
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400018c5
sub rsp, rax
mov rax, qword [0x140237fa8]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14023b0d0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14010e69d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14010e5e9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14010e5e9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14010e5c9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14010e558
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14010e65d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14010e6bc
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x14010e698
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14010e6bc
jmp 0x14010e52e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400027ac
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140e2f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140e2f1df
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 0x140e2f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2f06f
add dl, dl
jne 0x140e2f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2f0f6
xor eax, eax
add dl, dl
jne 0x140e2f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2f1ad
add dl, dl
jne 0x140e2f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e2f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e2f07e
mov eax, 1
add dl, dl
jne 0x140e2f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2f0fb
sub eax, ebx
mov ebx, 1
jne 0x140e2f14c
mov ecx, 1
add dl, dl
jne 0x140e2f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e2f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e2f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e2f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2f15d
cmp eax, 0x7d00
jae 0x140e2f19b
cmp eax, 0x500
jb 0x140e2f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2f07e
cmp eax, 0x7f
ja 0x140e2f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e2f1d2
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 0x140e2f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002110
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000220b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002213
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x14000224a
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002220
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002275
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000229b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140002280
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a3e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a425
xor al, al
jmp 0x14000a472
cmp word [rbx], 0
je 0x14000a43d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a430
cmp word [rsp + 0x30], 0
je 0x14000a46b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a493
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a450
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b460
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f534
int3
Function at 0x14000aae0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f6e0
sub rsp, rax
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x140030590]
lea rsi, [0x1400325c0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ab53
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000a4a0
test al, al
je 0x14000ac3f
lea rcx, [rsp + 0x20]
call fcn.140013c04
movsxd r11, dword [0x140030590]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x140030590], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ab94
mov r10, rsi
nop
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ab84
add rax, 2
test ecx, ecx
jne 0x14000ab70
test edx, edx
je 0x14000abb7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ab60
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000aba0
cmp rax, 2
jne 0x14000abbb
cmp word [rdi + 2], 0x3a
jne 0x14000abbb
mov al, 1
jmp 0x14000ac1e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000abe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000abe8
mov bl, 1
jmp 0x14000abec
test bl, bl
je 0x14000ac13
cmp dword [0x140030590], 0x400
jge 0x14000ac13
mov rcx, rdi
call fcn.140013c04
movsxd rdx, dword [0x140030590]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x140030590], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b460
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000a930
int3
Function at 0x14000ad60
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x140030598]
test rcx, rcx
je 0x14000ad9b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000ad8e
mov rcx, qword [0x140030598]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140030598]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400345e8], 0
je 0x14000ae8e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140028880]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400305c0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000ae6f
test al, 0x10
je 0x14000ae6f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000ae15
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000bd34
Capabilities:
Parse pe header

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

Function at 0x14000f528
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 0x14000f393
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f393
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f393
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f393
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f393
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f393
cmp dword [rcx + 0xf8], 0
je 0x14000f393
mov ecx, ebx
call fcn.14000f444
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.14000f220
nop
cmp dword [rbp + 0x20], 0
je 0x14000f3e1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f3ec
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f324
Function at 0x140018b10
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 0x140018b97
mov rsi, rbx
cmp word [rax], bp
je 0x140018b56
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018b40
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018b3c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016340
mov rdi, rax
test rax, rax
je 0x140018b84
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d300
mov rbp, rdi
xor ecx, ecx
call fcn.140015364
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 0x14001b160
Capabilities:
Get file size

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

Function at 0x14001f5f0
Capabilities:
Parse pe header

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

Disassembly:
call fcn.14079b33f
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 0x14079b1e9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14079b1cf
add dl, dl
jne 0x14079b1f6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14079b256
xor eax, eax
add dl, dl
jne 0x14079b205
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14079b30d
add dl, dl
jne 0x14079b216
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14079b223
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14079b230
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14079b23d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14079b24a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14079b1de
mov eax, 1
add dl, dl
jne 0x14079b266
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14079b273
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14079b25b
sub eax, ebx
mov ebx, 1
jne 0x14079b2ac
mov ecx, 1
add dl, dl
jne 0x14079b28e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14079b29b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14079b283
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14079b1de
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14079b2c8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14079b2d5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14079b2bd
cmp eax, 0x7d00
jae 0x14079b2fb
cmp eax, 0x500
jb 0x14079b2f6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14079b1de
cmp eax, 0x7f
ja 0x14079b2fe
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14079b1de
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14079b332
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 0x14079b1de
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140085a18
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140138950
mov rax, rcx
neg rcx
test rax, 7
je 0x14013896d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401389c8
test al, 7
jne 0x140138960
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 0x140138981
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401389f2
test dh, dh
je 0x1401389ec
shr rdx, 0x10
test dl, dl
je 0x1401389e6
test dh, dh
je 0x1401389e0
shr rdx, 0x10
test dl, dl
je 0x1401389da
test dh, dh
je 0x1401389d4
shr edx, 0x10
test dl, dl
je 0x1401389ce
test dh, dh
jne 0x140138981
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 0x140085a54
Capabilities:
Query environment variable

Disassembly:
jmp 0x14015df00
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14015da80
lea rcx, [rsp + 0x20]
call fcn.14015dad0
movzx eax, al
test eax, eax
jne 0x14015df45
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14015dab0
mov rax, qword [rsp + 0x40]
jmp 0x14015e03f
lea rcx, [rsp + 0x20]
call fcn.14015dbd0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14015db70
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.140085cca
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400855e5
lea rcx, [rsp + 0x28]
call fcn.140086021
movzx eax, al
test eax, eax
jne 0x14015dfdf
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140086e72
lea rcx, [rsp + 0x20]
call fcn.14015dab0
mov rax, qword [rsp + 0x50]
jmp 0x14015e03f
lea rcx, [rsp + 0x20]
call fcn.14015dbd0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400879c1
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.140085c43
lea rcx, [rsp + 0x28]
call fcn.140088047
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140086e72
lea rcx, [rsp + 0x20]
call fcn.14015dab0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x140085df6
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400a7500
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400a6e80
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a753f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401e5020]
jmp 0x1400a7549
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140085f81
Capabilities:
Query environment variable

Disassembly:
jmp 0x14015dc50
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14015da80
lea rcx, [rsp + 0x40]
call fcn.14015dc00
movzx eax, al
test eax, eax
jne 0x14015dc98
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14015dab0
mov rax, qword [rsp + 0x70]
jmp 0x14015de69
lea rcx, [rsp + 0x40]
call fcn.14015dbd0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14015db70
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.14015dbd0
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.140086be3
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14015dd3e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14015dab0
mov rax, qword [rsp + 0x80]
jmp 0x14015de69
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140085cca
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140085b62
lea rcx, [rsp + 0x48]
call fcn.140085761
movzx eax, al
test eax, eax
jne 0x14015dda5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400848d4
lea rcx, [rsp + 0x40]
call fcn.14015dab0
mov rax, qword [rsp + 0x88]
jmp 0x14015de69
lea rcx, [rsp + 0x48]
call fcn.1400862fb
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14015dbd0
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.140086be3
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14015de3b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400848d4
lea rcx, [rsp + 0x40]
call fcn.14015dab0
mov rax, qword [rsp + 0xa0]
jmp 0x14015de69
lea rcx, [rsp + 0x48]
call fcn.140085b35
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400848d4
lea rcx, [rsp + 0x40]
call fcn.14015dab0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140085f95
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400a7430
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400a6e00
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a7471
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401e5020]
jmp 0x1400a7477
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret