joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421be0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
mov r11, rsp
sub rsp, 0x78
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rdi
mov ebx, edx
mov rdi, rcx
mov dword [rsp + 0x24], 0
xor eax, eax
mov byte [rsp + 0x20], al
lea r9, [r11 - 0x58]
xor r8d, r8d
mov edx, reloc.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
lea rcx, [r11 - 0x48]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_long_long_unsigned___int64___char__class_std::allocator_char__const____ptr64____ptr64]
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rdx, rax
xor r9d, r9d
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x421ca2
xor eax, eax
mov byte [rsp + 0x21], al
mov rdx, qword [rsp + 0x38]
test rdx, rdx
cmove rdx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea r8, [rsp + 0x21]
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.0041d790
nop
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rax, rdi
jmp 0x421cd4
xor eax, eax
mov byte [rsp + 0x21], al
lea r8, [rsp + 0x21]
lea rdx, [0x00558600]
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rax, rdi
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
add rsp, 0x78
ret
Function at 0x422180
Capabilities:
Create process memory minidump

Disassembly:
mov qword [rsp + 0x10], rdx
mov rax, rsp
sub rsp, 0x158
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov qword [rax - 8], rsi
mov qword [rax - 0x10], rdi
mov qword [rax - 0x18], r12
mov qword [rax - 0x20], r13
mov qword [rax - 0x28], r14
mov qword [rax - 0x30], r15
mov r15, r8
mov r12, rdx
mov r14, rcx
xor ebx, ebx
mov dword [rsp + 0x4c], ebx
call fcn.00421ec0
mov dword [rsp + 0x4c], 1
lea ecx, [rbx + 8]
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov rsi, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x422248
mov rcx, qword [r12 + 8]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsi], rax
mov rcx, rsi
call fcn.0042b140
test al, al
jne 0x42224b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
lea rdx, [0x005bea38]
lea rcx, [rsp + 0x44]
call sub.msvcrt.dll__CxxThrowException
mov rsi, rbx
test rsi, rsi
setne r13b
mov byte [rsp + 0x80], r13b
mov qword [rsp + 0x88], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x5c], r15
mov dword [rsp + 0x64], 1
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, dword [r14 + 0x20]
mov r8, qword [rsi]
mov edx, ebx
mov rcx, rdi
call sub.dbghelp.dll_MiniDumpWriteDump
test eax, eax
jne 0x4222d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
lea rdx, [0x005bea38]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll__CxxThrowException
nop
test r13b, r13b
je 0x4222e7
mov rcx, rsi
call fcn.0042b150
mov rcx, rsi
call sub.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek
nop
mov rax, r12
mov rbx, qword [rsp + 0x178]
mov rsi, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x148]
mov r12, qword [rsp + 0x140]
mov r13, qword [rsp + 0x138]
mov r14, qword [rsp + 0x130]
mov r15, qword [rsp + 0x128]
add rsp, 0x158
ret
Function at 0x4231a0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x40e8], 0
mov rbx, rcx
je 0x42325f
xor r11d, r11d
cmp dword [rcx + 0xbc], r11d
jbe 0x42325f
lea r10, [rcx + 0xe0]
nop
movzx ecx, byte [r10]
mov r8, qword [rbx + 0x40f8]
mov r9d, dword [rbx + 0x40f4]
mov edx, dword [rbx + 0x40ec]
and r9d, 0xfffd
inc r11d
xor cl, dl
shr edx, 8
or r9d, 2
movzx eax, cl
inc r10
mov ecx, dword [r8 + rax*4]
xor ecx, edx
mov edx, dword [rbx + 0x40f4]
mov dword [rbx + 0x40ec], ecx
movzx ecx, cl
add ecx, dword [rbx + 0x40f0]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [rbx + 0x40f0], ecx
shr ecx, 0x18
xor cl, dl
shr edx, 8
movzx eax, cl
mov eax, dword [r8 + rax*4]
xor eax, edx
mov dword [rbx + 0x40f4], eax
mov eax, r9d
xor eax, 1
imul eax, r9d
shr eax, 8
xor byte [r10 - 1], al
cmp r11d, dword [rbx + 0xbc]
jb 0x4231d0
mov r9d, dword [rbx + 0xbc]
mov rdx, qword [rbx + 0x40]
mov rcx, qword [rbx + 0x38]
lea r8, [rbx + 0xe0]
call qword [rbx + reloc.WS2_32.dll_recv]
xor ecx, ecx
mov edx, 0xffffffff
cmp eax, dword [rbx + 0xbc]
mov dword [rbx + 0xbc], 0
cmovne ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x42a7c0
Capabilities:
Get file size

