joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014580
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x1400145b0
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400145d8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400145da
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140014633
test ecx, ecx
jle 0x14001460e
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r14, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140014633
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140014633
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sahf
add eax, 0xe47bf5f5
or ch, byte [rbx - 0x18]
fstp dword [rbx + 0x5b590eb3]
pop rbx
mov dh, 0x6e
invalid

Function at 0x140014660
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140014690
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov rdx, qword [rax]
test rdx, rdx
je 0x1400146b8
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400146ba
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140014720
test ecx, ecx
jle 0x1400146ee
cmp rbx, rbp
mov rcx, r14
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x50]
add r14, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x38]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140014720
cmp qword [rdi + 0x80], 0
je 0x140014720
mov rcx, rdi
call fcn.140014eb0
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
invalid
Function at 0x140014bb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140014bdd
xor eax, eax
jmp 0x140014d32
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140014c08
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140014c08
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140014d32
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140014d25
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140014c4b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140014c76
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140014d2a
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
js 0x140014d25
cmp eax, 1
jle 0x140014ce5
cmp eax, 3
jne 0x140014d25
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140014d2a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140014d13
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140014d25
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140014d2a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140027890
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140014ee0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140014f97
cmp byte [rcx + 0x71], 0
je 0x140014f97
mov rax, qword [rcx]
mov edx, 0xffffffff
mov rax, qword [rax + 0x18]
call qword [case.0x140027f5e.0]
cmp eax, 0xffffffff
je 0x140014f58
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140014f5c
sub eax, 1
je 0x140014f60
sub eax, 2
je 0x140014f97
xor al, al
jmp 0x140014f99
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140014f8e
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140014f58
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140014f99
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140027890
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400177b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140017500
nop
mov rax, qword [rsp + 0x30]
cmp dword [rax - 0x10], 0
jne 0x14001783c
lea rcx, [rax - 0x18]
call fcn.14000b250
add rax, 0x18
mov qword [rdi], rax
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov rbx, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400178ec
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
jmp 0x1400178e6
lea rdx, str.crashlogs
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140017850
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.14000b120
mov rcx, qword [rsp + 0x30]
add rcx, 0xffffffffffffffe8
call fcn.14000b250
lea rsi, [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140017894
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea rdx, [rsi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400178b4
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140027f5e.0]
mov rcx, qword [rsp + 0x30]
add rcx, 0xffffffffffffffe8
call fcn.14000b250
add rax, 0x18
mov qword [rdi], rax
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400178ec
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140027f5e.0]
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140027890
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140017910
Capabilities:
Check if file exists
Create directory

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140017500
nop
mov rax, qword [rsp + 0x30]
cmp dword [rax - 0x10], 0
jne 0x14001799c
lea rcx, [rax - 0x18]
call fcn.14000b250
add rax, 0x18
mov qword [rdi], rax
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov rbx, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140017a4c
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
jmp 0x140017a46
lea rdx, str.dumps
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400179b0
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.14000b120
mov rcx, qword [rsp + 0x30]
add rcx, 0xffffffffffffffe8
call fcn.14000b250
lea rsi, [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400179f4
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea rdx, [rsi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017a14
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140027f5e.0]
mov rcx, qword [rsp + 0x30]
add rcx, 0xffffffffffffffe8
call fcn.14000b250
add rax, 0x18
mov qword [rdi], rax
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140017a4c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140027f5e.0]
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140027890
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140017b70
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor esi, esi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x48], rsi
lea rcx, [rsp + 0x48]
call fcn.140017a70
nop
mov rbx, qword [rsp + 0x48]
lea rdi, [rsi - 1]
cmp dword [rbx - 0x10], esi
je 0x140017c8e
mov qword [rsp + 0x38], rsi
mov rcx, qword [rbx - 0x18]
test rcx, rcx
je 0x140017be3
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140027f5e.0]
mov rcx, rax
test rax, rax
jne 0x140017bfe
call fcn.140001540
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
mov rcx, rdx
call qword [case.0x140027f5e.0]
mov rcx, rax
test rcx, rcx
je 0x140017cd0
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140027f5e.0]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
lea r9, str.generatecrlogornot.txt
mov rax, rdi
nop
inc rax
cmp word [r9 + rax*2], 0
jne 0x140017c30
mov dword [rsp + 0x20], eax
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.14000b050
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
lea rdx, [rbx - 0x18]
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140017c80
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140027f5e.0]
mov rbx, qword [rsp + 0x48]
test esi, esi
je 0x140017c8e
mov sil, 1
jmp 0x140017c91
xor sil, sil
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140017caf
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140027f5e.0]
movzx eax, sil
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140027890
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov ecx, 0x80004005
call fcn.140001280
int3
Function at 0x140020f20
Capabilities:
Get memory capacity

Disassembly:
push rdi
sub rsp, 0x90
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0xa8], rbx
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 0
xor eax, eax
mov qword [rcx], rax
call fcn.140001540
mov rcx, rax
test rax, rax
je 0x140021017
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140027f5e.0]
add rax, 0x18
mov qword [rbx], rax
lea rdi, str.unknown
mov rdx, rdi
mov rcx, rbx
call fcn.14000ae00
test al, al
jne 0x140020fbc
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], 0
jne 0x140020fa3
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call fcn.14000b2f0
nop
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x40], 0x40
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140020ff3
mov r8, qword [rsp + 0x48]
shr r8, 0x14
lea rdx, [0x140030a6c]
mov rcx, rbx
call fcn.14000b890
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140027890
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x80004005
call fcn.140001280
int3
Function at 0x140022000
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x38], 0
mov ebx, 0xff
mov dword [rsp + 0x50], ebx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
call fcn.140001540
mov rcx, rax
test rax, rax
je 0x140022271
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140027f5e.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea r14, [0x140030b90]
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.14000ae00
mov rdi, 0xffffffffffffffff
test al, al
jne 0x1400220bf
mov rax, rdi
inc rax
cmp word [r14 + rax*2], 0
jne 0x1400220a3
mov r8d, eax
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.14000b2f0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140022ed0
test al, al
je 0x140022222
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi]
mov r14, qword [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140022144
mov eax, dword [rsp + 0x50]
cdq
xor eax, edx
sub eax, edx
mov dword [rsp + 0x50], eax
cmp eax, ebx
cmovl ebx, eax
movsxd rax, ebx
cmp rax, 0x100
jae 0x14002227c
mov byte [rsp + rax + 0x60], 0
lea r8, [rsp + 0x60]
lea rdx, [0x14002e674]
mov rcx, r15
call fcn.14000b890
jmp 0x140022218
cmp eax, 2
jne 0x140022218
call fcn.140001540
mov rcx, rax
test rax, rax
je 0x140022266
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140027f5e.0]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rbx, str.0_1_100
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14000ae00
test al, al
jne 0x1400221ab
mov rax, rdi
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x140022190
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14000b2f0
nop
mov rbx, qword [rsp + 0x58]
mov r15d, dword [rbx - 0x10]
cmp dword [rbx - 8], 1
jle 0x1400221cc
mov edx, r15d
lea rcx, [rsp + 0x58]
call fcn.14000b660
mov rbx, qword [rsp + 0x58]
lea eax, [r15*2 + 1]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140022213
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140027f5e.0]
mov r14, qword [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140022243
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140027f5e.0]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140027890
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001280
int3
mov ecx, 0x80004005
call fcn.140001280
int3
call fcn.140028364
int3
Function at 0x403d50
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x0042b080], 0
je 0x403e0b
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040ac00
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, qword [0x00427098]
call fcn.0040ac00
mov rcx, rsi
mov rdx, qword [0x00427098]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.0040ac00
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x403e1f
xor ecx, ecx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA_1
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x408640
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov ebx, edx
mov rax, qword [rbp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rbp + 0x28]
call fcn.00408c80
mov esi, eax
test sil, sil
jne 0x4087f6
test ebx, ebx
je 0x4087f6
xor edi, edi
test r13d, r13d
jle 0x408722
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x408706
cmp ebx, 0xffffffff
je 0x4086b3
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x4086b3
xor esi, esi
jmp 0x4087f6
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x408706
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x4086f4
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x4086f4
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x4087f6
lea rcx, [rbp + 0x3c]
call fcn.004081e0
sub r13d, 1
test r13d, r13d
jg 0x40869a
nop
cmp ebx, 0xffffffff
je 0x408722
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x408720
xor esi, esi
jmp 0x4087f6
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40865d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x408722
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.004088a0
xor ecx, ecx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x0042b978]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x408785
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jae 0x408783
sub ebx, eax
jmp 0x408785
xor ebx, ebx
test sil, sil
je 0x4087b7
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x4087b4
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40878a
mov dil, 1
nop
jmp 0x4087d4
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x4087b7
mov dil, 1
test dil, dil
je 0x408745
nop
test sil, sil
je 0x4087f6
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret
Function at 0x40a070
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0042b080], 0
je 0x40a10e
cmp word [0x0042b390], 0xd7b2
jne 0x40a0a3
cmp dword [0x0042b398], 0
jbe 0x40a0a3
lea rcx, [0x0042b388]
call qword [0x0042b3b0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, str.Runtime_error_____at_0000000000000000
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x0040a144]
call fcn.0040b130
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40a12f
cmp byte [0x00427032], 0
jne 0x40a12f
xor ecx, ecx
lea rdx, str.Runtime_error_____at_0000000000000000
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA_1
add rsp, 0x40
pop rbx
ret

Function at 0x40d710
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x0042fed8]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x0042ff00], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x0042fed0], al
cmp byte [0x0042fed0], 0
je 0x40d7af
lea rcx, [0x0040d7b4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d7ce]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0042feb8], rax
lea rcx, [0x0040d7b4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d7ec]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0042fec0], rax
lea rcx, [0x0040d7b4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d80a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0042fec8], rax
add rsp, 0x28
ret

Function at 0x40fb00
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x40fb20
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x40fb44
cmp eax, 1
jae 0x40fb49
cmp ecx, 5
jbe 0x40fb55
mov dword [0x0042ba08], 0x7f
jmp 0x40fb5f
mov dword [0x0042ba08], 0x409
add rsp, 0x28
ret

Function at 0x40ff50
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040ff40
mov ebx, eax
test ebx, ebx
je 0x40ff9b
cmp dword [0x004291a0], 0xffffffff
jne 0x40ff74
mov ecx, 0xe2
call fcn.0040a300
mov ecx, ebx
call fcn.0040ff20
test rax, rax
jne 0x40ff8d
mov ecx, 0xe2
call fcn.0040a300
jmp 0x40ff9b
mov ecx, dword [0x004291a0]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40ffb0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x004311a8], 0
je 0x40ffeb
mov ecx, dword [0x004291a0]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40fffe
call fcn.0040ff50
mov ecx, dword [0x004291a0]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40fffe
mov rax, qword [0x004311e0]
jmp 0x40fffe
mov rax, qword gs:[0x58]
mov ecx, dword [0x004291a0]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret