joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013dad0
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 0x14013db00
xor eax, eax
jmp 0x14013dbc3
mov rbp, rbx
cmp word [rax], si
je 0x14013db25
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14013db0c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14013db08
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.1400cf0e8
movsxd r14, eax
test eax, eax
jne 0x14013db63
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14013daf9
mov rcx, r14
call fcn.1400591a8
mov rdi, rax
test rax, rax
jne 0x14013db7c
xor ecx, ecx
call fcn.14005916c
jmp 0x14013db58
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.1400cf0e8
test eax, eax
jne 0x14013dbad
mov rcx, rdi
call fcn.14005916c
jmp 0x14013dbb7
xor ecx, ecx
call fcn.14005916c
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 0x14013dbe0
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 0x14013dc67
mov rsi, rbx
cmp word [rax], bp
je 0x14013dc26
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14013dc10
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14013dc0c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400591a8
mov rdi, rax
test rax, rax
je 0x14013dc54
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140017310
mov rbp, rdi
xor ecx, ecx
call fcn.14005916c
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 0x14013e520
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.14003f380]
mov rbx, rax
test rax, rax
jne 0x14013e565
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x14013e5b0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x14013e612
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x14013e5d0
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x14013e653
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x14015fba8]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14015fba9]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14013e620
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x14013f650
Capabilities:
Encode data using xor

Disassembly:
push rdi
mov r10d, dword [rcx + 0xb94]
mov r11, rcx
mov ecx, 8
sub ecx, r10d
shr r8d, cl
mov ecx, r10d
mov eax, dword [r11 + 0xb98]
xor r10d, r10d
and eax, edx
shl eax, cl
mov ecx, dword [rsp + 0x38]
add r8d, eax
add ecx, 0x100
lea rdi, [r8 + r8*2]
shl rdi, 9
add rdi, r11
lea r11, [0x1401602c0]
test r9b, r9b
jne 0x14013f6d6
nop dword [rax]
mov r8d, ecx
shr ecx, 1
and r8d, 1
neg r8d
shr r8, 4
movzx r9d, word [rdi + rcx*2 + 0xb9c]
and r8d, 0x7f
shr r9, 4
xor r9, r8
movzx edx, byte [r9 + r11]
add r10d, edx
cmp ecx, 1
jne 0x14013f6a0
mov eax, r10d
pop rdi
ret
mov qword [rsp + 0x10], rbx
mov r9d, 0x100
mov ebx, dword [rsp + 0x30]
nop word [rax + rax]
mov edx, ecx
add ebx, ebx
shr edx, 8
mov eax, r9d
and eax, ebx
add eax, r9d
add edx, eax
movzx r8d, word [rdi + rdx*2 + 0xb9c]
mov edx, ecx
shr edx, 7
add ecx, ecx
and edx, 1
shr r8, 4
neg edx
shr rdx, 4
and edx, 0x7f
xor r8, rdx
movzx eax, byte [r8 + r11]
add r10d, eax
mov eax, ebx
xor eax, ecx
not eax
and r9d, eax
cmp ecx, 0x10000
jb 0x14013f6f0
mov rbx, qword [rsp + 0x10]
mov eax, r10d
pop rdi
ret
Function at 0x14013f750
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 r14
push r15
mov r14d, 4
lea rbx, [rcx + 0x10290]
mov ebp, r14d
lea rsi, [rcx + 0x10698]
mov r10, rcx
lea r15, [0x1401602c0]
xor edi, edi
nop dword [rax + rax]
mov eax, dword [r10 + 0x10e90]
xor r11d, r11d
test eax, eax
je 0x14013f7f7
nop
xor r9d, r9d
lea eax, [r11 + 0x40]
nop word [rax + rax]
mov edx, eax
shr eax, 1
and edx, 1
mov ecx, eax
add rcx, rdi
movzx r8d, word [r10 + rcx*2 + 0x6efc]
mov ecx, edx
neg ecx
shr r8, 4
shr rcx, 4
and ecx, 0x7f
xor r8, rcx
movzx ecx, byte [r8 + r15]
add r9d, ecx
cmp eax, 1
jne 0x14013f7b0
mov dword [rbx + r11*4], r9d
inc r11d
mov eax, dword [r10 + 0x10e90]
cmp r11d, eax
jb 0x14013f7a0
mov edx, reloc.WS2_32.dll_ntohl
cmp eax, edx
jbe 0x14013f820
mov eax, edx
lea rcx, [rbx + rax*4]
mov eax, edx
shr eax, 1
inc edx
shl eax, 4
sub eax, 0x50
add dword [rcx], eax
cmp edx, dword [r10 + 0x10e90]
jb 0x14013f800
nop dword [rax]
mov eax, dword [rbx]
add rdi, 0x40
mov dword [rsi - 8], eax
mov eax, dword [rbx + 4]
mov dword [rsi - 4], eax
mov eax, dword [rbx + 8]
mov dword [rsi], eax
mov eax, dword [rbx + 0xc]
add rbx, 0x100
mov dword [rsi + 4], eax
add rsi, 0x200
sub rbp, 1
jne 0x14013f790
lea rdi, [r10 + 0x10aa0]
nop dword [rax]
cmp r14d, 4
ja 0x14013f86b
mov edx, r14d
jmp 0x14013f87d
bsr edx, r14d
mov eax, r14d
lea ecx, [rdx - 1]
shr eax, cl
and eax, 1
lea edx, [rax + rdx*2]
mov r9d, edx
mov r11d, edx
shr r9d, 1
mov eax, edx
and eax, 1
dec r9d
or eax, 2
mov ecx, r9d
shl eax, cl
mov ebx, r14d
sub ebx, eax
mov ebp, eax
xor r8d, r8d
lea esi, [r8 + 1]
mov eax, esi
mov edx, ebx
sub rax, r11
shr ebx, 1
add rax, rbp
and edx, 1
movzx ecx, word [r10 + rax*2 + 0x70fa]
lea esi, [rdx + rsi*2]
mov eax, edx
shr rcx, 4
neg eax
shr rax, 4
and eax, 0x7f
xor rcx, rax
movzx eax, byte [rcx + r15]
add r8d, eax
add r9d, 0xffffffff
jne 0x14013f8a4
mov ecx, dword [r10 + r11*4 + 0x10290]
inc r14d
add ecx, r8d
mov dword [rdi - 0x400], ecx
mov ecx, dword [r10 + r11*4 + 0x10390]
add ecx, r8d
mov dword [rdi - 0x200], ecx
mov ecx, dword [r10 + r11*4 + 0x10490]
add ecx, r8d
mov dword [rdi], ecx
mov ecx, dword [r10 + r11*4 + 0x10590]
add ecx, r8d
mov dword [rdi + 0x200], ecx
add rdi, 4
cmp r14d, 0x80
jb 0x14013f860
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov dword [r10 + 0x10e94], r9d
pop r15
pop r14
ret
Function at 0x140141040
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.1400195ac
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401410ca
cmp byte [rbp - 0x21], r15b
je 0x1401410c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140141100
call fcn.14005a36c
test eax, eax
jne 0x1401410ec
cmp byte [rbp - 0x21], r15b
je 0x1401410e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140141100
cmp byte [rbp - 0x21], r15b
je 0x1401410fd
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.140076a8c
test eax, eax
jne 0x1401411a0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400195ac
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14014113f
cmp byte [rbp - 0x21], r15b
je 0x140141174
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140141174
call fcn.14005a36c
test eax, eax
jne 0x140141160
cmp byte [rbp - 0x21], r15b
je 0x140141159
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140141174
cmp byte [rbp - 0x21], r15b
je 0x140141171
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.140076a8c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401411a0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401411a3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401411b1
mov rcx, rdi
call fcn.14005916c
cmp byte [rbp + 0x3f], r15b
je 0x1401411c0
mov rcx, qword [rbp + 0x27]
call fcn.14005916c
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 0x1401e9865
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
xor rax, rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.140014470
mov rcx, qword [rsp + 0x70]
call fcn.140202640
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.140014530
add rsp, 0x10
push rcx
sub rsp, 0x28
call fcn.140014710
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140014710
add rsp, 0x28
pop rcx
mov r8, rax
movabs rdx, 1
mov rcx, qword [rsp + 0x38]
sub rsp, 0x20
call fcn.140012a10
add rsp, 0x28
movabs rcx, 0x14018dc26
sub rsp, 0x28
call fcn.1400144c0
add rsp, 0x28
call fcn.140014750
lea rcx, [rsp + 0x40]
pop rdx
call fcn.1400143a0
push 0
push 0
push 0
push 0
lea rax, [rsp + 0x50]
push rax
push 0
push 0
mov rax, qword [rsp + 0x70]
mov rcx, rax
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.KERNEL32.dll_GetVolumeInformationW
add rsp, 0x40
push rcx
sub rsp, 0x28
call fcn.140014710
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140014710
add rsp, 0x28
pop rcx
push rax
movsxd rax, dword [rsp + 0x48]
mov rcx, rax
pop rdx
sub rsp, 0x20
call fcn.140012960
add rsp, 0x28
pop rax
push rax
call fcn.1400146d0
pop rdx
add rax, rdx
jmp 0x1401e9993
push rax
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.140014650
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140014650
add rsp, 0x28
pop rax
add rsp, 0x48
ret
Function at 0x1401eb8ce
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.140014470
lea rax, [rsp + 0x30]
push rax
movsxd rax, dword [rsp + 0x58]
mov rdx, rax
movabs rcx, 0
pop r8
call sub.SHELL32.dll_SHGetSpecialFolderLocation
mov r15, rax
and r15, r15
jne 0x1401eba34
push rcx
sub rsp, 0x28
call fcn.140014710
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140014710
add rsp, 0x28
pop rcx
mov rdx, rax
movabs rcx, 0x104
sub rsp, 0x20
call fcn.140013400
add rsp, 0x28
lea rcx, [rsp + 0x30]
pop rdx
call fcn.1400143a0
mov rax, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call sub.SHELL32.dll_SHGetPathFromIDListW
mov rcx, qword [rsp + 0x28]
xor rdx, rdx
call fcn.1400147a0
or rax, rax
jne 0x1401eba34
push rcx
sub rsp, 0x28
call fcn.140014710
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140014710
add rsp, 0x28
pop rcx
mov r8, rax
movabs rdx, 1
mov rcx, qword [rsp + 0x38]
sub rsp, 0x20
call fcn.140013360
add rsp, 0x28
call fcn.140014750
movabs rcx, 0x14018c282
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.140014770
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.1400147a0
or rax, rax
jne 0x1401eba34
mov rcx, qword [rsp + 0x28]
push rcx
sub rsp, 0x28
call fcn.140014710
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.1400144c0
add rsp, 0x28
movabs rcx, 0x14018c282
sub rsp, 0x28
call fcn.1400144c0
add rsp, 0x28
lea rcx, [rsp + 0x30]
pop rdx
call fcn.1400143a0
mov rcx, qword [rsp + 0x28]
push rcx
sub rsp, 0x28
call fcn.140014710
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.1400144c0
add rsp, 0x28
pop rax
push rax
call fcn.1400146d0
pop rdx
add rax, rdx
jmp 0x1401eba6d
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140014650
add rsp, 0x28
pop rax
add rsp, 0x40
pop r15
ret
Function at 0x140201175
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
xor rax, rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.140014470
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.140014530
add rsp, 0x10
mov rcx, qword [rsp + 0x28]
push rcx
sub rsp, 0x28
call fcn.140014710
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.1400144c0
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.1400143a0
push rcx
sub rsp, 0x28
call fcn.140014710
add rsp, 0x28
pop rcx
push rax
movabs rcx, 0x14018c09e
sub rsp, 0x28
call fcn.1400144c0
add rsp, 0x28
push rcx
sub rsp, 0x20
call fcn.140014710
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call fcn.140014710
add rsp, 0x28
pop rcx
mov rcx, rax
sub rsp, 0x20
call fcn.1400040b4
add rsp, 0x20
pop rax
movabs rcx, 0x14018c09e
sub rsp, 0x28
call fcn.1400144c0
add rsp, 0x28
lea rcx, [rsp + 0x40]
pop rdx
call fcn.1400143a0
cmp byte [rsp + 0x50], 0
je 0x1402012e9
sub rsp, 8
push 0
push 0
mov rax, 7
push rax
push qword [rsp + 0x58]
push qword [rsp + 0x50]
movabs rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
push rax
movabs rax, 0x80000002
mov rcx, rax
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1401e732f
add rsp, 0x40
sub rsp, 8
push 0
push 0
mov rax, 7
push rax
push qword [rsp + 0x58]
push qword [rsp + 0x50]
movabs rax, str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionRun
push rax
movabs rax, 0x80000002
mov rcx, rax
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1401e732f
add rsp, 0x40
jmp 0x140201361
sub rsp, 8
push 0
push 0
push qword [rsp + 0x40]
movabs rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
push rax
movabs rax, 0x80000002
mov rcx, rax
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1401e6f5e
add rsp, 0x30
sub rsp, 8
push 0
push 0
push qword [rsp + 0x40]
movabs rax, str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionRun
push rax
movabs rax, 0x80000002
mov rcx, rax
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1401e6f5e
add rsp, 0x30
xor rax, rax
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140014650
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.140014650
add rsp, 0x28
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140014650
add rsp, 0x28
pop rax
add rsp, 0x48
ret

Function at 0x140202640
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x1401cfa08]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x14001120d
Capabilities:
Terminate process

Disassembly:
jmp 0x140012150
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001128f
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400148d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400148f0
xor al, al
jmp 0x140014971
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014903
xor al, al
jmp 0x140014971
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001492d
xor al, al
jmp 0x140014971
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014941
xor al, al
jmp 0x140014971
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014953
xor al, al
jmp 0x140014971
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001496f
xor al, al
jmp 0x140014971
mov al, 1
add rsp, 0x38
ret
Function at 0x140011384
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
jmp 0x140011830
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xa28
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1be
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa48]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x9e8], rax
lea rcx, [0x1400240a2]
call fcn.1400113ac
nop
mov qword [rbp + 0x278], 0xffffffffffffffff
mov r9, qword [rbp + 0xa10]
lea r8, str._s
mov edx, 0x104
lea rcx, [rbp + 0x2a0]
call fcn.140011122
nop
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbp + 0x278], rax
cmp qword [rbp + 0x278], 0xffffffffffffffff
jne 0x1400118e0
mov rdx, qword [rbp + 0xa10]
lea rcx, str.Unable_to_open_the_directory__s_n
call fcn.14001102d
nop
jmp 0x140011980
lea rdx, [0x14001b350]
lea rcx, [rbp + 0x3c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
je 0x140011959
lea rdx, [0x14001b354]
lea rcx, [rbp + 0x3c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
je 0x140011959
lea rax, [rbp + 0x3c]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0xa10]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rbp + 0x4d0]
call fcn.140011122
nop
mov eax, dword [rbp + 0x10]
and eax, 0x10
test eax, eax
je 0x14001194c
lea rcx, [rbp + 0x4d0]
call fcn.140011384
nop
jmp 0x140011959
lea rcx, [rbp + 0x4d0]
call fcn.140011389
nop
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400118e0
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ae20]
call fcn.14001132a
mov rcx, qword [rbp + 0x9e8]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x9f8]
pop rdi
pop rbp
ret
Function at 0x140011389
Capabilities:
Check if file exists
Move file

