joyce8/EMBER2024-capa huggingface dataset:
Function at 0x554d60
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov r13, r9
mov rcx, rbx
mov rdx, qword [rbp + 0x90]
call fcn.0040e9e0
mov rcx, rdi
call fcn.0040f9d0
mov rcx, rsi
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x554e7f
mov dword [rbp + 0x34], 0
mov rcx, r13
call fcn.0040f9d0
mov rcx, qword [rbp + 0x38]
mov rdx, rax
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x34]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [rbp + 0x34], 0
je 0x554e76
mov ecx, dword [rbp + 0x34]
call fcn.00408c10
mov rsi, rax
mov rcx, r13
call fcn.0040f9d0
mov rcx, qword [rbp + 0x38]
mov rdx, rax
xor r8, r8
lea r9, [rbp + 0x30]
mov qword [rsp + 0x20], rsi
lea rax, [rbp + 0x34]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x554e6e
mov eax, dword [rbp + 0x30]
cmp eax, 7
ja 0x554e4b
mov dl, 1
mov ecx, eax
and cl, 0x7f
shl edx, cl
movzx rax, byte [0x00554e90]
test dl, al
setne al
jmp 0x554e4e
xor rax, rax
test al, al
je 0x554e5f
mov rcx, rbx
mov rdx, rsi
call fcn.0040fa70
jmp 0x554e6e
mov rcx, rbx
mov rdx, rsi
mov r8d, dword [rbp + 0x34]
call fcn.0040e670
mov rcx, rsi
call fcn.00408c70
mov rcx, qword [rbp + 0x38]
call sub.advapi32.dll_RegCloseKey_1
mov rax, rbx
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x567710
Capabilities:
Delete file

