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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14001a53d
call 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]
jmp 0x14001a5b0
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14001a554
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001a556
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001a5aa
test ecx, ecx
jle 0x14001a58a
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
add r14, rbp
test rbx, rbx
jle 0x14001a5aa
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001a5aa
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
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001a5cc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14001a5f9
xor eax, eax
jmp 0x14001a6e8
cmp qword [rcx + 0x68], 0
je 0x14001a60b
call 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]
jmp 0x14001a6e8
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x14001a622
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001a624
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001a651
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
mov rcx, rsi
add r14, rbx
sub rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rsi + 0x80], 0
mov rbx, rbp
je 0x14001a6e2
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001a68f
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
jmp 0x14001a6bd
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x14001a701
cmp rbp, r15
ja 0x14001a697
test rbx, rbx
je 0x14001a6e2
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rdi, rbx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
sub rdi, rbp
jmp 0x14001a6e5
Function at 0x14001aaa4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140051af8]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x14001aadd
xor eax, eax
jmp 0x14001abf0
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14001ab06
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, qword [rax]
cmp qword [rax], r8
jae 0x14001ab06
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], sil
mov eax, esi
jmp 0x14001abf0
cmp qword [rcx + 0x80], 0
je 0x14001abee
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14001ab41
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 0x14001ab65
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
cmovne edi, esi
jmp 0x14001abee
lea rax, [rbp - 0x38]
mov byte [rbp - 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
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
je 0x14001abb3
sub eax, 1
je 0x14001abb3
cmp eax, 2
jne 0x14001abee
movsx ecx, byte [rbp - 0x40]
jmp 0x14001ab4e
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14001abde
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x14001abee
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
mov eax, esi
jne 0x14001abf0
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140023640
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14001b4a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140051af8]
xor rax, rsp
mov qword [rbp - 8], rax
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x14001b4e2
movzx eax, r14w
jmp 0x14001b607
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14001b512
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rdx, [rcx + r8*2]
cmp rcx, rdx
jae 0x14001b512
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void____ptr64]
mov word [rax], si
movzx eax, si
jmp 0x14001b607
cmp qword [rbx + 0x80], r14
je 0x14001b604
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001b550
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14001b57a
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, di
je 0x14001b604
movzx edi, si
jmp 0x14001b604
lea rax, [rbp - 0x38]
mov word [rbp - 0x40], si
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3e]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001b5c8
sub eax, 1
je 0x14001b5c8
cmp eax, 2
jne 0x14001b604
movzx ecx, word [rbp - 0x40]
jmp 0x14001b55c
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14001b5f3
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x14001b604
lea rax, [rbp - 0x40]
mov byte [rbx + 0x72], 1
cmp qword [rbp - 0x30], rax
movzx eax, si
jne 0x14001b607
movzx eax, di
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140023640
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14001c360
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140051af8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001c3cf
cmp byte [rcx + 0x71], 0
je 0x14001c3cf
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001c424
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 0x14001c3e9
sub eax, 1
je 0x14001c3ed
cmp eax, 2
jne 0x14001c424
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140023640
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001c41b
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 0x14001c424
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001c3d1
xor al, al
jmp 0x14001c3d1

Function at 0x14001c580
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140051af8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001c5f3
cmp byte [rcx + 0x72], 0
je 0x14001c5f3
mov rax, qword [rcx]
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x14001c648
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_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001c60d
sub eax, 1
je 0x14001c611
cmp eax, 2
jne 0x14001c648
mov byte [rbx + 0x72], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140023640
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001c63f
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 0x14001c648
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14001c5f5
xor al, al
jmp 0x14001c5f5
Function at 0x14001ffbc
Capabilities:
Encode data using xor

Disassembly:
lea rax, [rcx + 4]
mov r10d, 0x2f
mov r9, rax
mov dl, byte [r9]
mov r8d, dword [rcx]
xor r8b, dl
mov byte [r9], r8b
inc r9
sub r10, 1
jne 0x14001ffc9
mov byte [rcx + 0x33], r10b
ret

Function at 0x14001ffe4
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
lea rax, [rcx + 4]
mov dl, byte [rax + r9]
mov r8d, dword [rcx]
add r8b, r9b
xor r8b, dl
mov byte [rax + r9], r8b
inc r9
cmp r9, 0x2b
jb 0x14001ffeb
mov byte [rcx + 0x2f], 0
ret

