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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push esi
mov esi, ecx
cmp dword [esi + 0x834], 0
je 0x421a95
mov esi, dword [esi + 0x830]
jmp 0x421b35
and byte [ebp - 0x408], 0
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x407]
mov dword [ebp - 4], 3
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x400
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 4]
push eax
push str.tbdowntm
push str.SOFTWARETencentQQTBUnc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x421b11
lea eax, [ebp - 0x408]
add esi, 0x82c
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x408]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
push esi
call fcn.004228ef
pop ecx
jmp 0x421b31
mov ecx, esi
call fcn.00421cbb
mov edi, eax
add esi, 0x82c
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov esi, dword [esi + 4]
pop edi
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test esi, esi
je 0x421b40
mov eax, esi
pop esi
leave
ret
Function at 0x4222c9
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
jne 0x4222d6
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0xc]
push ebx
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 3
pop edi
cmp edx, edi
jb 0x422347
cmp dword [ebp + 0x14], 4
jbe 0x422347
movzx ebx, byte [esi + 2]
xor ecx, ecx
sub edx, edi
mov ch, byte [esi]
sub dword [ebp + 0x14], 4
mov cl, byte [esi + 1]
add esi, edi
shl ecx, 8
or ecx, ebx
mov ebx, ecx
shr ebx, 0x12
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], bl
mov ebx, ecx
shr ebx, 0xc
and ebx, 0x3f
inc eax
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], bl
mov ebx, ecx
shr ebx, 6
and ebx, 0x3f
inc eax
and ecx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], bl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], cl
inc eax
cmp edx, edi
jae 0x4222e9
test edx, edx
je 0x4223a9
cmp dword [ebp + 0x14], 4
jbe 0x4223a9
movzx ecx, byte [esi]
shl ecx, 0x10
mov edi, ecx
shr edi, 0x12
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], bl
inc eax
cmp edx, 1
jne 0x42237e
shr ecx, 0xc
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
mov byte [eax], 0x3d
jmp 0x4223a4
xor edx, edx
mov dh, byte [esi + 1]
or ecx, edx
mov edx, ecx
shr edx, 0xc
and edx, 0x3f
shr ecx, 6
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
inc eax
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
mov byte [eax], 0x3d
inc eax
and byte [eax], 0
sub eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x422f9c
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4469e5
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0x34]
push ebx
push eax
mov byte [ebp - 0xd], bl
call fcn.004230b7
pop ecx
pop ecx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x422fcc
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]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 2
push ebx
mov edi, 0x40000000
push 1
push edi
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x423022
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.004230b7
mov eax, dword [ebp - 0x20]
pop ecx
cmp eax, ebx
pop ecx
jne 0x423003
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 ebx
push 2
push ebx
push 1
push edi
push eax
call esi
push 1
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
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_]
cmp dword [ebp - 0x14], 0xffffffff
je 0x42304c
lea eax, [ebp + 8]
push ebx
push eax
push 0x10
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423043
cmp dword [ebp + 8], 0x10
jne 0x423043
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x34]
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 al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4237d2
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
ret
Function at 0x425620
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a20
call fcn.0042d380
and word [ebp - 0x220], 0
push esi
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, str.iphlpapi.dll
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
push eax
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0x10
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x425691
xor al, al
jmp 0x425793
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
test eax, eax
je 0x42576f
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x2800
push ecx
lea ecx, [ebp - 0x2a20]
push ecx
call eax
test eax, eax
jne 0x42576f
lea eax, [ebp - 0x2a20]
lea esi, [ebp - 0x2a20]
test eax, eax
mov dword [ebp - 0xc], 3
je 0x42576f
push ebx
lea eax, [esi + 8]
push eax
call fcn.00425797
mov dword [ebp + 8], eax
push 6
lea eax, [ebp - 8]
push 0
push eax
call sub.MSVCRT.dll_memset
mov ecx, edi
lea eax, [ebp - 8]
add esp, 0x10
xor edx, edx
sub ecx, eax
lea eax, [ebp + edx - 8]
mov bl, byte [ecx + eax]
cmp bl, byte [eax]
jne 0x425718
inc edx
cmp edx, 6
jb 0x425705
jmp 0x425729
cmp dword [esi + 0x1a0], 6
jne 0x425764
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jle 0x425764
mov al, byte [esi + 0x194]
mov byte [edi], al
mov al, byte [esi + 0x195]
mov byte [edi + 1], al
mov al, byte [esi + 0x196]
mov byte [edi + 2], al
mov al, byte [esi + 0x197]
mov byte [edi + 3], al
mov al, byte [esi + 0x198]
mov byte [edi + 4], al
mov al, byte [esi + 0x199]
mov byte [edi + 5], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov esi, dword [esi]
test esi, esi
jne 0x4256e0
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 6
lea eax, [ebp - 8]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.00425939
pop edi
pop esi
leave
ret
Function at 0x425797
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0x18]
mov edi, 0x20019
xor ebx, ebx
push eax
push edi
push ebx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], 3
mov dword [ebp - 8], 0x104
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call esi
test eax, eax
jne 0x425905
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push str._sConnection
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x11c]
push ebx
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x4258fc
push 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.MediaSubType
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4258f3
push 1
lea eax, [ebp - 0x11c]
pop edi
mov dword [ebp - 8], 0x103
push 0x104
push ebx
push eax
mov dword [ebp - 0x14], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.PnpInstanceID
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4258f3
cmp dword [ebp - 0x10], edi
jne 0x4258e1
mov esi, 0x45b5a0
push esi
call sub.MSVCRT.dll_strlen
mov edi, dword [sym.imp.MSVCRT.dll_strncmp]
push eax
lea eax, [ebp - 0x11c]
push esi
push eax
call edi
add esp, 0x10
test eax, eax
jne 0x4258ba
mov dword [ebp - 0xc], ebx
jmp 0x4258f3
cmp dword [ebp - 0x10], 1
jne 0x4258e1
push esi
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x11c]
push esi
push eax
call edi
add esp, 0x10
test eax, eax
je 0x4258e1
mov dword [ebp - 0xc], 2
jmp 0x4258f3
xor eax, eax
cmp dword [ebp - 0x10], 2
setne al
dec eax
and al, 0xfe
add eax, 3
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426427
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
je 0x4264d1
cmp dword [ebp + 8], 0xffffffff
je 0x4264d1
cmp dword [ebp + 0xc], esi
je 0x4264d1
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
call edi
pop ecx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
push dword [ebp + 0xc]
push esi
push esi
call ebx
cmp eax, esi
mov dword [ebp - 4], eax
je 0x4264d1
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp - 8], eax
je 0x4264d1
push dword [ebp - 4]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push esi
push esi
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 0xc]
call edi
pop ecx
push eax
push dword [ebp + 0xc]
push esi
push esi
call ebx
push 2
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push esi
push eax
mov dword [ebp - 0xc], esi
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
call fcn.0042c9ee
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x427c13
Capabilities:
Delete file

Disassembly:
mov eax, 0x446fc5
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x21c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ecx
mov edx, dword [esi]
cmp edx, ebx
je 0x427d1d
cmp dword [edx], ebx
jne 0x427d1d
cmp dword [ebp + 0xc], ebx
je 0x427d13
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x226]
mov word [ebp - 0x228], bx
push ebx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x10]
push 0x104
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
add edx, 0x1a34
push eax
push edx
call fcn.0042757e
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x228]
push eax
call ebx
mov esi, dword [esi]
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x20]
add esi, 0x1a34
mov byte [ebp - 0x20], 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 edi, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
call edi
pop ecx
push eax
push esi
lea ecx, [ebp - 0x20]
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_unsigned_short_int_const___unsigned_int_]
and dword [ebp - 4], 0
mov esi, 0x44c858
push esi
call edi
pop ecx
push eax
push esi
lea ecx, [ebp - 0x20]
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__::append_unsigned_short_int_const___unsigned_int_]
mov eax, dword [ebp - 0x1c]
pop edi
test eax, eax
jne 0x427cdf
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 0
lea ecx, [ebp - 0x228]
push 0x104
push ecx
mov ecx, dword [ebp - 0x10]
push eax
call fcn.0042757e
lea eax, [ebp - 0x228]
push eax
call ebx
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
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 esi, dword [ebp + 8]
xor ebx, ebx
push dword [esi]
call fcn.0042c9ee
pop ecx
mov dword [esi], ebx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x428ab6
Capabilities:
Delete file

Disassembly:
mov eax, 0x4470fd
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x424
mov al, byte [ebp + 0xb]
push esi
mov dword [ebp - 0x10], ecx
xor esi, esi
push edi
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], 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_]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
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_unsigned_short_int_const___unsigned_int_]
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x42e]
mov word [ebp - 0x430], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], esi
cmp eax, esi
jne 0x428b1b
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]
mov edi, 0x208
push esi
lea ecx, [ebp - 0x430]
push edi
push ecx
mov ecx, dword [ebp - 0x10]
push eax
call fcn.0042757e
lea eax, [ebp - 0x430]
push esi
mov esi, dword [sym.imp.MSVCRT.dll__waccess]
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x428b55
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
mov ebx, str.Operation
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x20]
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__::append_unsigned_short_int_const___unsigned_int_]
mov eax, dword [ebp - 0x1c]
pop ebx
test eax, eax
jne 0x428b7b
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 0
lea ecx, [ebp - 0x430]
push edi
push ecx
mov ecx, dword [ebp - 0x10]
push eax
call fcn.0042757e
lea eax, [ebp - 0x430]
push 0
push eax
call esi
pop ecx
pop ecx
pop edi
test eax, eax
pop esi
jne 0x428bae
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
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 fs:[0], ecx
leave
ret 4
Function at 0x42951f
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x447230
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x438
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x429640
push edi
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x442]
mov word [ebp - 0x444], bx
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x444]
push 0x208
push eax
push ebx
push ebx
call fcn.0041f243
add esp, 0x18
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop edi
je 0x429639
mov dword [ebp - 0x14], ebx
mov al, byte [ebp - 0xd]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x24], al
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov al, byte [ebp - 0xd]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x34], al
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.00420071
add esp, 0x10
cmp dword [ebp - 0x14], ebx
je 0x4295db
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x4295dd
xor eax, eax
cmp eax, ebx
je 0x429615
cmp dword [ebp - 0x20], ebx
je 0x429615
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
test eax, 0xfffffffc
je 0x429615
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00408cc1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00408cc1
push dword [ebp - 0x14]
call fcn.0042c9ee
pop ecx
jmp 0x429640
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00408cc1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00408cc1
push dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.0042c9ee
pop ecx
mov ecx, esi
call fcn.004291f8
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42ec90
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x42eccb
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x42eca8
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x42ece7
dec esi
je 0x42ece0
dec esi
jne 0x42ecec
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc

Function at 0x432926
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x5c
push 0
push esi
call sub.MSVCRT.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
add esp, 0xc
and dword [esi + 0x58], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
pop ebp
ret
Function at 0x434ac5
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x447718
call sub.MSVCRT.dll__EH_prolog
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
mov ebx, ecx
jne 0x434af0
push esi
push esi
push esi
push 2
mov ecx, ebx
call fcn.004363eb
xor al, al
jmp 0x434c56
mov ecx, ebx
call fcn.004339e3
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
or dword [ebx + 8], 0xffffffff
or dword [ebx + 4], 0xffffffff
push 2
push esi
push dword [ebp + 8]
call edi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push dword [ebp + 8]
mov esi, eax
call edi
xor eax, eax
add esp, 0x1c
cmp esi, eax
jne 0x434b31
push eax
push eax
push eax
push 0xd
jmp 0x434ae2
mov edi, 0x45f880
mov dword [ebp - 0x10], edi
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x10]
call fcn.00437131
lea eax, [esi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp + 8]
and byte [eax], 0
mov dword [ebp - 0x14], eax
push 1
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x434b93
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push 2
call fcn.004363eb
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x434ae9
push dword [ebp - 0x10]
call fcn.0042c9ee
pop ecx
jmp 0x434ae9
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov edi, eax
and byte [ecx + esi], 0
cmp byte [ecx], 0
je 0x434bfe
mov cl, byte [edi]
cmp cl, 0xa
jne 0x434bbc
mov ecx, edi
sub ecx, eax
inc ecx
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0043723a
inc edi
jmp 0x434bf0
cmp cl, 0xd
jne 0x434bf8
mov ecx, edi
sub ecx, eax
test ecx, ecx
jle 0x434bd3
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0043723a
lea eax, [ebp + 0xb]
push 1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xb], 0xa
call fcn.0043723a
cmp byte [edi + 1], 0xa
lea eax, [edi + 1]
jne 0x434bf4
inc edi
inc edi
mov eax, edi
jmp 0x434bf9
mov edi, eax
jmp 0x434bf0
inc edi
cmp byte [edi], 0
jne 0x434ba3
sub edi, eax
je 0x434c0c
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.0043723a
push dword [ebp - 0x14]
call fcn.0042c9ee
mov eax, dword [ebx]
pop ecx
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
add ecx, 8
push 0
push ecx
mov ecx, ebx
call dword [eax + 8]
cmp byte [ebx + 0x2c], 0
je 0x434c3e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0x45f880
jmp 0x434b7f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0x45f880
je 0x434c54
push dword [ebp - 0x10]
call fcn.0042c9ee
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8