joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41522c
Capabilities:
Delete directory
Set file attributes

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, 0x4217c0
push dword [edi + 4]
mov ecx, esi
push dword [edi]
call fcn.00415527
add edi, 8
cmp edi, 0x4217e0
jb 0x415235
cmp dword [esi + 0x14], 0
jne 0x4152a3
push 1
push str.User_Data
mov ecx, esi
call fcn.00415527
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x41526c
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 eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x4152a3
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x415283
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 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [esi + 0x30]
test esi, esi
jne 0x41529c
mov esi, 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 esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
ret
Function at 0x4152a6
Capabilities:
Delete registry key
Persist via app paths registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, ecx
push esi
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push edi
mov esi, dword [ebp + 0x18]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
neg esi
sbb esi, esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallC5E2255C_66FA_4187_8EB6_5176247C4723
add esi, edi
push esi
call ebx
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathshao123JuziBrowser.exe
push esi
call ebx
mov esi, str.Softwarehao123JuziBrowser
push esi
push SysReAllocString
call ebx
push esi
push edi
call ebx
cmp dword [ebp + 0x14], 0
je 0x415315
mov eax, dword [ebp + 0x34]
mov ebp, dword [ebp + 0x30]
test ebp, ebp
jne 0x4152fa
mov ebp, 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]
add eax, eax
push eax
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 1
push str.lastinstpath
push esi
push SysReAllocString
call ebp
jmp 0x41531b
mov ebp, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
lea eax, [esp + 0x1c]
pop esi
and dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
mov ebx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsJzbstall.exe
push str.ucount
push ebx
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x415356
cmp dword [esp + 0x14], esi
je 0x41535b
and dword [esp + 0x10], 0
inc dword [esp + 0x10]
lea eax, [esp + 0x10]
push esi
push eax
push esi
push str.ucount
push ebx
push edi
call ebp
push 0
call dword [sym.imp.MSVCRT.dll_time]
pop ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push esi
push eax
push esi
push str.ultime
push ebx
push edi
call ebp
call fcn.0040e378
mov esi, eax
add esi, 0x10
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
shl eax, 1
push eax
push esi
push 1
push str.ulcid
push ebx
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4154b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, dword [ebp + 8]
xor edx, edx
cmp esi, edx
je 0x41551f
cmp word [esi], dx
je 0x41551f
cmp dword [ecx + 0x10], 8
jge 0x41551f
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x28
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
push eax
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0x10
neg eax
sbb eax, eax
pop edi
inc eax
jmp 0x415522
push 1
pop eax
pop esi
leave
ret 4
Function at 0x4155b8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
and word [ebp - 0x62c], 0
push esi
mov esi, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x62a]
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x62c]
push eax
call fcn.0040135e
pop ecx
test eax, eax
pop ecx
je 0x415716
mov eax, dword [esi + 0xa0]
mov ecx, 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]
test eax, eax
mov dword [ebp - 0x14], ecx
je 0x41560f
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x41561f
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x41562c
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x90]
mov dword [ebp - 8], ecx
test eax, eax
je 0x41563c
mov dword [ebp - 8], eax
push ebx
lea ebx, [ebp - 0x14]
mov dword [ebp - 4], 4
and word [ebp - 0x21c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21a]
rep stosd dword es:[edi], eax
push str.Internet_Explorer.lnk
push dword [ebx]
stosw word es:[edi], ax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415709
and word [ebp - 0x424], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x422]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x424]
push 0x103
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00401dcd
add esp, 0xc
test eax, eax
je 0x415709
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4156cd
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 eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x415709
lea eax, [ebp - 0x21c]
push eax
call fcn.00401a3c
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x21c]
push 0
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.00401c99
add esp, 0x18
add ebx, 4
dec dword [ebp - 4]
jne 0x415647
pop ebx
pop edi
pop esi
leave
ret
Function at 0x417802
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x417897
lea ecx, [esi + 0x10]
push 0x42a294
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x417897
push ebp
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x417890
push ebp
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x417890
mov dword [esi + 0x230], eax
push 0x10
mov dword [esi + 0x22c], edi
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
test edi, edi
je 0x417888
and dword [edi + 4], 0
lea eax, [edi + 4]
push eax
lea eax, [esi + 0x220]
push eax
mov dword [edi], 0x42199c
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [edi + 8], eax
jmp 0x41788a
xor edi, edi
mov dword [esi + 0x21c], edi
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esi + 0x21c]
lea edi, [esi + 0x21c]
xor ebx, ebx
cmp ecx, ebx
mov dword [esi + 0xc], ebx
mov word [esi + 0x10], bx
je 0x4178cc
call fcn.00418424
mov ecx, dword [edi]
mov dword [esi + 4], eax
call fcn.00418448
mov dword [esi + 8], eax
xor eax, eax
cmp dword [esi + 4], ebx
setg al
jmp 0x4178ce
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41889a
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
je 0x4189a7
push ebx
mov ebx, dword [esi + 0x10]
sub ebx, dword [esi + 8]
push edi
mov edi, dword [esi + 0xc]
push dword [esi + 0x14]
sub edi, dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push edi
push dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [ebp - 0x14], eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
mov dword [ebp - 0x1c], edi
push dword [ebp - 4]
mov dword [ebp - 0x18], ebx
call fcn.00418b9b
mov eax, dword [esi]
push 0
push 0
mov ecx, esi
push dword [ebp - 4]
call dword [eax + 0x14]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetClipRgn]
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x418944
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_OffsetRgn]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push 0xcc0020
push 0
push 0
push dword [ebp - 4]
push ebx
mov ebx, dword [ebp - 8]
push edi
push dword [esi + 8]
push dword [esi + 4]
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [ebp - 0x10], 1
jne 0x418979
push dword [ebp - 0xc]
jmp 0x41897b
push 0
push ebx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [ebp - 0xc]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x14]
call edi
push ebx
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x41ac08
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041fa70
push ebx
mov ebx, ecx
and dword [ebp - 4], 0
push esi
push dword [ebx + 0xa0]
lea esi, [ebx + 0xa0]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41ac9d
mov esi, dword [esi]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x41ac9d
and word [ebp - 0x1004], 0
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1002]
push 0x800
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
pop edi
cmp dword [ebp + 0xc], eax
je 0x41acb2
lea ecx, [ebp - 0x1004]
lea esi, [ebx + 0x1c]
test ecx, ecx
je 0x41ac8e
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x1004]
push ecx
push eax
mov ecx, esi
call fcn.004071d0
mov ecx, dword [ebp + 8]
add ebx, 0x1c
push ebx
call fcn.0040690c
mov eax, dword [ebp + 8]
pop esi
pop ebx
leave
ret 8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1004]
push eax
call fcn.00406952
jmp 0x41aca9
Function at 0x41c988
Capabilities:
Check os version

