joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801cb770
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180290e20]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1801cb7d4
mov eax, 0xa
jmp 0x1801cb863
test esi, esi
je 0x1801cb7f6
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1801cb819
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1801cb819
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1801cb812
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1801cb819
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1801cb880
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18027f300]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1801cb9aa
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1801cb9a1
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1801cb984
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1801cb984
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1801cb984
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1801cb942
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x18028b370]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1801cb9a1
jmp 0x1801cb977
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1801cb977
mov rcx, qword [0x18028b370]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1801cb9a1
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1801cb8f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1801cba03
cmp dword [rbx + 0xc], esi
jbe 0x1801cba03
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1801cb9fc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1801cbe50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1801cb9c0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1801ccf80
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1801cc000
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1801cc06f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1801cc058
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1801cc04c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1801cc020
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18028b370]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1801cc130
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x1801cc170
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180290e10]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1801cc1ae
cmp rsi, r14
jb 0x1801cc1a6
cmp rsi, r15
jae 0x1801cc1a6
cmp qword [rsi + 8], 0
jne 0x1801cc377
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1801cc191
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1801cc242
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1801cc239
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1801cc239
cmp dword [rsp + 0x70], 0x10000
je 0x1801cc2bb
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1801cc239
sub rbx, rbp
cmp rbx, r14
jae 0x1801cc200
test rsi, rsi
jne 0x1801cc320
cmp rdi, r15
ja 0x1801cc35f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1801cc35f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1801cc35f
cmp dword [rsp + 0x70], 0x10000
je 0x1801cc2f1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1801cc272
jmp 0x1801cc35f
test rbx, rbx
je 0x1801cc239
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1801cc320
cmp rbx, r14
jae 0x1801cc1e0
jmp 0x1801cc242
test rdi, rdi
je 0x1801cc35f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1801cc320
cmp rdi, r15
jbe 0x1801cc250
jmp 0x1801cc35f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1801cc330
mov rax, qword [0x180290e10]
mov qword [rsi], rax
mov qword [0x180290e10], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1801ce52c
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 0x1801ce566
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1801ce56b
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 0x1801ce5b4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1801ce5b4
dec r8
sub rdx, 1
jne 0x1801ce59a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14001acc0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140032738], rbx
je 0x14001ad27
cmp rax, rbx
jne 0x14001ad1a
mov ebx, 1
mov esi, ebx
jmp 0x14001ad2c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14001acff
mov ebx, 1
mov eax, dword [0x140032740]
cmp eax, ebx
jne 0x14001ad44
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14001adb0
mov eax, dword [0x140032740]
test eax, eax
jne 0x14001ada5
mov dword [0x140032740], ebx
lea r15, [0x1400206d8]
lea rdi, [0x1400206c0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14001ad97
test eax, eax
jne 0x14001ad9b
cmp qword [rdi], r14
je 0x14001ad8c
mov rax, qword [rdi]
mov rcx, qword [0x140020620]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14001ad6e
test eax, eax
je 0x14001adab
mov eax, 0xff
jmp 0x14001af06
mov dword [0x140031ff0], ebx
mov edi, 0x1f
mov eax, dword [0x140032740]
cmp eax, ebx
jne 0x14001add7
lea rdx, [0x1400206b8]
lea rcx, [0x140020628]
call sub.msvcrt.dll__initterm
mov dword [0x140032740], 2
test esi, esi
jne 0x14001ade5
mov rax, r14
xchg qword [0x140032738], rax
cmp qword [0x140032758], r14
je 0x14001ae18
lea rcx, [0x140032758]
call fcn.14001b3b0
test eax, eax
je 0x14001ae18
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140032758]
mov r9, qword [0x140020620]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14001ae31
mov eax, 0xff
jmp 0x14001af06
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14001aeb7
test ax, ax
je 0x14001ae4c
test edx, edx
jne 0x14001aeb7
sub ax, bx
cmp ax, di
ja 0x14001ae62
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14001ae4c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140004034
mov dword [0x140031fec], eax
cmp dword [0x140032010], r14d
jne 0x14001aea0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140031ff0], r14d
jne 0x14001aeb5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140031fec]
jmp 0x14001af06
cmp ax, 0x22
jne 0x14001aecb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14001ae3a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1401ab000
add rsp, 0x28
jmp 0x14001acc0
Function at 0x1400012da
Capabilities:
Create directory
Get common file path

Disassembly:
jmp 0x140137e50
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2e0
lea rdi, [rsp + 0x30]
mov ecx, 0xac
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2f0]
mov rax, qword [0x1401dc6c0]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
lea rcx, [0x1401f6788]
call fcn.140003d2d
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x140137ecc
xor al, al
jmp 0x140137ff5
lea rcx, [rsp + 0x40]
call sub.ucrtbased.dll_strlen
mov qword [rsp + 0x2c0], rax
mov rcx, qword [rsp + 0x300]
call sub.ucrtbased.dll_strlen
mov rcx, qword [rsp + 0x2c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x2c8], rax
mov rcx, qword [rsp + 0x308]
call sub.ucrtbased.dll_strlen
mov rcx, qword [rsp + 0x2c8]
lea rax, [rcx + rax + 2]
cmp rax, 0x104
jb 0x140137f2a
xor al, al
jmp 0x140137ff5
lea rdx, [0x1401c2bec]
lea rcx, [rsp + 0x40]
call fcn.14000380f
mov rdx, qword [rsp + 0x300]
lea rcx, [rsp + 0x40]
call fcn.14000380f
nop
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140137f73
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140137f73
xor al, al
jmp 0x140137ff5
lea rdx, [0x1401c2bf0]
lea rcx, [rsp + 0x40]
call fcn.14000380f
mov rdx, qword [rsp + 0x308]
lea rcx, [rsp + 0x40]
call fcn.14000380f
nop
lea r9, [rsp + 0x308]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x2f8]
lea rcx, [rsp + 0x190]
call fcn.140139fb0
mov rdx, rax
lea rcx, [rsp + 0x168]
call fcn.14013b3c0
nop
lea rcx, [rsp + 0x168]
call fcn.140003fd5
nop
mov byte [rsp + 0x2b8], 1
lea rcx, [rsp + 0x168]
call fcn.140002450
movzx eax, byte [rsp + 0x2b8]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401c3350]
call fcn.140003535
mov rax, rdi
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140002595
add rsp, 0x2e0
pop rdi
ret
Function at 0x14000131b
Capabilities:
Check http status code
Create http request

Disassembly:
jmp 0x140138810
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [0x1401dc6c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rcx, [0x1401f6788]
call fcn.140003d2d
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Download_Checker
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14013888d
xor al, al
jmp 0x14013896d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x4000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1401388e9
lea rdx, str.Check_Failed:_unable_to_connect_to_the_internet
lea rcx, [0x1401e54b0]
call fcn.1400011b3
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x14013896d
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x64], 4
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x64]
lea r8, [rsp + 0x44]
mov edx, 0x20000013
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x14013893a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x14013896d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
cmp dword [rsp + 0x44], 0xc8
jb 0x14013896b
cmp dword [rsp + 0x44], 0x12c
jae 0x14013896b
mov al, 1
jmp 0x14013896d
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401c3790]
call fcn.140003535
mov rax, rdi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140002595
add rsp, 0x90
pop rdi
ret
Function at 0x14000146f
Capabilities:
Write file on windows

Disassembly:
jmp 0x140146d30
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1401f6782]
call fcn.140003d2d
nop
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x140146d77
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140146e66
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x50], 0
jle 0x140146e0e
cmp qword [rsp + 0x28], 0
jle 0x140146e0e
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x50], rax
jge 0x140146db7
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140003a71
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rsp + 0x50], 0
jle 0x140146e56
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x140146e56
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
add rsp, 0x30
pop rdi
ret
Function at 0x140002923
Capabilities:
Terminate process