Disassembly:
push rbp
sub rsp, 0xa0
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0xb0], rcx
nop
mov byte [rbp + 0x97], 0
nop
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0xb0]
lea r8, [0x005678dc]
lea r9, [0x005678ec]
movzx rax, byte [0x005678f0]
mov byte [rsp + 0x20], al
call fcn.00438b50
mov dword [rbp + 0x4c], 0
cmp qword [rbp + 0x88], 0
je 0x56778d
mov rax, qword [rbp + 0x88]
mov eax, dword [rax - 4]
mov dword [rbp + 0x4c], eax
mov rax, qword [rbp + 0x88]
movsxd rcx, dword [rbp + 0x4c]
cmp word [rax + rcx*2 - 2], 0x5c
jne 0x5677d4
mov dword [rbp + 0x48], 0
cmp qword [rbp + 0x88], 0
je 0x5677be
mov rax, qword [rbp + 0x88]
mov eax, dword [rax - 4]
mov dword [rbp + 0x48], eax
lea rcx, [rbp + 0x88]
mov edx, dword [rbp + 0x48]
mov r8d, 1
call fcn.00410070
lea rcx, [rbp + 0x50]
mov edx, 0x38
xor r8, r8
call fcn.0040a600
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x88]
lea r8, [0x00567900]
call fcn.0040fe00
mov rcx, qword [rbp + 0x30]
call fcn.0040f9d0
mov qword [rbp + 0x60], rax
mov dword [rbp + 0x58], 3
mov word [rbp + 0x70], 0x614
lea rcx, [rbp + 0x50]
call sub.shell32.dll_SHFileOperationW
test eax, eax
sete al
mov byte [rbp + 0x97], al
jmp 0x56783e
nop
lea rcx, [rbp + 0x30]
call fcn.0040e3b0
lea rcx, [rbp + 0x88]
call fcn.0040e3b0
movzx rax, byte [rbp + 0x97]
lea rsp, [rbp + 0xa0]
pop rbp
ret
Function at 0x569f70
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0xa0
mov rbp, rsp
mov qword [rbp + 0x68], rbp
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
mov rcx, qword [rbp + 0xb0]
call fcn.0040e3b0
mov rcx, qword [rbp + 0xb8]
call fcn.0040f9d0
mov rcx, rax
lea rdx, [rbp + 0x90]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x94], eax
mov ecx, dword [rbp + 0x94]
call fcn.00408c40
mov qword [rbp + 0x98], rax
nop
mov rcx, qword [rbp + 0xb8]
call fcn.0040f9d0
mov rcx, rax
xor rdx, rdx
mov r8d, dword [rbp + 0x94]
mov r9, qword [rbp + 0x98]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x56a09a
mov rcx, qword [rbp + 0x98]
lea rdx, [0x0056a0f8]
lea r8, [rbp + 0x80]
lea r9, [rbp + 0x8c]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x56a09a
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov eax, dword [rax + 8]
mov dword [rbp + 0x74], eax
mov rax, qword [rbp + 0x78]
mov eax, dword [rax + 0xc]
mov dword [rbp + 0x70], eax
mov eax, dword [rbp + 0x74]
shr eax, 0x10
movzx eax, ax
mov dword [rbp + 0x28], eax
mov byte [rbp + 0x30], 0
mov rax, qword [rbp + 0x78]
movzx eax, word [rax + 8]
mov dword [rbp + 0x38], eax
mov byte [rbp + 0x40], 0
mov eax, dword [rbp + 0x70]
shr eax, 0x10
movzx eax, ax
mov dword [rbp + 0x48], eax
mov byte [rbp + 0x50], 0
mov rax, qword [rbp + 0x78]
movzx eax, word [rax + 0xc]
mov dword [rbp + 0x58], eax
mov byte [rbp + 0x60], 0
mov rcx, qword [rbp + 0xb0]
lea rdx, [0x0056a108]
lea r8, [rbp + 0x28]
mov r9d, 3
call fcn.0042e2a0
nop
mov rcx, qword [rbp + 0x98]
mov edx, dword [rbp + 0x94]
call fcn.00408c70
mov rax, qword [rbp + 0xb0]
lea rsp, [rbp + 0xa0]
pop rbp
ret
Function at 0x575b40
Capabilities:
Modify service

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
nop
xor rcx, rcx
xor rdx, rdx
mov r8d, 0xf003f
call sub.advapi32.dll_OpenSCManagerW
test rax, rax
je 0x575c5c
mov rcx, rax
lea rdx, [0x00575ca8]
mov r8d, 0xf01ff
call sub.advapi32.dll_OpenServiceW
test rax, rax
je 0x575c5c
mov rcx, rax
or edx, 0xffffffff
mov r8d, 4
or r9d, 0xffffffff
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
call sub.advapi32.dll_ChangeServiceConfigW
test eax, eax
jne 0x575c39
mov rax, qword [0x005b6b30]
cmp qword [rax], 0
je 0x575c5c
call sub.kernel32.dll_GetLastError_2
lea rcx, [rbp + 0x60]
mov edx, eax
mov r8d, 8
call fcn.0042cbc0
lea rcx, [rbp + 0x68]
lea rdx, [0x00575cc8]
mov r8, qword [rbp + 0x60]
call fcn.0040fe00
mov rax, qword [0x005b6b30]
mov rcx, qword [rax]
mov rdx, qword [rbp + 0x68]
call fcn.00553120
jmp 0x575c5c
mov rax, qword [0x005b6b30]
cmp qword [rax], 0
je 0x575c5c
mov rax, qword [0x005b6b30]
mov rcx, qword [rax]
lea rdx, [0x00575d24]
call fcn.00553120
nop
lea rcx, [rbp + 0x60]
mov edx, 2
call fcn.0040e490
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x140005f90
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x14000a090]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x14000a188]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140006011
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x14000a188]
jmp 0x14000602d
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x14000a188], r11
mov qword [0x14000a128], rax
mov rax, qword [0x1400099a8]
mov qword [0x14000a000], r11
mov qword [0x14000a110], rdi
mov dword [0x140009ff0], 0xc0000409
mov dword [0x140009ff4], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x1400099a0]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140007cb8]
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]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x1400099a8]
jne 0x140006729
rol rcx, 0x10
test cx, 0xffff
jne 0x140006725
ret
ror rcx, 0x10
jmp 0x140005f90
Function at 0x140006130
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
mov edi, esi
xor eax, eax
lock cmpxchg qword [0x14000a5a0], rbx
je 0x140006176
cmp rax, rbx
jne 0x140006169
mov edi, 1
jmp 0x140006176
mov ecx, 0x3e8
call qword [sym.imp.orauts.dll_Sleep]
jmp 0x140006150
mov eax, dword [0x14000a59c]
cmp eax, 1
jne 0x14000618b
lea ecx, [rax + 0x1e]
call sub.MSVCR80.dll__amsg_exit
jmp 0x1400061ca
mov eax, dword [0x14000a59c]
test eax, eax
jne 0x1400061c0
mov dword [0x14000a59c], 1
lea rdx, [0x140007250]
lea rcx, [0x140007238]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x1400061ca
mov eax, 0xff
jmp 0x1400062ab
mov dword [0x14000a584], 1
mov eax, dword [0x14000a59c]
cmp eax, 1
jne 0x1400061f2
lea rdx, [0x140007230]
lea rcx, [0x140007218]
call sub.MSVCR80.dll__initterm
mov dword [0x14000a59c], 2
test edi, edi
jne 0x1400061fd
xchg qword [0x14000a5a0], rsi
cmp qword [0x14000a5b8], 0
je 0x140006226
lea rcx, [0x14000a5b8]
call fcn.140006670
test eax, eax
je 0x140006226
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14000a5b8]
mov rcx, qword [sym.imp.MSVCR80.dll___initenv]
mov rax, qword [0x14000a568]
mov qword [rcx], rax
mov r8, qword [0x14000a568]
mov rdx, qword [0x14000a570]
mov ecx, dword [0x14000a560]
call fcn.140001000
mov dword [0x14000a580], eax
cmp dword [0x14000a564], 0
jne 0x140006267
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x14000a584], 0
jne 0x14000627c
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x14000a580]
jmp 0x1400062ab
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
call fcn.140005ed0
add rsp, 0x28
jmp 0x140006130
Function at 0x1400018b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400018d1
add rsp, 0x20
pop r15
pop rdi
pop rbx
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 + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400018fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001900
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001959
test ecx, ecx
jle 0x140001939
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001959
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001959
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
outsb dx, byte [rsi]
add byte [rax], al
add al, 2
adc al, 0x7d
outsd dx, dword [rsi]
add byte [rax], al
add al, 2
adc al, 0x7d
jo 0x14000fc66
add byte [rdx + rax], al
Function at 0x140001980
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400019a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400019b1
add rsp, 0x30
pop r14
pop rsi
pop rbp
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 + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400019d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400019d6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001a12
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140001aae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001a4d
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
cmp rbx, 0xfff
jbe 0x140001a8e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140001aae
cmp rbx, rax
ja 0x140001a60
test rbx, rbx
je 0x140001aae
mov r9, qword [rsi + 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
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add dl, byte [rdi*2 + 0x4000063]
add dl, byte [rdi*2 + 0x4000064]
add dl, byte [rdi*2 + 0x4000065]
add dl, byte [rdi*2 + 0x4000066]
add dl, byte [rdi*2 + 0x4000067]
add dl, byte [rdi*2 + 0x4000068]
add dl, byte [rdi*2 + 0x4000069]
add dl, byte [rdi*2 + 0x400006a]
Function at 0x140001ee0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000b028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140001f0d
xor eax, eax
jmp 0x140002079
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140001f47
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140001f47
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002079
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000206c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140001f8a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x140001fb5
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 0x140002071
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
je 0x140002024
sub eax, 1
je 0x140002024
cmp eax, 2
jne 0x14000206c
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 0x140002071
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002052
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 0x14000206c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002071
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400045a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002280
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000b028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002353
cmp byte [rcx + 0x71], 0
je 0x140002353
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000234f
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 0x140002314
sub eax, 1
je 0x140002318
cmp eax, 2
jne 0x14000234f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400045a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002346
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 0x14000234f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400022fc
xor al, al
jmp 0x1400022fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400045a0
add rsp, 0x60
pop rbx
ret
Function at 0x140002810
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
lea r14d, [rbp + 0x20]
mov rax, qword gs:[0x58]
mov r12, qword [rax]
mov r15d, 0x13a8
mov eax, dword [r15 + r12]
mov esi, 0x10
test al, 1
jne 0x1400028ab
or eax, 1
mov dword [r15 + r12], eax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [r12 + rsi + 0x1384], 0xffffffff
mov dword [r12 + rsi + 4], eax
lea ecx, [rbp + 1]
lea r8, [rsi + 8]
add r8, r12
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [r8], edx
inc rcx
lea r8, [r8 + 4]
cmp rcx, 0x270
jb 0x140002881
mov dword [r12 + rsi], 0x270
mov eax, dword [r15 + r12]
mov ebx, 0x1398
test al, 2
jne 0x1400028cc
or eax, 2
mov dword [r15 + r12], eax
mov qword [r12 + rbx], rbp
mov qword [r12 + rbx + 8], 0x3d
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov dword [rsp + 0x20], 1
mov rdx, r14
mov rcx, rdi
call fcn.140003b70
mov qword [rdi + 0x10], rbp
lea r15, [r12 + rbx]
lea rbx, [r12 + rsi]
lea r12, str.0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
nop word [rax + rax]
dec r14
mov qword [rsp + 0x28], rbx
mov rbp, qword [r15]
mov rdx, qword [r15 + 8]
sub rdx, rbp
cmp rdx, 0xffffffffffffffff
jne 0x140002945
mov rcx, rbx
call fcn.140004380
mov esi, eax
shl rsi, 0x20
mov rcx, rbx
call fcn.140004380
mov eax, eax
or rsi, rax
jmp 0x140002955
inc rdx
lea rcx, [rsp + 0x28]
call fcn.1400041a0
mov rsi, rax
lea rax, [rsi + rbp]
movzx r9d, byte [rax + r12]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14000298a
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x14000297f
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140002992
mov rcx, rdi
call fcn.140002690
test r14, r14
jne 0x140002910
mov rax, rdi
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140002f80
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
call fcn.140002ca0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400029c0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140004380
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400043e1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400043a0
mov ecx, dword [r9]
jmp 0x1400044c8
cmp ecx, 0x4e0
jb 0x1400044c8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140004400
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140004450
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x1400050e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000512a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000512a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000512a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000512a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000512a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000512c
xor al, al
add rsp, 0x28
ret