joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42622c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0042c29f
mov eax, dword [ebp - 0xc]
pop ecx
test eax, eax
pop ecx
jne 0x42624c
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x426261
test al, 0x10
je 0x426261
mov bl, 1
jmp 0x426263
xor bl, bl
push 1
lea ecx, [ebp - 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov al, bl
pop ebx
leave
ret

Function at 0x426273
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0042c29f
mov eax, dword [ebp - 0xc]
pop ecx
test eax, eax
pop ecx
jne 0x426293
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4262a8
test al, 0x10
jne 0x4262a8
mov bl, 1
jmp 0x4262aa
xor bl, bl
push 1
lea ecx, [ebp - 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov al, bl
pop ebx
leave
ret

Function at 0x426955
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push esi
push edi
push 0x10
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], esi
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x25c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x66c]
push dword [0x44fa28]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x8000000
push esi
push esi
lea eax, [ebp - 0x66c]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop edi
pop esi
leave
ret
Function at 0x42cbf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push edi
push 0x7d
pop ecx
xor eax, eax
lea edi, [ebp - 0x308]
push 0x45
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x30c], 0x1f8
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 6
pop edi
jae 0x42cc44
sub dword [ebp - 0x30c], 4
lea eax, [ebp - 0x30c]
push 0
push eax
push 0x1f8
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
leave
ret

Function at 0x42d337
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
neg bl
sbb ebx, ebx
push esi
and ebx, 5
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, ecx
push ebx
push dword [esi + 4]
call edi
push str._Checkbox_Stub_
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetPropW]
cmp byte [esi + 0x5c], 0
je 0x42d36d
push 0
jmp 0x42d36e
push ebx
push eax
call edi
push dword [ebp + 8]
lea ecx, [esi + 8]
call fcn.0042e0a2
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x42db9d
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x43f701
call fcn.0043ad60
push ecx
mov al, byte [ebp + 0xb]
push ebx
push esi
mov esi, ecx
push edi
push 0
mov dword [ebp - 0x10], esi
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
lea edi, [esi + 0x10]
push 0
mov al, byte [ebx]
mov ecx, edi
mov byte [edi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov ecx, edi
push dword [eax]
push 0
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x30], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x42dbac
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x43f701
call fcn.0043ad60
push ecx
mov al, byte [ebp + 0xb]
push ebx
push esi
mov esi, ecx
push edi
push 0
mov dword [ebp - 0x10], esi
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
lea edi, [esi + 0x10]
push 0
mov al, byte [ebx]
mov ecx, edi
mov byte [edi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov ecx, edi
push dword [eax]
push 0
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x30], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x42df7a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x43f797
call fcn.0043ad60
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov al, byte [ebp + 0xb]
mov byte [esi + 4], al
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x14]
push edi
mov dword [ebp - 4], edi
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x40], edi
mov byte [esi + 0x34], 1
mov dword [esi + 0x2c], 0x96
mov dword [esi + 0x30], 0xf
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42fbab
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push edi
push 0x7d
pop ecx
xor eax, eax
lea edi, [ebp - 0x308]
push 0x45
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x30c], 0x1f8
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 6
pop edi
jae 0x42fbff
sub dword [ebp - 0x30c], 4
lea eax, [ebp - 0x30c]
push 0
push eax
push 0x1f8
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
leave
ret

Function at 0x433b9c
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
push 1
push eax
push eax
push str.http:__megadowl.com_terms_ru.html
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret

Function at 0x4387d9
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor edi, edi
pop ecx
cmp eax, edi
je 0x4387f3
mov dword [eax], edi
mov dword [eax + 4], edi
jmp 0x4387f5
xor eax, eax
mov ecx, dword [esi + 4]
mov ebx, dword [sym.imp.MSVCRT.dll__beginthreadex]
push edi
push edi
push eax
mov dword [eax], ecx
mov ecx, dword [esi + 0xc]
push 0x409446
push edi
push edi
mov dword [eax + 4], ecx
call ebx
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x1c
cmp eax, edi
je 0x438827
mov dword [eax], edi
mov dword [eax + 4], edi
jmp 0x438829
xor eax, eax
mov ecx, dword [esi + 4]
push edi
push edi
push eax
mov dword [eax], ecx
mov ecx, dword [esi + 0xc]
push 0x40940e
push edi
push edi
mov dword [eax + 4], ecx
call ebx
add esp, 0x18
pop edi
pop esi
pop ebx
ret

Function at 0x438c04
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi]
push edi
call dword [eax + 0x10]
push 1
mov ecx, esi
call fcn.00438cd2
mov ecx, dword [esi + 0x14]
cmp ecx, edi
je 0x438c26
mov eax, dword [ecx]
push edi
call dword [eax + 0x10]
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x438c39
mov dword [eax], edi
mov dword [eax + 4], edi
jmp 0x438c3b
xor eax, eax
mov ecx, dword [esi + 4]
push edi
push edi
push eax
mov dword [eax], ecx
mov ecx, dword [esi + 0xc]
push 0x409446
push edi
push edi
mov dword [eax + 4], ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
pop edi
pop esi
ret

Function at 0x438f6a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [ebp + 8]
call fcn.00431cf9
xor eax, eax
push eax
push eax
push esi
push 0x439370
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
push 1
pop eax
pop esi
pop ebp
ret 4
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..00cfg
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1728176e
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x71d34f67
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
sub ecx, 0x30
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x47
ja case.0x401023.1
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x401128]
jmp dword [eax*4 + 0x40110c]
push str.winepath
push str.Usage:__s__OPTION___PATH_..._n
call fcn.004018f0
add esp, 8
push str.Convert_PATH_s__to_Unix_or_Windows_long_or_short_paths._n_n___u____unix____converts_a_Windows_path_to_a_Unix_path_n___w____windows_converts_a_Unix_path_to_a_long_Windows_path_n___l____long____converts_the_short_Windows_path_of_an_existing_file_or_n________________directory_to_the_long_format_n___s____short___converts_the_long_Windows_path_of_an_existing_file_or_n________________directory_to_the_short_format_n___0____________separate_output_with_0_character__instead_of_a_newline_n___h____help____output_this_help_message_and_exit_n_nIf_more_than_one_option_is_given_then_the_input_paths_are_output_in_nall_formats_specified__in_the_order_long__short__Unix__Windows._nIf_no_option_is_given_the_default_is_Unix_format._n
call fcn.004018f0
add esp, 4
push 0
call fcn.00415817
mov eax, 2
jmp 0x401103
mov eax, 1
jmp 0x401103
mov eax, 4
jmp 0x401103
mov eax, 8
jmp 0x401103
mov eax, 0x10
jmp 0x401103
push str.winepath
push str._s:_invalid_option
push 2
call fcn.0040c69c
add esp, 4
push eax
call fcn.004018b0
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x4010c3
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4372f0
push 2
call fcn.0040c69c
add esp, 4
push eax
call fcn.004018b0
add esp, 0xc
jmp 0x4010df
mov edx, dword [ebp + 8]
push edx
push str.__c_n
push 2
call fcn.0040c69c
add esp, 4
push eax
call fcn.004018b0
add esp, 0xc
push str.winepath
push str.Try__s___help_for_help_n
push 2
call fcn.0040c69c
add esp, 4
push eax
call fcn.004018b0
add esp, 0xc
push 2
call fcn.00415817
mov esp, ebp
pop ebp
ret 8
Function at 0x40234b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40238a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40238a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40238a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40238a
cmp dword [ecx + 0x74], 0xe
jbe 0x40238a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41f8e4
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f7f8

Function at 0x42208a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00421b1a

Function at 0x432c40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x432c6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x432c6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401ac0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40e044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40e03c]
sub esp, 4
test ebx, ebx
je 0x401b0b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b04
test esi, esi
je 0x401b04
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ae0
mov dword [esp], 0x40e044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401cf0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401d40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e18
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401d7e
cmp eax, 4
jne 0x401da0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401d8e
cmp edx, 4
je 0x401d8e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401cf0
Function at 0x414de7
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor dword [esi], edi
inc eax
inc eax
add esi, 4
inc ecx
sub ecx, 0x20bd171b
cmp esi, edx
jne fcn.00414de7
dec eax
sub eax, eax
ret
Function at 0x40b420
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b57b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045ff2e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b4a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045dcad
mov eax, dword [eax]
push 0x53a1c0
push eax
call fcn.00450b14
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004601b9
test bl, bl
je 0x40b4a2
push 0x53a1c0
lea ecx, [esp + 0xc]
call fcn.00460549
push 0x53dd3c
lea ecx, [esp + 0xc]
call fcn.00460549
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40b4de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004601b9
jmp 0x40b5a9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40b562
lea edx, [esp + 0x7c]
push 0x53dd38
push edx
call fcn.00450b14
add esp, 8
test eax, eax
je 0x40b562
lea eax, [esp + 0x7c]
push 0x53dd34
push eax
call fcn.00450b14
add esp, 8
test eax, eax
je 0x40b562
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b4f2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004601b9
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40bda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40be02
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40be10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b5fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x544238]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40bf48
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40be76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004601b9
xor eax, eax
jmp 0x40bfbf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004602f6
push esi
lea ecx, [esp + 0xc]
call fcn.00460585
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40bf9d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040bda0
test eax, eax
jne 0x40bf9d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040bda0
test eax, eax
jne 0x40bf9d
lea eax, [esp + 0x14]
push 0x53dd50
push eax
call fcn.00451b50
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bf7c
lea ecx, [esp + 0x14]
push 0x53dd4c
push ecx
call fcn.00451ad0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bf7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40bf7f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004602a6
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40be8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004601b9
xor eax, eax
jmp 0x40bfbf
mov byte [esi], 0
push 0x53dd48
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004601b9
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4