joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025180
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x488
mov rax, qword [0x1400c7368]
xor rax, rsp
mov qword [rsp + 0x470], rax
cmp qword [rcx + 0x20], 0
mov r14, r9
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
je 0x1400252e3
test rdx, rdx
je 0x1400252e3
xor edx, edx
mov qword [rsp + 0x480], rbx
mov r8d, 0x208
lea rcx, [rsp + 0x260]
call fcn.140037a60
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140037a60
lea rdx, [0x1400a6a1c]
mov rcx, rdi
mov rbx, rdi
call fcn.140039000
test rax, rax
je 0x14002524e
nop word [rax + rax]
lea rbx, [rax + 2]
mov rcx, rbx
lea rdx, [0x1400a6a1c]
call fcn.140039000
test rax, rax
jne 0x140025210
cmp rbx, rdi
je 0x14002524e
mov r9, rbx
lea rcx, [rsp + 0x260]
sub r9, rdi
mov r8, rdi
sar r9, 1
mov edx, 0x104
dec r9
call fcn.140072e98
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov r8, rbx
mov edx, 0x104
call fcn.140072e98
mov eax, dword [r14]
lea r8, [rsp + 0x50]
mov rcx, qword [rbp + 0x20]
lea rdx, [rsp + 0x260]
mov dword [rsp + 0x40], eax
mov r9d, 0x20
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov rbx, qword [rsp + 0x480]
cmp eax, 0xea
je 0x1400252d5
test eax, eax
jne 0x1400252bd
test rsi, rsi
je 0x1400252d5
jmp 0x1400252e8
cmp eax, 0x57
jne 0x1400252c9
mov eax, 2
jmp 0x1400252e8
cmp eax, 2
jne 0x1400252e3
mov eax, 1
jmp 0x1400252e8
mov ecx, dword [rsp + 0x40]
mov eax, 3
mov qword [r14], rcx
jmp 0x1400252e8
mov eax, 4
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140035e00
add rsp, 0x488
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140025410
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x1400c7368]
xor rax, rsp
mov qword [rsp + 0x460], rax
cmp qword [rcx + 0x20], 0
mov rsi, rdx
mov rbp, rcx
mov dword [rsp + 0x30], r8d
mov edi, 4
je 0x14002552f
cmp dword [rcx + 0x18], 0
jne 0x14002552f
test rdx, rdx
je 0x14002552f
xor edx, edx
mov qword [rsp + 0x4a8], rbx
mov r8d, 0x208
lea rcx, [rsp + 0x250]
call fcn.140037a60
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.140037a60
lea rdx, [0x1400a6a1c]
mov rcx, rsi
mov rbx, rsi
call fcn.140039000
test rax, rax
je 0x1400254df
lea rbx, [rax + 2]
mov rcx, rbx
lea rdx, [0x1400a6a1c]
call fcn.140039000
test rax, rax
jne 0x1400254a1
cmp rbx, rsi
je 0x1400254df
mov r9, rbx
lea rcx, [rsp + 0x250]
sub r9, rsi
mov r8, rsi
sar r9, 1
mov edx, 0x104
dec r9
call fcn.140072e98
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x40]
mov r8, rbx
mov edx, 0x104
call fcn.140072e98
mov rcx, qword [rbp + 0x20]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x40]
mov r9d, edi
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x250]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rbx, qword [rsp + 0x4a8]
xor ecx, ecx
test eax, eax
cmove edi, ecx
mov eax, edi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140035e00
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
Function at 0x140025550
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x1400c7368]
xor rax, rsp
mov qword [rsp + 0x450], rax
cmp qword [rcx + 0x20], 0
mov r15, r9
mov r14, r8
mov rsi, rdx
mov rbp, rcx
mov ebx, 4
je 0x14002568d
cmp dword [rcx + 0x18], 0
jne 0x14002568d
test rdx, rdx
je 0x14002568d
test r8, r8
je 0x14002568d
test r9, r9
je 0x14002568d
xor edx, edx
mov qword [rsp + 0x468], rdi
mov r8d, 0x208
lea rcx, [rsp + 0x240]
call fcn.140037a60
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140037a60
lea rdx, [0x1400a6a1c]
mov rcx, rsi
mov rdi, rsi
call fcn.140039000
test rax, rax
je 0x14002563e
nop dword [rax + rax]
lea rdi, [rax + 2]
mov rcx, rdi
lea rdx, [0x1400a6a1c]
call fcn.140039000
test rax, rax
jne 0x140025600
cmp rdi, rsi
je 0x14002563e
mov r9, rdi
lea rcx, [rsp + 0x240]
sub r9, rsi
mov r8, rsi
sar r9, 1
mov edx, 0x104
dec r9
call fcn.140072e98
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 0x104
call fcn.140072e98
mov rcx, qword [rbp + 0x20]
lea r8, [rsp + 0x30]
mov r9d, 1
mov dword [rsp + 0x28], r15d
lea rdx, [rsp + 0x240]
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rdi, qword [rsp + 0x468]
xor ecx, ecx
test eax, eax
cmove ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140035e00
add rsp, 0x470
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400256b0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x1400c7368]
xor rax, rsp
mov qword [rsp + 0x450], rax
cmp qword [rcx + 0x20], 0
mov r15, r9
mov r14, r8
mov rsi, rdx
mov rbp, rcx
mov ebx, 4
je 0x1400257ed
cmp dword [rcx + 0x18], 0
jne 0x1400257ed
test rdx, rdx
je 0x1400257ed
test r8, r8
je 0x1400257ed
test r9, r9
je 0x1400257ed
xor edx, edx
mov qword [rsp + 0x468], rdi
mov r8d, 0x208
lea rcx, [rsp + 0x240]
call fcn.140037a60
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140037a60
lea rdx, [0x1400a6a1c]
mov rcx, rsi
mov rdi, rsi
call fcn.140039000
test rax, rax
je 0x14002579e
nop dword [rax + rax]
lea rdi, [rax + 2]
mov rcx, rdi
lea rdx, [0x1400a6a1c]
call fcn.140039000
test rax, rax
jne 0x140025760
cmp rdi, rsi
je 0x14002579e
mov r9, rdi
lea rcx, [rsp + 0x240]
sub r9, rsi
mov r8, rsi
sar r9, 1
mov edx, 0x104
dec r9
call fcn.140072e98
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 0x104
call fcn.140072e98
mov rcx, qword [rbp + 0x20]
lea r8, [rsp + 0x30]
mov r9d, 7
mov dword [rsp + 0x28], r15d
lea rdx, [rsp + 0x240]
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rdi, qword [rsp + 0x468]
xor ecx, ecx
test eax, eax
cmove ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140035e00
add rsp, 0x470
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x140029720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x88
mov rax, qword [0x1400c7368]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp qword [rcx + 0x18], 8
jb 0x140029740
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002976d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140029787
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140035e00
add rsp, 0x88
ret
shr eax, 0xa
and al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140035e00
add rsp, 0x88
ret
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.14002c970
nop
mov r8, rax
lea rdx, str.GetFileAttributes___failed:
lea rcx, [rsp + 0x58]
call fcn.140027b20
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14001a7a0
lea rdx, [0x1400c43b8]
lea rcx, [rsp + 0x20]
call fcn.140039ae4
int3
Function at 0x140032770
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
mov qword [rsp], 0x1505
mov rax, qword [rsp + 8]
movsx rax, byte [rax]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0
je 0x1400327c5
mov rax, qword [rsp]
shl rax, 5
add rax, qword [rsp]
add rax, qword [rsp + 0x10]
mov qword [rsp], rax
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
jmp 0x14003278b
mov rax, qword [rsp]
add rsp, 0x28
ret

Function at 0x140070760
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14007054f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007054f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007054f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007054f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007054f
cmp dword [rcx + 0x84], 0xe
jbe 0x14007054f
cmp dword [rcx + 0xf8], 0
je 0x14007054f
mov ecx, ebx
call fcn.140070680
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400702c8
cmp dword [rbp + 0x20], 0
je 0x14007059c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400705a4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400704e8
Function at 0x14002934c
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.14001ca14
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ca14
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002949c
cmp rax, 0xffffffffffffffff
je 0x14002949c
xor edi, edi
test rbp, rbp
jle 0x140029447
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f340
mov rbx, rax
test rax, rax
jne 0x1400293d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002943d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a348
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.14001d6f0
cmp eax, 0xffffffff
je 0x14002941d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400293e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a348
jmp 0x14002943d
cmp byte [rsi + 0x38], dil
je 0x140029434
cmp dword [rsi + 0x34], 5
jne 0x140029434
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002943d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b0dc
jmp 0x1400294b0
jns 0x1400294b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ca14
cmp rax, 0xffffffffffffffff
jne 0x140029468
cmp byte [rsi + 0x30], dil
je 0x1400294b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400294b0
mov ecx, r14d
call fcn.140018804
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400294b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400294b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400294a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400294ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ca14
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 0x140fcb6f4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140fcb6fe
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140fcb727
pop rbp
sub rbp, 0x33
sub rbp, 0xfcb6f4
sub rsp, 0x20
jmp 0x140fcb746
mov rax, 0xfcb6f4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x8298f82
xor byte [rax], dl
inc rax
dec rcx
jne 0x140fcb765
jmp 0x140fcb77c
retf 0x6b0b
Function at 0x140020540
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp rdx, 1
je 0x140020582
mov rdi, rdx
lea rax, [rdx - 1]
test rdx, rax
je 0x140020567
mov rcx, rdi
int3
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x140020589
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400c4170
mov edi, 2
jmp 0x140020567
jb 0x140020593
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400205a3
cvtsi2ss xmm0, rax
jmp 0x1400205b8
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.1400c2250
cvttss2si rcx, xmm0
movss xmm1, dword [0x140133710]
movaps xmm2, xmm0
subss xmm2, xmm1
cvttss2si rax, xmm2
btc rax, 0x3f
ucomiss xmm0, xmm1
cmovb rax, rcx
cmp rbx, 3
jb 0x14002066a
mov rcx, rbx
shr rcx, 1
movabs r8, 0x5555555555555555
and r8, rcx
mov rdx, rbx
sub rdx, r8
movabs r8, 0x3333333333333333
mov rcx, rdx
shr rcx, 2
and rdx, r8
and rcx, r8
add rcx, rdx
mov rdx, rcx
shr rdx, 4
add rdx, rcx
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rdx
movabs rdx, 0x101010101010101
imul rdx, rcx
shr rdx, 0x38
cmp edx, 1
ja 0x14002066a
cmp rax, 2
jb 0x140020672
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x140020672
mov rcx, rax
int3
cmp rdi, rax
cmovb rdi, rax
cmp rdi, rbx
jae 0x14002058b
jmp 0x140020570
Function at 0x14002f270
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140099ee0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14002f30f
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.1400afcb8
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
int3
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140097620
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14002f340
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140099ee0
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14002f3d5
cmp word [rsp + 0x70], 0
je 0x14002f3d5
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400afcb8
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
int3
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140097620
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140133080]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140068290
mov rcx, rdi
call fcn.14002f270
test al, al
je 0x14002f415
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400682f0
jmp 0x14002f434
lea rax, [0x140136862]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
int3
lea rcx, [rsp + 0x40]
call fcn.1400683f0
jmp 0x14002f3b7
Function at 0x1400324f0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140099ee0
mov word [rdi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003257c
mov ebx, eax
sub rbx, 1
jb 0x14003257c
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14003254c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140032566
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
int3
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x103
jae 0x1400325d6
mov ebx, eax
sub rbx, 1
jb 0x1400325d6
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x1400325a6
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400325c0
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
int3
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140032630
mov ebx, eax
sub rbx, 1
jb 0x140032630
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x140032600
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003261a
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
int3
xor edi, edi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140097620
mov eax, edi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003b8a0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r12, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x14003b8d4
mov rax, qword [r12 + 8]
test rax, rax
je 0x14003b9cc
mov eax, ebx
not eax
test eax, 0x300
je 0x14003b9cc
cmp edi, 2
lea rax, [0x14015bec0]
lea rcx, [0x14015c0c0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14003b9cc
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
je 0x14003b9cc
cmp byte [0x14015beb0], 0
setne al
bt ebx, 8
jb 0x14003b9cc
shr ebx, 9
and ebx, 1
or bl, al
je 0x14003b9cc
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx r13d, byte [r12 + 0x17]
test r13b, r13b
jns 0x14003ba27
mov rbx, qword [r12]
mov r13, qword [r12 + 8]
mov r14d, 1
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rdi, qword [rsi + 8]
mov rbp, r13
sub rbp, rdi
jb 0x14003b9b9
mov rdx, qword [rsi]
mov rcx, rbx
mov r8, rdi
int3
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x14003b99b
cmp dword [rsp + 0x2c], 0
jne 0x14003ba2f
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140097620
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, r12
jmp 0x14003b97c
cmp byte [r12 + 0x17], 0
js 0x14003ba97
mov rax, r12
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.140029be0
jmp 0x14003b9cc
mov rax, qword [r12]
jmp 0x14003ba3a

Function at 0x14003eaf0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140157278]
cmp ecx, 0xffffffff
je 0x14003eb15
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x14003eb10
Function at 0x14003eb20
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x140157278]
cmp ecx, 0xffffffff
je 0x14003ebfe
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14003ebfe
mov eax, dword [0x14015dda8]
mov ecx, dword [0x140157484]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003ec08
mov rbx, qword [0x14015dda0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14003ec4e
mov rax, qword [0x14015c598]
inc rax
xor ecx, ecx
lea rdx, [0x14015c5a0]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x14003ec5b
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x14015c598], rdi
mov dword [r15], edi
mov eax, dword [rax + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x14003ec70
cmp eax, 0x100
jge 0x14003ec73
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14003ec80
jmp 0x14003eb4e
lea rcx, [0x14015dda8]
int3
mov rcx, rbx
int3
inc rcx
cmp rcx, 0x100
jne 0x14003eb9e
jmp 0x14003ebd2
int3
int3

Function at 0x14003fde0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14015ded8]
cmp rdi, 1
jbe 0x14003fe09
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140074b20
lea rcx, [0x14015ded8]
int3

Function at 0x140043460
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r14, r8
mov ebx, edx
mov rdi, rcx
mov esi, dword [0x14015e040]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test ebp, ebp
jne 0x140043572
cmp rsi, 1
je 0x14004356e
mov eax, dword [rdi + 0x1518]
test eax, eax
jne 0x14004356e
mov eax, 1
lock xadd dword [rdi + 0x1518], eax
cmp eax, 0x7fffffff
je 0x14004357f
mov rcx, rdi
int3
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x140043555
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140043493
int3

Function at 0x1400439c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, dword [0x14015e040]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test edi, edi
jne 0x1400439f7
cmp rsi, 2
jb 0x140043a01
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14007ab60
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400439e3
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14004c070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14, r9
mov r15, rcx
movzx r12d, byte [r8]
lea rbp, [r8 + 1]
test r12b, r12b
jns 0x14004c0f1
movzx ecx, byte [rbp]
mov eax, ecx
shl eax, 7
add r12d, eax
add r12d, 0xffffff80
mov eax, 1
test cl, cl
jns 0x14004c0ea
movzx ecx, byte [r8 + 2]
mov eax, ecx
shl eax, 0xe
add r12d, eax
add r12d, 0xffffc000
mov eax, 2
test cl, cl
jns 0x14004c0ea
movzx ecx, byte [r8 + 3]
mov eax, ecx
shl eax, 0x15
add r12d, eax
add r12d, 0xffe00000
mov eax, 3
test cl, cl
js 0x14004c1e2
lea rbp, [r8 + rax]
inc rbp
test rbp, rbp
je 0x14004c202
mov rbx, qword [r15]
test rbx, rbx
je 0x14004c133
lea esi, [rdx*8 + 2]
cmp esi, 0x80
jb 0x14004c152
mov rdi, rsi
mov edx, esi
or dl, 0x80
mov rcx, rbx
int3
movsxd rax, r12d
mov rcx, qword [r14 + 8]
sub rcx, rbp
add rcx, 0x10
cmp rcx, rax
jl 0x14004c218
add rbp, rax
jmp 0x14004c204
mov rdi, rsi
mov rcx, rbx
mov edx, edi
int3
movzx eax, byte [r8 + 4]
cmp eax, 7
ja 0x14004c202
shl eax, 0x1c
add r12d, eax
add r12d, 0xf0000000
cmp r12d, 0x7fffffef
jbe 0x14004c236
xor ebp, ebp
mov rax, rbp
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r14
mov rdx, rbp
mov r8d, r12d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x14010c130
add r8, 5
mov rbp, r8
jmp 0x14004c0f1
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov edi, r8d
mov r8, rdx
mov rbx, rcx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebp, dword [rcx + 8]
sub ebp, r8d
add ebp, 0x10
xor r14d, r14d
movaps xmm6, xmmword [0x140133080]
lea rsi, [rsp + 0x20]
cmp dword [rbx + 0x1c], 0x10
je 0x14010c1ba
movsxd rax, ebp
add r8, rax
movaps xmmword [rsp + 0x20], xmm6
mov rcx, rbx
mov rdx, rsi
mov r9d, 0xffffffff
call fcn.14004bef0
cmp byte [rsp + 0x28], 0
jne 0x14010c1b7
sub edi, ebp
mov r8, qword [rsp + 0x20]
mov ebp, dword [rbx + 8]
sub ebp, r8d
add ebp, 0x10
cmp edi, ebp
jg 0x14010c16f
movsxd rax, edi
add r8, rax
mov r14, r8
jmp 0x14010c1ba
xor r14d, r14d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140097620
mov rax, r14
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140050c20
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14015fad8]
cmp rdi, 1
jbe 0x140050c49
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140074b20
lea rcx, [0x14015fad8]
call fcn.14004de50
test al, al
je 0x140050c8f
mov qword [0x14015fae0], 0
lea rbx, [0x14015fad8]
lea rdi, [0x14015fae0]
mov rcx, rdi
xor edx, edx
call fcn.14003ee90
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14004def0
jmp 0x140050c37
mov rdi, qword [0x14015fad8]
jmp 0x140050c37