Disassembly:
jmp 0x1401482d0
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 0x14000292d
Capabilities:
Get common file path

Disassembly:
jmp 0x140138030
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [0x1401dc6c0]
xor rax, rsp
mov qword [rsp + 0x178], rax
lea rcx, [0x1401f6788]
call fcn.140003d2d
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x14013809d
xor eax, eax
jmp 0x140138139
lea rcx, [rsp + 0x40]
call sub.ucrtbased.dll_strlen
mov qword [rsp + 0x170], rax
lea rcx, [0x1401c2bf8]
call sub.ucrtbased.dll_strlen
mov rcx, qword [rsp + 0x170]
lea rax, [rcx + rax + 1]
cmp rax, 0x104
jb 0x1401380d4
xor eax, eax
jmp 0x140138139
lea rdx, [0x1401c2c08]
lea rcx, [rsp + 0x40]
call fcn.14000380f
lea rdx, str.ROOXROOX.dll
lea rcx, [rsp + 0x40]
call fcn.14000380f
nop
mov ecx, 0x104
call fcn.1400023c4
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x158], rax
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.ucrtbased.dll_strcpy_s]
mov rax, qword [rsp + 0x158]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401c33b0]
call fcn.140003535
mov rax, rdi
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140002595
add rsp, 0x180
pop rdi
ret
Function at 0x140002c7f
Capabilities:
Write file on windows

Disassembly:
jmp 0x140020e80
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
lea rcx, [0x1401f607c]
call fcn.140003d2d
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ucrtbased.dll_fwrite]
add rsp, 0x20
pop rdi
ret

Function at 0x140002cc5
Capabilities:
Get geographical location

Disassembly:
jmp 0x14014bb80
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14014bbbd
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140003d05
add rsp, 0x58
ret

Function at 0x140002df1
Capabilities:
Read file on windows

Disassembly:
jmp 0x140020e30
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
lea rcx, [0x1401f607c]
call fcn.140003d2d
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ucrtbased.dll_fread]
add rsp, 0x20
pop rdi
ret
Function at 0x140002e05
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x14001f110
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rcx, [0x1401f607c]
call fcn.140003d2d
mov eax, dword [rsp + 0x70]
not eax
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [0x14016a160]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x68], 0
je 0x14001f23a
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x68]
dec rax
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x40], 0
je 0x14001f18d
mov dword [rsp + 0x48], 1
jmp 0x14001f195
mov dword [rsp + 0x48], 0
cmp dword [rsp + 0x48], 0
je 0x14001f235
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
mov byte [rsp + 0x4c], al
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0x4c]
mov byte [rsp + 0x38], al
movzx eax, byte [rsp + 0x38]
cmp eax, 0x23
jne 0x14001f20a
cmp qword [rsp + 0x68], 2
jb 0x14001f20a
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14001f20a
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14001f20a
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 8
mov ecx, dword [rsp + 0x20]
and ecx, 0xff
movzx edx, byte [rsp + 0x38]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x30]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x20], eax
jmp 0x14001f164
jmp 0x14001f2d0
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
mov byte [rsp + 0x4d], al
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0x4d]
mov byte [rsp + 0x39], al
movzx eax, byte [rsp + 0x39]
test eax, eax
je 0x14001f2d0
movzx eax, byte [rsp + 0x39]
cmp eax, 0x23
jne 0x14001f2a5
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14001f2a5
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14001f2a5
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 8
mov ecx, dword [rsp + 0x20]
and ecx, 0xff
movzx edx, byte [rsp + 0x39]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x30]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x20], eax
jmp 0x14001f23a
mov eax, dword [rsp + 0x20]
not eax
add rsp, 0x50
pop rdi
ret