Disassembly:
mov r11, rsp
sub rsp, 0xa8
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rbx, rcx
xor eax, eax
mov byte [r11 + 8], al
mov rdx, qword [rcx + 0x10]
test rdx, rdx
cmove rdx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea r8, [r11 + 8]
lea rcx, [r11 - 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.00429ea0
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
mov ecx, 8
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x42a89b
mov rcx, qword [rsp + 0x60]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rdi], rax
mov rcx, rdi
call fcn.0042b140
test al, al
jne 0x42a8a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rdx, [0x005bea38]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
xor esi, esi
mov rdi, rsi
test rdi, rdi
setne bl
mov dword [rsp + 0x44], esi
lea rdx, [rsp + 0x44]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test bl, bl
je 0x42a8cf
mov rcx, rdi
call fcn.0042b150
mov rcx, rdi
call sub.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov eax, esi
jmp 0x42a8eb
mov rbx, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xc8]
add rsp, 0xa8
ret
Function at 0x430550
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x40], r13
mov rdi, rdx
mov rsi, rcx
mov ecx, 8
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x4305ca
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx], rax
mov rcx, rbx
call fcn.0042b1e0
test al, al
jne 0x4305cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, [0x005bea38]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll__CxxThrowException
xor edi, edi
mov rbx, rdi
test rbx, rbx
setne r12b
add rsi, 8
lea rax, [rsp + 0x30]
cmp rsi, rax
je 0x43061a
mov r13, qword [rsi + 8]
cmp r13, rbx
je 0x43060c
cmp byte [rsi], 0
je 0x430607
test r13, r13
je 0x430607
mov rcx, r13
call fcn.0042b1f0
mov rcx, r13
call sub.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek
mov byte [rsi], r12b
jmp 0x430614
test r12b, r12b
je 0x430614
mov byte [rsi], 1
mov qword [rsi + 8], rbx
jmp 0x430635
test r12b, r12b
je 0x430635
test rbx, rbx
je 0x430635
mov rcx, rbx
call fcn.0042b1f0
mov rcx, rbx
call sub.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x430651
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x430651
xor al, al
jmp 0x430653
mov al, 1
test al, al
sete al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov r13, qword [rsp + 0x40]
add rsp, 0x48
ret
Function at 0x430730
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
sub rsp, 0x148
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movzx esi, r8b
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rax - 0x78]
call sub.msvcrt.dll_memset
mov dword [rsp + 0xd0], WSAGetLastError
mov rax, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
xor ebp, ebp
cmp qword [rbx + 0x10], rbp
jne 0x43078b
mov rcx, rbp
jmp 0x430796
mov rcx, qword [rbx + 8]
test rcx, rcx
cmove rcx, rax
cmp qword [rdi + 0x10], rbp
jne 0x4307a1
mov rdx, rbp
jmp 0x4307ac
mov rdx, qword [rdi + 8]
test rdx, rdx
cmove rdx, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x430847
mov rdi, qword [rdi + 8]
mov rax, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test rdi, rdi
cmove rdi, rax
mov rbx, qword [rbx + 8]
test rbx, rbx
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8, rbx
lea rdx, str.Run:__s__s__x
lea rcx, [rsp + 0xb0]
call fcn.0041ef70
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
lea rdx, [0x005be8c0]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll__CxxThrowException
nop
mov dword [rsp + 0x50], ebp
test sil, sil
je 0x430870
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x150]
mov rbp, qword [rsp + 0x158]
mov rsi, qword [rsp + 0x160]
mov rdi, qword [rsp + 0x168]
add rsp, 0x148
ret
Function at 0x4475a0
Capabilities:
Parse pe header
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x00400000], 0x5a4d
je 0x4475dc
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x44766a
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x447600
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x44766a
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x447647
cmp ecx, 0x20b
je 0x44761f
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x44766a
cmp dword [rax + 0x84], 0xe
ja 0x447633
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x44766a
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x44766a
cmp dword [rax + 0x74], 0xe
ja 0x447658
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x44766a
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x005e6ad0], 0xffffffffffffffff
mov qword [0x005e6ad8], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x005e447c]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x005e4478]
mov dword [rcx], eax
call fcn.00447c20
cmp dword [reloc.WS2_32.dll_accept], 0
jne 0x4476c4
lea rcx, [0x00447c10]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x005575d8]
lea rcx, [0x005575d0]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x005e4474]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x005e4470]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___wgetmainargs]
lea rdx, [0x005575c8]
lea rcx, [0x00557558]
call sub.msvcrt.dll__initterm
mov r8, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [r8], 0
jne 0x447739
mov eax, 0xff
jmp 0x447809
mov r8, qword [r8]
mov qword [rsp + 0x30], r8
cmp word [r8], 0x22
jne 0x447780
nop
nop
add r8, 2
mov qword [rsp + 0x30], r8
movzx eax, word [r8]
test ax, ax
je 0x44776a
cmp ax, 0x22
je 0x44776a
jmp 0x447750
cmp word [r8], 0x22
jne 0x447792
add r8, 2
mov qword [rsp + 0x30], r8
jmp 0x447792
cmp word [r8], 0x20
jbe 0x447792
add r8, 2
mov qword [rsp + 0x30], r8
jmp 0x447780
movzx eax, word [r8]
test ax, ax
je 0x4477ac
cmp ax, 0x20
ja 0x4477ac
add r8, 2
mov qword [rsp + 0x30], r8
jmp 0x447792
test byte [rsp + 0x8c], 1
je 0x4477c1
movzx r9d, word [rsp + 0x90]
jmp 0x4477c7
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.004bed08
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x4477e3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x447807
mov eax, edi
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x44a960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x58], rdi
mov edi, dword [rcx + 0x44]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov rbp, rcx
nop
nop
mov edx, dword [rbp + 0x94]
mov ebx, dword [rbp + 0x58]
mov eax, dword [rbp + 0x44]
sub ebx, dword [rbp + 0x9c]
lea ecx, [rdi + rax - 0x106]
sub ebx, edx
cmp edx, ecx
jb 0x44aa2c
mov rcx, qword [rbp + 0x50]
mov r8, rdi
lea rdx, [rcx + rdi]
call sub.msvcrt.dll_memcpy
mov r8d, dword [rbp + 0x74]
mov rax, qword [rbp + 0x68]
sub dword [rbp + 0x98], edi
sub dword [rbp + 0x94], edi
sub dword [rbp + 0x84], edi
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, edi
jb 0x44a9f0
sub eax, edi
jmp 0x44a9f2
xor eax, eax
add r8d, 0xffffffff
mov word [rdx], ax
jne 0x44a9e0
mov rax, qword [rbp + 0x60]
mov edx, edi
lea rcx, [rax + rdi*2]
nop
nop
nop
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, edi
jb 0x44aa20
sub eax, edi
jmp 0x44aa22
xor eax, eax
add edx, 0xffffffff
mov word [rcx], ax
jne 0x44aa10
add ebx, edi
mov rsi, qword [rbp]
cmp dword [rsi + 8], 0
je 0x44ab0a
mov eax, dword [rbp + 0x94]
mov r13d, dword [rbp + 0x9c]
add r13, rax
mov eax, dword [rsi + 8]
add r13, qword [rbp + 0x50]
cmp eax, ebx
mov r12d, eax
cmova r12d, ebx
test r12d, r12d
je 0x44aab2
sub eax, r12d
mov dword [rsi + 8], eax
mov rax, qword [rsi + 0x28]
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x44aa84
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.0044ca00
mov dword [rsi + 0x4c], eax
jmp 0x44aa9a
cmp ecx, 2
jne 0x44aa9a
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.0044c7c0
mov dword [rsi + 0x4c], eax
mov rdx, qword [rsi]
mov r8d, r12d
mov rcx, r13
mov ebx, r12d
call sub.msvcrt.dll_memcpy
add qword [rsi], rbx
add dword [rsi + 0xc], r12d
add dword [rbp + 0x9c], r12d
mov r9d, dword [rbp + 0x9c]
cmp r9d, 3
jb 0x44aaf3
mov eax, dword [rbp + 0x94]
mov rdx, qword [rbp + 0x50]
mov ecx, dword [rbp + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rbp + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbp + 0x7c]
mov dword [rbp + 0x70], r8d
cmp r9d, 0x106
jae 0x44ab0a
mov rax, qword [rbp]
cmp dword [rax + 8], 0
jne 0x44a990
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x4731d0
Capabilities:
Access the windows event log

Disassembly:
add cl, ch
inc dword [rsi]
add byte [rax], al
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
mov eax, 0x280
call fcn.005555e0
sub rsp, rax
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x228], rbx
mov qword [rbp + 0x220], rdi
mov rax, qword [0x005c3458]
mov qword [rbp + 0x210], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x473254
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x473254
lea rbx, [rbp + 0x248]
call sub.msvcrt.dll___iob_func
mov rdx, qword [rbp + 0x240]
lea rcx, [rax + 0x60]
mov r8, rbx
call sub.msvcrt.dll_vfprintf
jmp 0x4733ec
mov r8, qword [rbp + 0x240]
mov rcx, r8
call fcn.00472a80
inc eax
mov edi, eax
lea rax, [rax + rax + 0xf]
and rax, 0xfffffffffffffff0
call fcn.005555e0
sub rsp, rax
lea rbx, [rsp + 0x50]
test rbx, rbx
jne 0x47328e
lea rbx, str.no_stack_
jmp 0x47333a
mov r9d, edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4732c9
xor edx, edx
test rdi, rdi
je 0x4732c9
nop
mov rax, qword [rbp + 0x240]
inc rdx
cmp rdx, rdi
movsx ecx, byte [rdx + rax - 1]
mov word [rbx + rdx*2 - 2], cx
jb 0x4732b0
xor edx, edx
test rdi, rdi
je 0x47333a
lea r9, [0x00400000]
cmp word [rbx + rdx*2], 0x25
jne case.0x473305.47
lea r8, [rbx + rdx*2 + 2]
movzx eax, word [r8]
add eax, 0xffffffd6
cmp eax, 0x49
ja case.0x473305.47
cdqe
movzx eax, byte [r9 + rax + 0x73428]
mov ecx, dword [r9 + rax*4 + 0x73410]
add rcx, r9
jmp rcx
inc rdx
add r8, 2
jmp 0x4732e3
mov word [rbx + rdx*2 + 2], 0x53
jmp case.0x473305.47
mov word [rbx + rdx*2 + 2], reloc.WS2_32.dll_WSAStartup
jmp case.0x473305.47
mov word [rbx + rdx*2 + 2], 0x43
jmp case.0x473305.47
mov word [rbx + rdx*2 + 2], 0x63
inc rdx
cmp rdx, rdi
jb 0x4732d7
lea r9, [rbp + 0x248]
lea rcx, [rbp + 0x10]
mov r8, rbx
mov edx, 0xff
call sub.msvcrt.dll__vsnwprintf
mov word [rbp + 0x20e], 0
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4733d3
call fcn.00473060
test eax, eax
jle 0x4733d3
lea rdx, str.OPENSSL
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rsp + 0x40], 0
xor r9d, r9d
mov rbx, rax
lea rax, [rbp + 0x10]
xor r8d, r8d
mov qword [rbp], rax
lea rax, [rbp]
mov dx, 1
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov rcx, rbx
mov word [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x4733ec
lea r8, str.OpenSSL:_FATAL
lea rdx, [rbp + 0x10]
mov r9d, reloc.WS2_32.dll_recv
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rbp + 0x210]
call fcn.005555b0
mov rbx, qword [rbp + 0x228]
mov rdi, qword [rbp + 0x220]
lea rsp, [rbp + 0x230]
pop rbp
ret
Function at 0x4769f0
Capabilities:
Encode data using base64

Disassembly:
push rbx
xor r11d, r11d
test r8d, r8d
mov r10, rdx
mov r9, rcx
jle 0x476ae7
lea rbx, [0x00566780]
nop
nop
cmp r8d, 3
movzx ecx, byte [r10]
jl 0x476a6f
movzx eax, byte [r10 + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [r10 + 2]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9], al
mov eax, ecx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 1], al
mov eax, ecx
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 2], al
mov al, cl
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 3], al
jmp 0x476ac5
shl ecx, 0x10
cmp r8d, 2
jne 0x476a82
movzx eax, byte [r10 + 1]
shl eax, 8
or ecx, eax
mov rax, rcx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
cmp r8d, 1
movzx eax, byte [rax + rbx]
mov byte [r9 + 1], al
jne 0x476ab1
lea eax, [r8 + 0x3c]
jmp 0x476abc
shr rcx, 6
and ecx, 0x3f
movzx eax, byte [rcx + rbx]
mov byte [r9 + 2], al
mov byte [r9 + 3], 0x3d
sub r8d, 3
add r9, 4
add r11d, 4
add r10, 3
test r8d, r8d
jg 0x476a10
mov byte [r9], 0
mov eax, r11d
pop rbx
ret
mov byte [rcx], r11b
mov eax, r11d
pop rbx
ret