joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d398
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 0x14002d41f
mov rsi, rbx
cmp word [rax], bp
je 0x14002d3de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002d3c8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002d3c4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140027b84
mov rdi, rax
test rax, rax
je 0x14002d40c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140016cc0
mov rbp, rdi
xor ecx, ecx
call fcn.14002746c
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 0x140030008
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140027820
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400300a9
cmp ebx, dword [rsp + 0x30]
je 0x1400300a2
test esi, esi
je 0x1400300a2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14003007d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003008a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140030067
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003008e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400300ab
mov eax, 1
jmp 0x1400300ab
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140033ccc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14005d670]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140033d23
cmp word [rdx], r13w
jne 0x140033d23
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140033d28
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140033e4d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140033e6e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140033d61
mov rdx, r9
mov word [rbx], cx
jmp 0x140033d88
cmp r9, r8
jae 0x140033d98
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140033d42
jmp 0x140033e4d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140033e42
cmp dword [rsp + 0x80], esi
je 0x140033e42
lea r8, [0x14005d670]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140033e1a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140033dea
mov word [rbx], r13w
jmp 0x140033e4a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140033df7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140033e4a
cmp word [rsp + 0x70], r13w
jne 0x140033e27
cmp rbx, r14
je 0x140033de4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002b624
cmp word [rsp + 0x70], r13w
je 0x140033e4d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14005d670]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140033e47
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140033e4d
Function at 0x140037098
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.14002b624
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002b624
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400371e8
cmp rax, 0xffffffffffffffff
je 0x1400371e8
xor edi, edi
test rbp, rbp
jle 0x140037193
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002b6c8
mov rbx, rax
test rax, rax
jne 0x140037120
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140037189
mov edx, 0x8000
mov ecx, r14d
call fcn.140021240
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.14002ab14
cmp eax, 0xffffffff
je 0x140037169
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140037130
mov edx, r15d
mov ecx, r14d
call fcn.140021240
jmp 0x140037189
cmp byte [rsi + 0x38], dil
je 0x140037180
cmp dword [rsi + 0x34], 5
jne 0x140037180
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140037189
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002746c
jmp 0x1400371fc
jns 0x1400371fc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002b624
cmp rax, 0xffffffffffffffff
jne 0x1400371b4
cmp byte [rsi + 0x30], dil
je 0x1400371fc
mov edi, dword [rsi + 0x2c]
jmp 0x1400371fc
mov ecx, r14d
call fcn.14002d8e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400371fc
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 0x1400371fc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400371f5
mov eax, dword [rsi + 0x2c]
jmp 0x1400371fa
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002b624
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 0x140039b58
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x270
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, r9
mov r14, r8
mov r15, rdx
mov rbx, rcx
mov esi, 1
mov edx, dword [rbp + 0x1b8]
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.14000c3a8
nop
mov r9, qword [rsp + 0x28]
mov r8d, dword [rbp + 0x1b8]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x140039c35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14005f3e4
mov r9d, esi
mov r8, qword [rax]
lea edx, [rsi + 1]
lea rcx, [rsp + 0x60]
call fcn.14000c28c
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetBasicFileVersion::GetFileVersionInfo_failedError_code_
mov rcx, rbx
call fcn.140015984
mov edx, edi
mov rcx, rbx
call fcn.1400138fc
nop
lea rcx, [rbp + 8]
call fcn.14000c21c
lea rax, [rbp + 8]
mov qword [rsp + 0x50], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 8], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
jmp 0x140039cff
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [0x1400e4358]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140039c84
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + 0xa]
mov word [r15], ax
movzx eax, word [rcx + 8]
mov word [r14], ax
movzx eax, word [rcx + 0xe]
mov word [rdi], ax
movzx ecx, word [rcx + 0xc]
mov rax, qword [rbp + 0x1b0]
mov word [rax], cx
jmp 0x140039d07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14005f3e4
mov r9d, esi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp + 0x68]
call fcn.14000c28c
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetBasicFileVersion::VerQueryValue_failedError_code_
mov rcx, rbx
call fcn.140015984
mov edx, edi
mov rcx, rbx
call fcn.1400138fc
nop
lea rcx, [rbp + 0x110]
call fcn.14000c21c
lea rax, [rbp + 0x110]
mov qword [rsp + 0x50], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x110], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x110]
call fcn.140066758
xor sil, sil
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140039d53
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140039d3f
lfence
add rdx, 0x27
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039d73
call fcn.1400682c0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
and qword [rsp + 0x38], 0
mov al, sil
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14008a39c
int3
Function at 0x140048150
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x1400481ab
mov rax, qword [rcx + 8]
mov r10, qword [rcx]
mov r8, qword [rcx + 0x18]
mov r9, qword [rcx + 0x10]
mov r11d, edx
add r10, rax
add r9, r8
rol rax, 0xd
xor rax, r10
rol r8, 0x10
xor r8, r9
rol r10, 0x20
add r9, rax
add r10, r8
rol rax, 0x11
rol r8, 0x15
xor rax, r9
xor r8, r10
rol r9, 0x20
sub r11, 1
jne 0x140048166
mov qword [rcx + 8], rax
mov qword [rcx], r10
mov qword [rcx + 0x18], r8
mov qword [rcx + 0x10], r9
ret

Function at 0x14004836c
Capabilities:
Generate random numbers via rtlgenrandom
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
xor ebx, ebx
lea rcx, str.kernel32
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x1400484f8
lea rdx, str.LoadLibraryExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r14, str.ADVAPI32.DLL
mov rbp, rax
mov rcx, r14
lea rdx, [0x1400fa1e8]
call fcn.1400c1834
lea r13d, [rbx + 1]
test rax, rax
je 0x1400483f0
mov rcx, r14
test rbp, rbp
je 0x1400483e8
lea r8d, [rbx + 8]
jmp 0x140048413
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x14004841e
test rbp, rbp
je 0x140048426
lea rdx, str.AddDllDirectory
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140048426
mov r8d, 0x800
mov rcx, r14
xor edx, edx
mov rax, rbp
call qword [case.0x14004f9b0.0]
mov rdi, rax
jmp 0x1400484c0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1400484f8
lea ecx, [rax + 1]
add rcx, 0xc
call fcn.140099f40
mov rsi, rax
test rax, rax
je 0x1400484b8
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400484b8
or rcx, 0xffffffffffffffff
mov rax, rcx
inc rax
cmp byte [rsi + rax], bl
jne 0x140048466
mov edx, 0x5c
mov word [rax + rsi], dx
inc rcx
cmp byte [rsi + rcx], bl
jne 0x140048477
mov rdx, rsi
sub rdx, r14
add rdx, rcx
mov al, byte [r14]
mov byte [rdx + r14], al
add r14, r13
test al, al
jne 0x140048488
mov rcx, rsi
test rbp, rbp
je 0x1400484af
xor edx, edx
mov rax, rbp
lea r8d, [rdx + 8]
call qword [case.0x14004f9b0.0]
jmp 0x1400484b5
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
mov rcx, rsi
call fcn.14008aff0
test rdi, rdi
je 0x1400484f8
lea rdx, str.SystemFunction036
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400484ef
mov edx, 4
mov rcx, r12
call qword [case.0x14004f9b0.0]
cmp al, r13b
cmove ebx, r13d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140061de0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140061e05
xor eax, eax
jmp 0x140061f15
cmp qword [rcx + 0x68], 0
je 0x140061e19
lfence
call fcn.14000dda0
jmp 0x140061f15
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov qword [rsp + 0x60], rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x140061e35
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140061e37
xor ecx, ecx
movsxd rax, ecx
mov rbx, rdi
test ecx, ecx
je 0x140061e71
cmp rax, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400866c0
mov rax, qword [rsi + 0x50]
sub rbp, rbx
add r14, rbx
mov qword [rsp + 0x60], rbp
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
mov rbx, rbp
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140061f0a
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140061eac
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
cmp rbx, r15
jbe 0x140061ee6
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.140090f04
sub rbp, rax
add r14, rax
mov qword [rsp + 0x60], rbp
mov rbx, rbp
cmp rax, r15
jne 0x140061f0a
cmp rbp, r15
ja 0x140061eb7
test rbx, rbx
je 0x140061f0a
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.140090f04
sub rbx, rax
mov qword [rsp + 0x60], rbx
lfence
sub rdi, qword [rsp + 0x60]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140062c2c
Capabilities:
Create thread
Resume thread

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x180
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140121108]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov esi, edx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov rbx, qword [rcx + 8]
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x38], 0
mov rcx, rbx
call fcn.140066e78
test eax, eax
jne 0x140062e9d
mov byte [rsp + 0x38], 1
mov rax, qword [rdi + 8]
cmp qword [rax + 0x50], 0
je 0x140062ca7
mov rcx, rbx
call fcn.140066e9c
test eax, eax
jne 0x140062ea5
jmp 0x140062e76
add rax, 0x64
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rdi
lea r8, [0x140062ed0]
xor edx, edx
xor ecx, ecx
call fcn.140091c8c
mov rcx, qword [rdi + 8]
mov qword [rcx + 0x50], rax
mov rax, qword [rdi + 8]
mov rcx, qword [rax + 0x50]
test rcx, rcx
je 0x140062e6a
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x140062d8f
call fcn.14005f3e4
mov r9d, 1
mov r8, qword [rax]
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14000c28c
nop
lea rsi, [rax + 0x10]
lea rdx, str.SetThreadPriority_failed:
mov rcx, rsi
call fcn.140015984
lea rcx, [rsp + 0x158]
call fcn.1400622ec
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140062d3e
mov rax, qword [rax]
mov rdx, rax
mov rcx, rsi
call fcn.1400174c4
nop
lea rcx, [rsp + 0x158]
call fcn.140001a14
nop
lea rcx, [rsp + 0xf8]
call fcn.14000c21c
nop
lea rsi, vtable.std::ios_base.0
mov qword [rsp + 0xf8], rsi
lea rcx, [rsp + 0xf8]
call fcn.140066758
nop
jmp 0x140062d96
lea rsi, vtable.std::ios_base.0
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x140062e4a
call fcn.14005f3e4
mov r9d, 1
mov r8, qword [rax]
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14000c28c
nop
lea rdi, [rax + 0x10]
lea rdx, str.ResumeThread_failed:
mov rcx, rdi
call fcn.140015984
lea rcx, [rsp + 0x158]
call fcn.1400622ec
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140062df7
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.1400174c4
nop
lea rcx, [rsp + 0x158]
call fcn.140001a14
nop
lea rcx, [rsp + 0xf8]
call fcn.14000c21c
nop
mov qword [rsp + 0xf8], rsi
lea rcx, [rsp + 0xf8]
call fcn.140066758
nop
jmp 0x140062e3c
mov rcx, rbx
call fcn.140066e9c
test eax, eax
jne 0x140062ead
jmp 0x140062e76
mov rax, qword [rdi + 8]
mov byte [rax + 0x60], 1
mov rax, qword [rdi + 8]
mov byte [rax + 0x61], 0
mov rcx, rbx
call fcn.140066e9c
test eax, eax
jne 0x140062eb5
mov al, 1
jmp 0x140062e78
mov rcx, rbx
call fcn.140066e9c
test eax, eax
jne 0x140062ebd
xor al, al
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1400683e0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, eax
call fcn.140066fac
nop
mov ecx, eax
call fcn.140066fac
nop
mov ecx, eax
call fcn.140066fac
nop
mov ecx, eax
call fcn.140066fac
nop
mov ecx, eax
call fcn.140066fac
int3
Function at 0x14006349c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x1400634aa
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x1400634bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x1400634ca
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret
Function at 0x1400648bd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test rcx, rcx
je 0x140064b0d
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x58]
sub rsp, 0x140
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140121108]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400648fe
mov rax, qword [rdx]
mov qword [rdx + 0x10], rsi
mov word [rax], si
movzx edx, word [rcx]
jmp 0x140064ae6
movzx ecx, dx
sub ecx, 0x22
je 0x140064aca
sub ecx, 4
je 0x140064abb
sub ecx, 1
je 0x140064ab2
sub ecx, 0x15
je 0x140064aa3
cmp ecx, 2
je 0x140064a94
mov eax, 0x2800
add eax, edx
mov ecx, 0x7ff
cmp ax, cx
jbe 0x140064a85
cmp dx, 0x1f
ja 0x140064966
mov ecx, 0xffffd9ff
bt ecx, edx
jb 0x140064a85
mov eax, 0xfffe
cmp dx, ax
jae 0x140064a85
lea eax, [rdx - 0x20]
cmp ax, 0x5d
ja 0x1400649c3
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x1400649aa
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14006499c
mov rax, qword [rbx]
mov word [rax + rcx*2], dx
mov word [rax + rcx*2 + 2], si
jmp 0x140064adf
movzx r9d, dx
mov r8b, sil
mov edx, 1
mov rcx, rbx
call fcn.140012514
jmp 0x140064adf
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x28]
call fcn.14000fad0
nop
lea rdx, [0x1400ce338]
lea rcx, [rsp + 0x28]
call fcn.140015984
mov rax, qword [rsp + 0x28]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x28]
add rcx, rax
call fcn.140003b3c
mov rax, qword [rsp + 0x28]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x28]
add rcx, rax
call fcn.140034940
movzx edx, word [rdi]
lea rcx, [rsp + 0x28]
call fcn.140013d0c
mov edx, 0x3b
lea rcx, [rsp + 0x28]
call fcn.140015c48
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x30]
call fcn.140010d78
nop
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x20]
mov rcx, rbx
call fcn.14000f628
nop
lea rcx, [rbp + 0x10]
call fcn.140001a14
nop
lea rcx, [rbp - 0x50]
call fcn.14000c834
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x50]
call fcn.140066758
nop
jmp 0x140064adf
mov r8d, 1
lea rdx, [0x1400cbe3c]
jmp 0x140064ad7
mov r8d, 4
lea rdx, str.gt_
jmp 0x140064ad7
mov r8d, 4
lea rdx, str.lt_
jmp 0x140064ad7
lea rdx, str.apos_
jmp 0x140064ad1
mov r8d, 5
lea rdx, str.amp_
jmp 0x140064ad7
lea rdx, str.quot_
mov r8d, 6
mov rcx, rbx
call fcn.14000f628
add rdi, 2
movzx edx, word [rdi]
test dx, dx
jne 0x14006490d
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400683e0
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret

Function at 0x14006bf0c
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14006bf1f
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14006c538
lea rdx, [0x14011df38]
lea rcx, [rsp + 0x20]
call fcn.140086d18
int3

Function at 0x1400768ec
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x140126680]
xor edx, edx
jmp fcn.14006bf0c
Function at 0x1400772a8
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x140126680]
jmp fcn.14006bf0c

Function at 0x140083170
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140083230]
mov r9, qword [r9 + 8]
jmp fcn.140074274

Function at 0x140083204
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140083240]
mov r9, qword [r9 + 8]
jmp fcn.140074274

Function at 0x1400a0a34
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400a0860
Function at 0x1400ba1c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x1400ba283
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x1400ba1f4
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400ba286
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x1400ba23f
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x1400ba243
test rax, rax
je 0x1400ba283
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400ba274
cmp rdx, rax
jb 0x1400ba260
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret