joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fe6c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x510281
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x551aa8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
push str.Patch_Start_
call fcn.004172c0
xor esi, esi
add esp, 4
cmp dword [ebx + 0x40], esi
je 0x40ff57
mov eax, dword [ebx + 8]
push eax
call fcn.0040f9d0
push 0x55c578
mov dword [esp + 0x18], 0x55c578
mov byte [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [ebx - 4]
mov ecx, edi
mov dword [esp + 0x28], esi
call fcn.0040ff90
cmp eax, 4
ja case.default.0x40fe3e
jmp dword [eax*4 + 0x40ff6c]
push str.Patch_Success_
call fcn.004172c0
mov dword [edi + 0x40], 0xa
mov edi, dword [edi + 0x44]
add esp, 4
cmp edi, esi
je case.default.0x40fe3e
push esi
push 0xa
jmp 0x40ff40
push str.Launcher_Restart_because_Launcher_Patched.
call fcn.004172c0
mov eax, dword [0x55c320]
add esp, 4
cmp eax, esi
je 0x40fe8f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x55c320], esi
call fcn.0040be60
lea esi, [esp + 0x10]
call fcn.00409930
push 0x5441e4
mov ecx, esi
mov byte [esp + 0x2c], 1
call dword [0x511830]
mov esi, dword [esp + 0x10]
push 1
push 0
mov ecx, 0x55c400
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
mov ecx, dword [ebx + 0x40]
push eax
push esi
push 0
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [edi + 0x40], 0xb
mov edi, dword [edi + 0x44]
test edi, edi
je 0x40feee
push 0
push 0xb
push 0x8065
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
jmp case.default.0x40fe3e
push edi
call fcn.00413780
jmp case.default.0x40fe3e
push str.Patch_Failed_
call fcn.004172c0
mov dword [edi + 0x40], 0xc
mov edi, dword [edi + 0x44]
add esp, 4
cmp edi, esi
je case.default.0x40fe3e
push esi
push 0xc
jmp 0x40ff40
push str.Patch_Terminate_
call fcn.004172c0
mov dword [edi + 0x40], 0xd
mov edi, dword [edi + 0x44]
add esp, 4
cmp edi, esi
je case.default.0x40fe3e
push esi
push 0xd
push 0x8065
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x55c578
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51019e
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x551aa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413a68
push str.Save_Version_File_Failed_
xor esi, esi
call fcn.00417260
add esp, 4
xor eax, eax
jmp 0x413b0d
push 0xff
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
test byte [0x56c804], 1
jne 0x413aae
or dword [0x56c804], 1
mov dword [ebp - 4], 0
call fcn.00403cf0
push 0x510740
call fcn.0050c11f
add esp, 4
mov ecx, dword [0x56c7ec]
mov edx, dword [ebp + 8]
push ecx
push edx
push str.Version__d_r_nModule__d
lea eax, [ebp - 0x114]
push 0x100
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
lea eax, [ebp - 0x114]
add esp, 0x14
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413ae0
push 0
lea ecx, [ebp - 0x118]
push ecx
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050bf32
mov esp, ebp
pop ebp
ret 4
Function at 0x4145f0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50fb5b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x551aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
call ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414727
add edi, 0x1388
call ebx
cmp eax, edi
ja 0x41466b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x414656
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x414727
call ebx
cmp eax, edi
jbe 0x414640
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor ebx, ebx
mov dword [ebp - 4], ebx
test byte [0x56c888], 1
jne 0x41469b
or dword [0x56c888], 1
call fcn.0040bb80
push 0x5107b0
call fcn.0050c11f
add esp, 4
mov edi, dword [0x56c860]
lea eax, [ebp - 0x10]
add edi, 0x3f9
push eax
call fcn.00414580
mov byte [ebp - 4], 1
mov ecx, dword [eax]
push ecx
push esi
lea edx, [ebp - 0x14]
push 0x543450
push edx
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x14
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call dword [0x511ab0]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
push ecx
xor esi, esi
call fcn.00417260
mov edx, dword [ebp - 0x10]
add esp, 4
push ebx
push ebx
push edx
call dword [sym.imp.mfc100u.dll_AfxMessageBox]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414740
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1238
call fcn.0050c2d0
mov eax, dword [0x551aa8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x545744
call fcn.004172c0
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x1002]
push ecx
mov word [ebp - 0x1004], ax
call sub.MSVCR100.dll_memset
push 0x542e20
lea edx, [ebp - 0x1004]
push 0x543bd4
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x1004]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll__wcsupr_s]
add esp, 0x24
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x1238], eax
cmp edi, 0xffffffff
je 0x4148c0
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x802]
push edx
mov dword [ebp - 0x1230], 0x22c
mov word [ebp - 0x804], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4148b9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
push esi
mov ecx, dword [ebp - 0x1238]
cmp dword [ebp - 0x1228], ecx
je 0x4148a5
lea eax, [ebp - 0x120c]
push eax
lea ecx, [ebp - 0x804]
push 0x543bd4
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x804]
push 0x400
push edx
call dword [sym.imp.MSVCR100.dll__wcsupr_s]
lea eax, [ebp - 0x1004]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 0x1c
test eax, eax
je 0x4148a5
mov edx, dword [ebp - 0x1228]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4148a5
lea eax, [ebp - 0x1234]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x1234]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x1230]
push edx
push edi
call ebx
test eax, eax
jne 0x414810
pop esi
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop edi
call fcn.0050bf32
mov esp, ebp
pop ebp
ret
Function at 0x4148e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x551aa8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x414936
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf32
mov esp, ebp
pop ebp
ret
push esi
push edi
lea ecx, [ebp - 0x230]
push ecx
push ebx
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4149c0
mov edi, dword [sym.imp.MSVCR100.dll_tolower]
lea ebx, [ebx]
xor esi, esi
movzx edx, word [ebp + esi*2 - 0x20c]
push edx
call edi
mov word [ebp + esi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
add esp, 4
inc esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414982
sub eax, edx
sar eax, 1
cmp esi, eax
jbe 0x414962
lea eax, [ebp - 0x20c]
push 0x542ce0
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4149da
lea ecx, [ebp - 0x230]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x414960
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf32
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0050bf32
mov esp, ebp
pop ebp
ret
Function at 0x415d40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
test edi, edi
je 0x415deb
test ebx, ebx
je 0x415deb
push esi
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
je 0x415de1
push eax
call dword [sym.imp.mfc100u.dll_new__]
mov esi, eax
add esp, 4
test esi, esi
jne 0x415d83
mov eax, 0x8007000e
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push esi
push ecx
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x415dd7
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0x5458f8
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x415dd7
mov eax, dword [ebp - 8]
test eax, eax
je 0x415dd7
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
push esi
mov dword [ebx + 4], ecx
mov dword [ebx], edx
call dword [sym.imp.mfc100u.dll_delete__]
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.mfc100u.dll_delete__]
add esp, 4
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x80070057
mov esp, ebp
pop ebp
ret
Function at 0x417910
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50dd1b
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x551aa8]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x40
mov edi, ecx
lea ecx, [ebp - 0x46c]
push ebx
mov dword [ebp - 4], ebx
push ecx
mov dword [ebp - 0x478], eax
mov dword [ebp - 0x47c], ebx
mov dword [ebp - method.CMD5Checksum.virtual_0], vtable.CMD5Checksum.0
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x424], 0x67452301
mov dword [ebp - 0x420], 0xefcdab89
mov dword [ebp - 0x41c], 0x98badcfe
mov dword [ebp - 0x418], 0x10325476
mov byte [ebp - 4], 1
jmp 0x4179b0
mov edx, dword [edi]
mov edx, dword [edx + 0x40]
push 0x400
lea eax, [ebp - 0x414]
push eax
mov ecx, edi
call edx
cmp eax, ebx
jle 0x4179dd
lea ecx, [ebp - 0x414]
push ecx
lea esi, [ebp - 0x470]
call fcn.004182e0
jmp 0x4179b0
mov esi, dword [ebp - 0x478]
push esi
lea ecx, [ebp - 0x470]
call fcn.00418130
mov eax, esi
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.0050bf32
mov esp, ebp
pop ebp
ret
Function at 0x41c660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ece4
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x551aa8]
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 eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x4c], eax
cmp esi, ebx
je 0x41c803
mov dword [ebp - 0x48], vtable.CFileStream.0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call dword [0x546b20]
mov cx, word [0x5463d4]
mov dl, byte [0x5463d6]
lea eax, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], cx
mov byte [ebp - 0x1e], dl
call dword [sym.imp.MSVCR100.dll_fopen]
mov dword [ebp - 0x44], eax
mov eax, esi
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41c6f0
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.0040aa50
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x10]
lea ecx, [ebp - 0x48]
call eax
lea ecx, [ebp - 0x48]
test al, al
je 0x41c7fe
call fcn.00424e90
lea ecx, [ebp - 0x48]
call fcn.00424e90
inc eax
push eax
call dword [sym.imp.mfc100u.dll_new__]
add esp, 4
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.00424e90
inc eax
push eax
push ebx
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.00424e90
mov edi, eax
cmp dword [ebp - 0x44], ebx
jne 0x41c76e
push 0xf9
push 0x546aa8
push str.m_pStream
call dword [0x551f68]
add esp, 0xc
mov ecx, dword [ebp - 0x44]
push ecx
push edi
push 1
push esi
call dword [sym.imp.MSVCR100.dll_fread]
mov edi, dword [ebp - 0x4c]
mov ecx, dword [edi]
add esp, 0x10
cmp ecx, ebx
je 0x41c790
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
push 0x78
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x41c7ae
push eax
call fcn.0041e0f0
jmp 0x41c7b0
xor eax, eax
mov byte [ebp - 4], bl
push ebx
mov dword [edi], eax
mov edx, dword [eax]
push ebx
mov ecx, eax
mov eax, dword [edx + 8]
push esi
call eax
push esi
call dword [sym.imp.mfc100u.dll_delete__]
mov eax, dword [edi]
add esp, 4
cmp byte [eax + 0x44], bl
je 0x41c807
lea ecx, [eax + 0x4c]
mov edx, 0x10
cmp dword [ecx + 0x14], edx
jb 0x41c7e1
mov ecx, dword [ecx]
add eax, 0x20
cmp dword [eax + 0x14], edx
jb 0x41c7eb
mov eax, dword [eax]
push ecx
push eax
push str.Error_in__s:__s_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.00424cf0
xor al, al
jmp 0x41c811
lea ecx, [ebp - 0x48]
call fcn.00424cf0
mov al, 1
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.0050bf32
mov esp, ebp
pop ebp
ret 4
Function at 0x41d220
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e97e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x551aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TiXmlAttribute.0
mov eax, 0xf
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], ebx
mov byte [ecx], bl
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41d286
sub eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040aa50
mov eax, dword [ebp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41d2a0
mov ecx, dword [ebp + 0x10]
sub eax, edx
push eax
push ecx
lea ecx, [esi + 0x30]
call fcn.0040aa50
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x421c70
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x551aa8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea edx, [esi + 4]
lea edi, [ebp - 0x108]
call fcn.004250e0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x421cac
and eax, 0xfffffffe
push eax
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x421d05
mov ecx, dword [esi + 0x108]
mov edx, dword [esi + 0x140]
push 0
lea eax, [ebp - 0x10c]
push eax
push ecx
push edx
push edi
mov dword [ebp - 0x10c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x421d16
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf32
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop edi
call fcn.0050bf32
mov esp, ebp
pop ebp
ret
Function at 0x4220b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x2a4]
sub ecx, dword [esi + 0x2a0]
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x42217e
xor ecx, ecx
push ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
push edi
lea esp, [esp]
mov eax, dword [esi + 0x2a0]
cmp dword [ecx + eax + 0x100], 0
je 0x42216a
mov ecx, dword [ecx + eax + 0x100]
mov eax, ecx
xor ebx, ebx
shr eax, 2
test cl, 3
je 0x422114
inc eax
lea esi, [eax*4]
push esi
call dword [sym.imp.mfc100u.dll_new__]
push esi
mov edi, eax
push 0
push edi
call sub.MSVCR100.dll_memset
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
add esp, 0x10
xor ecx, ecx
test eax, eax
jle 0x422149
xor ebx, dword [edi + ecx*4]
inc ecx
cmp ecx, eax
jl 0x422141
push edi
call dword [sym.imp.mfc100u.dll_delete__]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2a0]
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x114], ebx
add esp, 4
mov esi, eax
mov ecx, edx
add ecx, 0x13c
dec dword [ebp - 8]
mov dword [ebp - 4], ecx
jne 0x4220f0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x422190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cmp dword [ebx + 8], 0xffffffff
push esi
push edi
mov byte [ebx + 0x11c], 0
je 0x42230e
cmp byte [ebx + 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
jne 0x42230e
mov ecx, dword [ebx + 0x2a4]
sub ecx, dword [ebx + 0x2a0]
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebx + 0x110], eax
je 0x42225b
cmp dword [ebx + 0x10c], 0xa
jg 0x422201
push ebx
call fcn.004220b0
mov byte [ebx + 0x118], 1
mov dword [ebx + 0x10c], 0xb
mov ecx, dword [ebx + 0x2a4]
sub ecx, dword [ebx + 0x2a0]
mov eax, 0x67b23a55
imul ecx
mov eax, dword [ebx + 8]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebx + 0x110], ecx
cmp eax, 0xffffffff
je 0x422238
push 0
push 0
push eax
xor edx, edx
call fcn.00421ff0
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x42225b
push 0
lea edx, [esp + 0x10]
push edx
push pe_nt_image_headers32
lea ecx, [ebx + 0xc]
push ecx
push eax
mov dword [esp + 0x20], 0
call edi
cmp byte [ebx + 4], 0
jne 0x42230e
cmp byte [ebx + 0x118], 0
je 0x42230e
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x42228b
mov edx, dword [ebx + 0x114]
push 0
push edx
push eax
xor edx, edx
call fcn.00421ff0
mov esi, dword [ebx + 8]
cmp esi, 0xffffffff
je 0x4222d0
mov ecx, dword [ebx + 0x2a4]
sub ecx, dword [ebx + 0x2a0]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebx + 0x2a0]
imul ecx, ecx, 0x13c
push ecx
push edx
push esi
mov dword [esp + 0x20], 0
call edi
mov eax, dword [ebx + 8]
mov byte [ebx + 0x118], 0
cmp eax, 0xffffffff
je 0x4222eb
push 0
push 0
push eax
xor edx, edx
call fcn.00421ff0
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x42230e
push 0
lea ecx, [esp + 0x10]
push ecx
push pe_nt_image_headers32
lea edx, [ebx + 0xc]
push edx
push eax
mov dword [esp + 0x20], 0
call edi
mov eax, dword [ebx + 0x2a0]
mov edx, dword [ebx + 0x2a4]
cmp eax, edx
je 0x422350
mov dword [esp + 0xc], eax
mov eax, edx
cmp edx, edx
je 0x422346
mov edi, dword [esp + 0xc]
add dword [esp + 0xc], 0x13c
mov esi, eax
add eax, 0x13c
mov ecx, 0x4f
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
jne 0x422328
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x2a4], eax
mov ecx, dword [ebx + 0x2b4]
mov esi, dword [ecx + 4]
cmp byte [esi + 0x21], 0
mov dword [esp + 0xc], esi
jne 0x42238c
mov edx, dword [esi + 8]
push edx
lea ecx, [ebx + 0x2b0]
call fcn.00423be0
mov eax, dword [esp + 0xc]
mov esi, dword [esi]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
cmp byte [esi + 0x21], 0
mov dword [esp + 0xc], esi
je 0x422363
mov eax, dword [ebx + 0x2b4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 0x2b4]
mov dword [eax], eax
mov eax, dword [ebx + 0x2b4]
mov dword [eax + 8], eax
mov dword [ebx + 0x2b8], 0
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x4223c6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 8], 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret