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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
pushf
and r11, r11
popf
push rdi
push r14
pushf
push rdx
pop rdx
popf
mov eax, 0x1450
call fcn.14001afe2
pushf
rcr r12, 0
popf
sub rsp, rax
mov rax, qword [0x1400392a8]
xor rax, rsp
mov qword [rsp + 0x1440], rax
movsxd r10, edx
mov rdi, rcx
mov rax, r10
mov ebp, r9d
sar rax, 6
lea rcx, [0x14003a820]
and r10d, 0x3f
add rbp, r8
mov rsi, r8
mov rax, qword [rcx + rax*8]
lea rdx, [r10 + r10*8]
mov r14, qword [rax + rdx*8 + 0x28]
mov eax, 0
mov qword [rdi], rax
mov dword [rdi + 8], eax
cmp r8, rbp
pushf
dec rdi
inc rdi
popf
jae 0x14001397b
lea rbx, [rsp + 0x40]
cmp rsi, rbp
jae 0x140013903
movzx eax, word [rsi]
sub rsi, 0xfffffffffffffffe
cmp ax, 0xa
jne 0x1400138e7
add dword [rdi + 8], 2
mov ecx, 0xd
mov word [rbx], cx
sub rbx, 0xfffffffffffffffe
mov word [rbx], ax
sub rbx, 0xfffffffffffffffe
lea rax, [rsp + 0x143e]
cmp rbx, rax
pushf
shl rdi, 0
popf
jb 0x1400138c5
and qword [rsp + 0x20], 0
pushf
shr r8, 0
popf
lea rax, [rsp + 0x40]
sub rbx, rax
lea r9, [rsp + 0x30]
sar rbx, 1
lea rdx, [rsp + 0x40]
add ebx, ebx
mov rcx, r14
pushf
shr rdi, 0
popf
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001396c
mov eax, dword [rsp + 0x30]
pushf
jmp 0x140013948
popf
add dword [rdi + 4], eax
cmp eax, ebx
jb 0x14001397b
cmp rsi, rbp
jb 0x1400138c0
pushf
add r15, 0
pushf
sar r15, 0
popf
popf
jmp 0x14001397b
call qword [sym.imp.KERNEL32.dll_GetLastError]
pushf
or r13, r13
popf
mov dword [rdi], eax
mov rax, rdi
mov rcx, qword [rsp + 0x1440]
xor rcx, rsp
call fcn.140001426
pushf
dec rbp
inc rbp
popf
lea r11, [rsp + 0x1450]
pushf
rcr rbx, 0
popf
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
pushf
sub r13, 0
popf
ret
Function at 0x14001672a
Capabilities:
Get file size

Disassembly:
push rbx
add rsp, 0xffffffffffffffe0
mov edx, dword [rcx + 0x14]
nop
pushf
sub rsp, 0
popf
shr edx, 3
test dl, 1
je 0x140016750
pushf
sar r11, 0
popf
mov al, 1
jmp 0x1400167bb
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140016761
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400167b9
mov ecx, dword [rcx + 0x18]
nop
call fcn.140011af6
pushf
rcr rbp, 0
popf
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400167b9
mov r9d, 1
lea r8, [rsp + 0x38]
mov edx, 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400167b9
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400167b9
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400167bb
mov al, 0
sub rsp, 0xffffffffffffffe0
pop rbx
ret
Function at 0x140017cea
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
pushf
rcl rdx, 0
popf
push r14
push r15
lea rbp, [rax - 0x5f]
add rsp, 0xffffffffffffff60
mov r15d, 0
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
mov edx, 0
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
pushf
jmp 0x140017d55
popf
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
pushf
mov r14, r14
popf
call fcn.14000fa0e
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
pushf
xor rsp, 0
popf
jne 0x140017da6
pushf
sub r8, 0
pushf
or rsi, rsi
popf
popf
cmp byte [rbp - 0x21], r15b
je 0x140017da1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140017dee
call fcn.14000b8ed
test eax, eax
jne 0x140017dd0
cmp byte [rbp - 0x21], r15b
je 0x140017dc0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
pushf
xor rcx, 0
popf
jmp 0x140017dee
cmp byte [rbp - 0x21], r15b
je 0x140017deb
mov rax, qword [rbp - 0x39]
pushf
dec rax
inc rax
popf
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000ecf5
pushf
push rbp
pop rbp
popf
test eax, eax
jne 0x140017eb6
mov edx, 0
pushf
push r11
pop r11
popf
lea rcx, [rbp - 0x39]
call fcn.14000fa0e
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
pushf
rcr rbp, 0
popf
jne 0x140017e4e
cmp byte [rbp - 0x21], r15b
je 0x140017e8a
pushf
add r11, 0
popf
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140017e8a
call fcn.14000b8ed
test eax, eax
jne 0x140017e76
pushf
and r13, r13
popf
cmp byte [rbp - 0x21], r15b
je 0x140017e6f
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140017e8a
cmp byte [rbp - 0x21], r15b
je 0x140017e87
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.14000ecf5
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140017eb6
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140017eb9
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140017ec7
mov rcx, rdi
call fcn.14000b5cd
cmp byte [rbp + 0x3f], r15b
je 0x140017ed6
mov rcx, qword [rbp + 0x27]
call fcn.14000b5cd
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
pushf
shr r14, 0
popf
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001b4a4
Capabilities:
Get file size

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

Function at 0x14001f930
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f958
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f958
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140009008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140009008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140009008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140022030
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.14004cc10
sub rsp, rax
mov rax, qword [0x140064040]
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 0x1400220f2
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14002209d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140022090
cmp rcx, 1
jb 0x14002214a
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 0x1400220c0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400401e8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140022080
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140022123
lea rcx, [rsp + 0x80]
call fcn.1400419bc
jmp 0x140022125
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140031160
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140035750
int3

Function at 0x140022150
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], ax
lea rbx, [rsp + 0x30]
mov edi, 0x28
mov dl, 0x4e
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1400221ad
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1400221a0
cmp rcx, 1
jb 0x140022227
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 0x1400221c3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400401e8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140022190
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140031160
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140035750
int3
Function at 0x140031b34
Capabilities:
Parse pe header

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

Function at 0x140035ab0
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 0x14003591b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003591b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003591b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003591b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003591b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003591b
cmp dword [rcx + 0xf8], 0
je 0x14003591b
mov ecx, ebx
call fcn.1400359cc
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.1400357a8
nop
cmp dword [rbp + 0x20], 0
je 0x140035969
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140035974
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400358ac
Function at 0x1400466e4
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 0x14004676b
mov rsi, rbx
cmp word [rax], bp
je 0x14004672a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140046714
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140046710
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140043f6c
mov rdi, rax
test rax, rax
je 0x140046758
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14004d270
mov rbp, rdi
xor ecx, ecx
call fcn.14004233c
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 0x14004a2e0
Capabilities:
Get file size

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

Function at 0x14004cb20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004cb48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14004cb48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002008
Capabilities:
Parse pe header

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

Function at 0x140608058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406081df
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 0x140608089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14060806f
add dl, dl
jne 0x140608096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406080f6
xor eax, eax
add dl, dl
jne 0x1406080a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406081ad
add dl, dl
jne 0x1406080b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406080c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406080d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406080dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406080ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14060807e
mov eax, 1
add dl, dl
jne 0x140608106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140608113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406080fb
sub eax, ebx
mov ebx, 1
jne 0x14060814c
mov ecx, 1
add dl, dl
jne 0x14060812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14060813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140608123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14060807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140608168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140608175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14060815d
cmp eax, 0x7d00
jae 0x14060819b
cmp eax, 0x500
jb 0x140608196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14060807e
cmp eax, 0x7f
ja 0x14060819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14060807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406081d2
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 0x14060807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001450
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov rdi, rcx
mov esi, dword [0x140043100]
test esi, esi
je 0x14000151a
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14000150d
je 0x14000150b
test rdi, rdi
je 0x14000149c
movups xmm6, xmmword [rdi + 8]
cmp qword [rdi], 0
mov qword [rdi], 0
jne 0x1400014b8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rsp + 0x20]
movzx eax, byte [0x14009b108]
mov edx, 0x18
xor ecx, ecx
call fcn.14002a8d0
test rax, rax
je 0x14000153b
movups xmmword [rax], xmm6
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140001506
mov rcx, qword [0x14009b0f0]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rax, rsi
jmp 0x14000150d
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400430e8]
call fcn.14002baa0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140001480
jmp 0x14000150d
ud2
jmp 0x140001450
Function at 0x1400061a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x428
mov r15d, dword [rdx + 0x58]
lea r12d, [r15 - 1]
cmp r12, r9
jae 0x1400062cc
mov rdi, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rdx, r12
shl rdx, 0xa
add rdx, r8
lea rcx, [rsp + 0x28]
mov r8d, 0x400
call sub.msvcrt.dll_memcpy
mov eax, dword [rbx + 0x44]
cmp rax, 2
jb 0x1400062ac
add r14, 0x30
lea ecx, [r15*2 - 1]
mov edx, 1
nop word cs:[rax + rax]
mov r8d, r15d
imul r8d, edx
add r8d, r12d
cmp r8, rdi
jae 0x1400062cc
mov r8d, ecx
shl r8, 0xa
add r8, r14
inc rdx
xor r9d, r9d
nop word cs:[rax + rax]
movups xmm0, xmmword [r8 + r9*8 - 0x30]
movups xmm1, xmmword [r8 + r9*8 - 0x20]
movups xmm2, xmmword [rsp + r9*8 + 0x28]
xorps xmm2, xmm0
movups xmm0, xmmword [rsp + r9*8 + 0x38]
xorps xmm0, xmm1
movups xmm1, xmmword [rsp + r9*8 + 0x48]
movups xmm3, xmmword [rsp + r9*8 + 0x58]
movups xmmword [rsp + r9*8 + 0x28], xmm2
movups xmmword [rsp + r9*8 + 0x38], xmm0
movups xmm0, xmmword [r8 + r9*8 - 0x10]
xorps xmm0, xmm1
movups xmm1, xmmword [r8 + r9*8]
xorps xmm1, xmm3
movups xmmword [rsp + r9*8 + 0x48], xmm0
movups xmmword [rsp + r9*8 + 0x58], xmm1
add r9, 8
cmp r9, 0x80
jne 0x140006240
add ecx, r15d
cmp rdx, rax
jne 0x140006210
mov edi, dword [rbx + 0x40]
test rdi, rdi
je 0x1400062ce
mov ecx, 8
mov rdx, rdi
call fcn.14002a8d0
mov rcx, rax
mov rax, rdi
test rcx, rcx
jne 0x1400062d5
ud2
xor eax, eax
mov ecx, 1
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdi
lea r8, [rsp + 0x28]
mov r9d, 0x400
mov rdx, rdi
call fcn.1400048e0
nop
add rsp, 0x428
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140019200
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140019242
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x14001924a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14001925b
jmp 0x140019272
xor r10d, r10d
jmp 0x1400192fd
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140019272
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140019289
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x1400192a9
add r11, r8
jmp 0x1400193db
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov rdi, qword [rax + 0x10]
mov r9, qword [rax]
add r9, rdi
mov r11, qword [rax + 8]
add r11, rcx
rol rdi, 0xd
xor rdi, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, r11
add r11, rdi
rol rdi, 0x11
add r9, rcx
xor rdi, r11
rol rcx, 0x15
mov qword [rax + 0x10], rdi
xor rcx, r9
rol r11, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], r11
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140019372
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140019320
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x140019390
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x1400193a2
jmp 0x1400193bd
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x1400193bd
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x1400193d7
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140022590
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov esi, dword [0x1400430c0]
test esi, esi
je 0x140022632
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14002262a
je 0x1400225d3
test rdi, rdi
je 0x1400225d7
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x1400225d9
mov rbx, qword [rdi + 8]
jmp 0x1400225d9
xor eax, eax
jmp 0x14002262a
xor ebx, ebx
movzx eax, byte [0x14009b108]
mov edx, 0x10
xor ecx, ecx
call fcn.14002a8d0
test rax, rax
je 0x140022653
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140022627
mov rcx, qword [0x14009b0f0]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400430a8]
call fcn.14002baa0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400225b7
jmp 0x14002262a
ud2