Function at 0x14002000c
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
lea rax, [rcx + 4]
mov dl, byte [rax + r9]
mov r8d, dword [rcx]
add r8b, r9b
xor r8b, dl
mov byte [rax + r9], r8b
inc r9
cmp r9, 0x4b
jb 0x140020013
mov byte [rcx + 0x4f], 0
ret

Function at 0x14002006c
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
lea rax, [rcx + 4]
mov dl, byte [rax + r9]
mov r8d, dword [rcx]
add r8b, r9b
xor r8b, dl
mov byte [rax + r9], r8b
inc r9
cmp r9, 0x29
jb 0x140020073
mov byte [rcx + 0x2d], 0
ret

Function at 0x1400200b0
Capabilities:
Encode data using xor

Disassembly:
lea rax, [rcx + 4]
mov r10d, 0xb
mov r9, rax
mov dl, byte [r9]
mov r8d, dword [rcx]
xor r8b, dl
mov byte [r9], r8b
inc r9
sub r10, 1
jne 0x1400200bd
mov byte [rcx + 0xf], r10b
ret

Function at 0x1400200f4
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
lea rax, [rcx + 4]
mov dl, byte [rax + r9]
mov r8d, dword [rcx]
add r8b, r9b
xor r8b, dl
mov byte [rax + r9], r8b
inc r9
cmp r9, 0x2f
jb 0x1400200fb
mov byte [rcx + 0x33], 0
ret

Function at 0x14002038c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rbx, r9
mov rdi, r8
mov rsi, rcx
mov ecx, 0x20
call fcn.1400238b0
mov rdx, qword [rsp + 0x60]
mov qword [rax], rdx
mov rdx, qword [rbx]
mov qword [rax + 8], rdx
mov rdx, qword [rdi]
mov qword [rax + 0x10], rdx
lea rcx, [0x14000dad8]
mov qword [rax + 0x18], rcx
mov qword [rsp + 0x48], rax
lea rbx, [rsi + 8]
mov qword [rsp + 0x28], rbx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140020574]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi], rax
test rax, rax
je 0x140020416
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
and dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140020428
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov ecx, 0x20
call fcn.1400238b0
mov r10, qword [rsp + 0x60]
mov qword [rax], r10
mov r9, qword [rbx]
mov qword [rax + 8], r9
mov r8, qword [rdi]
mov qword [rax + 0x10], r8
mov qword [rax + 0x18], rsi
mov qword [rsp + 0x40], rax
lea rbx, [r14 + 8]
mov qword [rsp + 0x28], rbx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140020574]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [r14], rax
test rax, rax
je 0x1400204b2
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
and dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x1400204c4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov ecx, 0x10
call fcn.1400238b0
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x40], rax
lea rbx, [rsi + 8]
mov qword [rsp + 0x28], rbx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400205ec]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi], rax
test rax, rax
je 0x14002052c
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
and dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x401fc4
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x430
mov rax, qword [0x004583d0]
mov qword [rsp + COleControl::XPointerInactive::AddRef], rax
test edx, edx
mov rsi, rcx
je 0x40203e
xor ebx, ebx
lea rdi, [rsp + 0x20]
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
inc ebx
mov word [rdi], ax
add rdi, 2
cmp ebx, 0xff
jl 0x401fec
mov edi, 0x1fe
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x728]
mov r8, rdi
call qword [sym.imp.msvcrt.dll__memicmp]
test eax, eax
je 0x40203e
lea rcx, [rsi + 0x728]
lea rdx, [rsp + 0x20]
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov eax, 1
jmp 0x402040
xor eax, eax
mov rcx, qword [rsp + 0x420]
call fcn.0042ec20
add rsp, 0x430
pop rdi
pop rsi
pop rbx
ret

Function at 0x402d4c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x00458f00]
mov rbx, rcx
cmp eax, 1
jne 0x402d80
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbx + 0x110]
mov edx, 1
mov dword [0x0045cce0], eax
call fcn.0041a5d4
jmp 0x402dc6
cmp eax, 2
jne 0x402da4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbx + 0x110]
mov edx, 1
mov dword [0x0045cce0], eax
call fcn.0041a648
jmp 0x402dc6
cmp eax, 3
je 0x402d85
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbx + 0x110]
mov edx, 1
mov dword [0x0045cce0], eax
call fcn.0041a5bc
add rsp, 0x20
pop rbx
ret

Function at 0x406558
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov esi, r8d
mov r12, rdx
mov rdi, rcx
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x4065c5
cmp esi, ebx
je 0x4065c3
xor r9d, r9d
lea r8, [0x00433b30]
mov rdx, qword [rdi]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
jmp 0x4065fb
mov dword [rsp + 0x80], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x80]
mov r8d, dword [r12 + 0x20]
mov rdx, qword [r12 + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ebx, 1
mov rcx, rdi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, ebx
add rsp, 0x50
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x406634
Capabilities:
Create process on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x2e0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x004583d0]
mov qword [rsp + 0x2d0], rax
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
mov r8d, 0x104
lea rdx, [rsp + 0xc0]
mov rcx, qword [0x0045df20]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r11, qword [rdi]
cmp dword [r11 - 8], 0
jne 0x40669f
lea rdx, [rsp + 0xc0]
mov rcx, rdi
call sub.MFC42u.dll_AfxDeleteObject
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x50], WSAStartup
mov rdx, rdi
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_CControlBar::CControlBar
nop
mov dword [rsp + 0x54], 0
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.0042e2a2
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x80], 1
mov rdx, rsi
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CControlBar::CControlBar
mov r11, qword [rsp + 0x20]
mov qword [rsp + 0x70], r11
lea rax, [0x00433b80]
test ebx, ebx
cmove rax, qword [rsp + 0x60]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
mov rcx, rdi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
mov rcx, rsi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, ebx
mov rcx, qword [rsp + 0x2d0]
call fcn.0042ec20
add rsp, 0x2e0
pop rdi
pop rsi
pop rbx
ret
Function at 0x407870
Capabilities:
Set registry value

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x004583d0]
mov qword [rsp + 0x280], rax
mov edi, edx
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dx, 0x5c
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x4078d6
lea rdx, [rax + 2]
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_AfxDeleteObject
mov qword [rsp + 0x48], 0
lea rdx, str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION_
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_CCtrlView::CCtrlView
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov r12, 0xffffffff80000001
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407931
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x48], rbx
jmp 0x407982
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x50]
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.00405e54
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x407982
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4079c8
test rbx, rbx
je 0x4079be
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], edi
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
test rbx, rbx
je 0x407a0c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rcx, qword [rsp + 0x280]
call fcn.0042ec20
add rsp, 0x290
pop r12
pop rdi
pop rbx
ret
Function at 0x40b400
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x98
mov rax, qword [0x004583d0]
mov qword [rsp + 0x80], rax
mov eax, dword [0x0045aad0]
mov edi, r8d
mov rbx, rdx
test al, 1
jne 0x40b456
or eax, 1
mov ecx, 0x19000
mov dword [0x0045aad0], eax
mov dword [0x0045aac8], ecx
call qword [sym.imp.msvcrt.dll_malloc]
lea rcx, [0x0043094c]
mov qword [0x0045aac0], rax
call fcn.0042e780
mov eax, dword [0x0045aac8]
lea rdx, [0x00434534]
lea rcx, [rsp + 0x40]
mov r8d, edi
mov dword [rsp + 0x30], eax
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, dword [0x0045aac8]
mov rcx, qword [0x0045aac0]
xor edx, edx
call sub.msvcrt.dll_memset
mov rax, qword [0x0045aac0]
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov rdi, 0xffffffff80000004
jmp 0x40b4d7
mov eax, dword [rsp + 0x30]
mov rcx, qword [0x0045aac0]
add eax, 0x2800
mov edx, eax
mov dword [rsp + 0x30], eax
mov dword [0x0045aac8], eax
call qword [sym.imp.msvcrt.dll_realloc]
lea rcx, [rsp + 0x30]
mov qword [0x0045aac0], rax
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x40b4a4
mov rax, qword [0x0045aac0]
mov qword [rbx], rax
mov rcx, qword [rsp + 0x80]
call fcn.0042ec20
add rsp, 0x98
pop rdi
pop rbx
ret