Disassembly:
mov eax, 0x420ddc
call fcn.0041fac0
sub esp, 0x178
and dword [ebp - 0x70], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x16
pop ecx
xor eax, eax
lea edi, [ebp - 0x6c]
mov dword [ebp - 0x184], 0x114
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x174], 2
jne 0x41caab
cmp dword [ebp - 0x180], 6
jne 0x41caab
lea eax, [ebp - 0x54]
push str.Microsoft_Yahei
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
mov dword [ebp - 0x70], 0xfffffff4
pop ecx
push str.menu
lea ecx, [ebp - 0x10]
call fcn.00406952
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
lea edi, [esi + 0x14]
mov esi, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0041d020
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [eax], ebx
call fcn.004070f4
push str.edit
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x70], 0xfffffff2
call fcn.00406952
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 1
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0041d020
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [eax], ebx
call fcn.004070f4
push str.link
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x70], 0xfffffff4
mov byte [ebp - 0x5b], 1
call fcn.00406952
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 2
push eax
call esi
mov esi, eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0041d020
or dword [ebp - 4], 0xffffffff
mov dword [eax], esi
lea ecx, [ebp - 0x10]
jmp 0x41cb78
lea eax, [ebp - 0x54]
push str.Tahoma
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
mov dword [ebp - 0x70], 0xe
pop ecx
push str.menu
lea ecx, [ebp - 0x10]
call fcn.00406952
lea eax, [ebp - 0x70]
lea edi, [esi + 0x14]
mov esi, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
mov dword [ebp - 4], 3
call esi
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0041d020
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [eax], ebx
call fcn.004070f4
push str.edit
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x70], 0x12
call fcn.00406952
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 4
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0041d020
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [eax], ebx
call fcn.004070f4
push str.link
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x70], 0xe
mov byte [ebp - 0x5b], 1
call fcn.00406952
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 5
push eax
call esi
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0041d020
or dword [ebp - 4], 0xffffffff
mov dword [eax], esi
lea ecx, [ebp - 0x14]
call fcn.004070f4
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x402820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x52b014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4028b8
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x402898
xor eax, eax
push ebp
push 0x402891
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4028d4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402898
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x52b014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x52b014], ax
mov esp, ebp
pop ebp
ret

Function at 0x4033ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52d03c], 0
je 0x40340d
cmp word [0x52d210], 0xd7b2
jne 0x4033d5
cmp dword [0x52d218], 0
jbe 0x4033d5
mov eax, 0x52d20c
call dword [0x52d228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x52b05c
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403434
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x52b020], 0
jne 0x403429
push 0
push 0x52b054
push 0x52b05c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x4047f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404856
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403750
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402714
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404840
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40485d
lea eax, [ebp - 0x10]
call fcn.00403528
ret

Function at 0x4063f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x40648e
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00403a68
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.004039d4
mov edx, ebp
add dl, 0x30
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x406418
cmp byte [esp], 0
je 0x40645f
mov eax, edi
call fcn.004039d4
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40649a
mov eax, edi
call fcn.004039d4
push eax
mov eax, edi
call fcn.004039d4
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004025ec
mov edx, ebx
mov eax, edi
call fcn.00403a68
jmp 0x40649a
mov eax, edi
mov edx, 0x4064a8
call fcn.0040357c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406d08
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0040357c
mov eax, ebx
call fcn.004039cc
mov eax, dword [ebx]
call fcn.0040377c
test eax, eax
jle 0x406d39
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x406d2e
pop esi
pop ebx
ret

Function at 0x407018
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x407064
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.00407f74
test al, al
jne 0x40705a
cmp word [edi], 0x5a4d
jne 0x40705a
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x40705a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x407070
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407200
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x52b230], 0
jne 0x4072e1
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x407253
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
jmp 0x407284
push 0x105
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
cmp esi, 0xffffffff
je 0x4072e1
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x4072af
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x4072c1
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x4072db
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x40dc80
Capabilities:
Hash data using sha1

Disassembly:
push 0xcc
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov edx, eax
mov eax, edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, edx
ret

Function at 0x4120a4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x41215b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, dword [0x52bd6c]
call fcn.00406d08
push dword [ebp - 0xc]
push 0x412174
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov cl, byte [ebp - 1]
mov eax, dword [0x52bd70]
call fcn.00411f94
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040383c
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.0040397c
push eax
call fcn.00411da8
mov esi, eax
test esi, esi
je 0x412140
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x41213a
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412162
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040354c
ret

Function at 0x4123ac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ebx, eax
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x4123cc
push 0x40
push 0x1000
push ebx
push 0
call sub.KERNEL32.dll_VirtualAlloc
pop ebx
ret
push 0
push ebx
call fcn.0040bff4
pop ebx
ret

Function at 0x41269c
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x52be40]
cmp eax, 0x1c
jne 0x412717
cmp dword [ebp - 0xc], 0x1000
jne 0x412712
cmp dword [ebp - 0x18], 0
je 0x412712
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x412712
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x4126f1
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x412717
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x52be14]
cmp eax, 0
je 0x412712
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x52be94]
add ebx, dword [ebp - 0x10]
jmp 0x4126b3
popfd
popal
add esp, 0x20
pop ebp
ret 0xc