Disassembly:
jmp 0x140011a10
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x6e8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x122
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x708]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x6b8], rax
lea rcx, [0x1400240a2]
call fcn.1400113ac
nop
mov r9, qword [rbp + 0x6e0]
lea r8, str.__s
mov edx, 0x104
lea rcx, [rbp + 0x10]
call fcn.140011122
nop
mov r9, qword [rbp + 0x6e0]
lea r8, str.__s.locked
mov edx, 0x104
lea rcx, [rbp + 0x240]
call fcn.140011122
nop
lea rdx, [rbp + 0x10]
lea rcx, str.Attempting_to_rename:__s_n
call fcn.14001102d
nop
lea rdx, [rbp + 0x240]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140011b36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x464], eax
mov r8d, dword [rbp + 0x464]
mov rdx, qword [rbp + 0x6e0]
lea rcx, str.Error_renaming_file__s._Error_code:__lu_n
call fcn.14001102d
nop
mov eax, dword [rbp + 0x464]
mov dword [rbp + 0x6b4], eax
cmp dword [rbp + 0x6b4], 2
je 0x140011b04
cmp dword [rbp + 0x6b4], 3
je 0x140011b13
jmp 0x140011b22
lea rcx, str.Debug:_File_not_found._Check_the_file_path._n
call fcn.14001102d
nop
jmp 0x140011b2f
lea rcx, str.Debug:_Path_not_found._Check_directory_structure._n
call fcn.14001102d
nop
jmp 0x140011b2f
lea rcx, str.Debug:_Unknown_error_occurred._n
call fcn.14001102d
nop
mov eax, 0xffffffff
jmp 0x140011b4c
mov rdx, qword [rbp + 0x6e0]
lea rcx, str.File__s_locked_successfully._n
call fcn.14001102d
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001c080]
call fcn.14001132a
mov rax, rdi
mov rcx, qword [rbp + 0x6b8]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x6c8]
pop rdi
pop rbp
ret
Function at 0x140012d10
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113d4
movzx eax, al
test eax, eax
jne 0x140012d30
mov ecx, 7
call fcn.140011334
nop
mov byte [rsp + 0x20], 0
call fcn.140011348
mov byte [rsp + 0x21], al
cmp dword [0x14001e860], 1
jne 0x140012d54
mov ecx, 7
call fcn.140011334
nop
jmp 0x140012dac
cmp dword [0x14001e860], 0
jne 0x140012da7
mov dword [0x14001e860], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111ae
test eax, eax
je 0x140012d88
mov eax, 0xff
jmp 0x140012eb1
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001133e
mov dword [0x14001e860], 2
jmp 0x140012dac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001131b
call fcn.1400112b2
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012e09
mov rcx, qword [rsp + 0x30]
call fcn.14001116d
movzx eax, al
test eax, eax
je 0x140012e09
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.1400112e4
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140012e3d
mov rcx, qword [rsp + 0x38]
call fcn.14001116d
movzx eax, al
test eax, eax
je 0x140012e3d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011393
nop
call fcn.140012f60
mov dword [rsp + 0x28], eax
call fcn.14001128f
movzx eax, al
test eax, eax
jne 0x140012e5c
mov ecx, dword [rsp + 0x28]
call fcn.14001105f
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140012e6b
call fcn.14001139d
nop
xor edx, edx
mov cl, 1
call fcn.14001115e
mov eax, dword [rsp + 0x28]
jmp 0x140012eb1
add rsp, 0x68
ret