joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415030
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x43c014]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
call fcn.00415260
add esp, 4
lea edx, [esp + 0x94]
lea ecx, [esp + 0x18]
call fcn.00415320
xor esi, esi
lea edi, [esp + 0x70]
movzx eax, byte [esp + esi + 0x94]
push eax
push str._02x
push edi
call fcn.0040f830
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x4150b0
mov byte [esp + 0x90], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp byte [esp + 0x70], 0
jne 0x4150f4
xor ecx, ecx
jmp 0x415109
lea ecx, [esp + 0x70]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415100
sub ecx, edx
push ecx
lea eax, [esp + 0x74]
mov ecx, ebx
push eax
call fcn.00402b60
mov ecx, dword [esp + 0xa4]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00426682
mov esp, ebp
pop ebp
ret

Function at 0x415c30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429939
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x415d00
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov eax, dword [esi]
test eax, eax
je 0x415c9c
push eax
call dword [sym.imp.mfc140u.dll_operator]
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], ebx
test ebx, ebx
je 0x415d04
lea eax, [ebx + 2]
push eax
call dword [sym.imp.mfc140u.dll_operator_1]
mov ecx, dword [esi + 4]
add ecx, 2
mov dword [esi], eax
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x10]
push 0
push eax
push ebx
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
je 0x415d0b
mov eax, dword [esi]
test eax, eax
je 0x415cf3
push eax
call dword [sym.imp.mfc140u.dll_operator]
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
xor esi, esi
jmp 0x415d10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
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 4
Function at 0x415d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x415da5
mov edi, dword [ebx + 4]
test edi, edi
jne 0x415d82
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
mov esi, 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], edi
je 0x415d69
lea ecx, [ebp + 8]
xor esi, esi
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x417640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor eax, eax
mov dword [ebp - 0xc], 0
mov esi, ecx
mov dword [ebp - 8], esi
cmp ax, word [0x43cb78]
jne 0x4176a5
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41768e
push 0x43cb78
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
test eax, eax
jne 0x41769f
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0
mov ecx, esi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__11]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, 0x43cb78
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4176b0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x417702
movzx eax, word [ecx*2 + 0x43cb76]
cmp eax, 0x5c
jne 0x4176fd
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x417716
xor eax, eax
mov word [ecx + 0x43cb78], ax
mov ecx, esi
push 0x43cb78
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__11]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x2f
je 0x4176d1
push 0x43cb78
mov ecx, esi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__11]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00426c8b
int3

Function at 0x417720
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429da3
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x43c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21c], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x21c], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
jne 0x4177c6
lea eax, [eax*2 - 2]
cmp eax, 0x208
jae 0x4177f1
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426682
mov esp, ebp
pop ebp
ret
call fcn.00426c8b
int3
Function at 0x417a00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429e2c
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x43c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__11]
push 0x430648
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Append]
push ecx
mov ecx, esp
push str.kernel32.dll
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__11]
mov ecx, esi
call fcn.00417800
add esp, 4
lea ecx, [ebp - 0x21c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426682
mov esp, ebp
pop ebp
ret

Function at 0x41a0f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a0fb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
lea edi, [ebx + 0x60]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
lea ecx, [edi + 0x30]
mov dword [ebp - 0x10], edi
mov byte [edi + 0x10], 0
and dword [edi + 0x10], 0xfffffeff
mov dword [edi + 0x14], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0x30]
mov dword [edi], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push 0
push 0
push 1
push 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0x2710
push 0
push 0
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x20]
push eax
call esi
lea eax, [ebx + 0x44]
push eax
call esi
mov eax, ebx
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 0x41a210
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, ecx
mov eax, dword [edi + 0x40]
test eax, eax
je 0x41a24f
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [edi + 0x40]
call esi
mov dword [edi + 0x40], 0
mov ecx, edi
call fcn.0041a2b0
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [edi + 0x20]
push eax
call esi
lea eax, [edi + 0x44]
push eax
call esi
mov dword [edi], 0
lea ecx, [edi + 0x90]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [edi + 0x68]
call fcn.0040fcc0
lea ecx, [edi + 0x14]
pop edi
pop esi
jmp 0x41a6f0
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
test esi, esi
je 0x41a750
push ebx
mov ebx, dword [edi + 4]
cmp esi, ebx
je 0x41a71a
lea ecx, [esi + 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [esi + 8]
call fcn.0040fcc0
add esi, 0x38
cmp esi, ebx
jne 0x41a702
mov esi, dword [edi]
mov eax, 0x92492493
mov ecx, dword [edi + 8]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0041a920
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
pop ebx
pop edi
pop esi
ret
Function at 0x41eaf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
xor edi, edi
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x41ecf8
cmp dword [esi + 0x6af90], 3
jb 0x41eb68
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x41eba5
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x41eba5
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x41eb8f
mov dword [esi + 0x6afa0], eax
mov edx, ebx
mov ecx, esi
call fcn.0041e7c0
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, esi
cmp edi, 3
jb 0x41ec78
mov edx, dword [esi + 0x6af84]
lea eax, [edi - 3]
sub edx, dword [esi + 0x6af88]
push eax
call fcn.0041dfb0
sub dword [esi + 0x6af90], edi
add esp, 4
mov dword [ebp - 4], eax
cmp edi, dword [esi + 0x6af98]
ja 0x41ec3f
cmp dword [esi + 0x6af90], 3
jb 0x41ec3f
dec edi
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [esi + edx + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x41ebe3
mov eax, dword [ebp - 4]
jmp 0x41ec97
add dword [esi + 0x6af84], edi
xor edi, edi
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp - 4]
jmp 0x41ec9d
mov eax, dword [esi + 0x6af84]
xor edx, edx
movzx eax, byte [eax + esi + 0x1af70]
push eax
call fcn.0041dfb0
add esp, 4
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x41ecd8
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41ecb5
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x41ecb7
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0041de00
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x41eceb
mov ecx, esi
call fcn.0041e990
cmp dword [esi + 0x6af90], 0
jne 0x41eb13
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41ed0c
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x41ed0e
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.0041de00
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f9f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x41f9fb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x41fab7
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42e4f0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42e4f0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42e4f0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42e4f0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42e4f0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42e4f0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42e4f0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42e4f0]
sub edi, 1
jne 0x41fa10
pop edi
test esi, esi
je 0x41fada
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42e4f0]
sub esi, 1
jne 0x41fac0
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x41fcb0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x41fd8a
mov eax, dword [esi + 0x3c]
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x41fce5
cmp dword [esi + 0x40], ebx
jae 0x41fce5
push eax
call dword [sym.imp.mfc140u.dll_operator]
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x41fcfe
lea eax, [ebx + ebx]
push eax
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push dword [esi + 0x3c]
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
add esp, 0xc
mov dword [ebp + 8], edx
test ebx, ebx
je 0x41fd87
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
shr ecx, 8
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, dword [esi + 0x30]
or edi, 2
movzx eax, al
mov eax, dword [eax*4 + 0x42e4f0]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
shr edx, 8
xor edx, dword [eax*4 + 0x42e4f0]
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jb 0x41fd14
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41fdc8
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x41fdaf
pop edi
mov dword [esi + 0x14], 0x30000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
push ebx
add ecx, edx
push edi
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x41fdea
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
Function at 0x420050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x84]
test edx, edx
je 0x4200b3
mov ecx, dword [edi + 0x8c]
mov ebx, dword [edi + 0x88]
cmp ecx, ebx
jae 0x4200fb
mov esi, dword [ebp + 8]
lea eax, [ecx + edx]
sub ebx, ecx
cmp ebx, dword [ebp + 0xc]
cmova ebx, dword [ebp + 0xc]
push ebx
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x78]
mov edx, esi
add dword [edi + 0x8c], ebx
add dword [edi + 0x74], ebx
push ebx
call fcn.0041f9f0
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x4200f4
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4200fb
mov esi, dword [ebp - 4]
mov edx, ebx
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.0041f9f0
add esp, 4
mov dword [edi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x421a30
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov edi, ecx
mov dword [edi], vtable.ZUser.0
mov eax, dword [edi + 0x48]
test eax, eax
je 0x421a75
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x48], 0
lea ecx, [edi + 0xb0]
call fcn.0040fcc0
lea ecx, [edi + 0xa8]
call dword [sym.imp.UpDownManager.dll_public:_void___thiscall_ISynDownObj::destructor_void_]
lea ecx, [edi + 8]
call fcn.0041a210
mov dword [edi], vtable.CPackHandle.0
pop edi
pop esi
ret

Function at 0x421b20
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a6e0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
mov eax, dword [0x43c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x43cff8], 0
jne 0x421b99
push 0x43cff4
push 4
push 0x43cfb8
push 0x41a410
push 0
push 0
mov dword [0x43d050], 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [0x43cff8], eax
test eax, eax
je 0x421b99
push dword [0x43cfc8]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [0x43cff8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0041a030
mov esi, eax
mov dword [ebp - 4], 0
cmp dword [0x43cff8], 0
je 0x421bf3
push 0x43cfd8
mov dword [ebp + 8], 0x43cfd8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov ecx, 0x43cfcc
mov byte [ebp - 4], 1
call fcn.0041a660
push 0
push 1
push dword [0x43cfbc]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x43cfd8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x44]
call fcn.0040fcc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x421c20
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a710
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x43c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x43cff8], 0
jne 0x421c98
push 0x43cff4
push 4
push 0x43cfb8
push 0x41a410
push 0
push 0
mov dword [0x43d050], 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [0x43cff8], eax
test eax, eax
je 0x421c98
push dword [0x43cfc8]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [0x43cff8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [ebp - 0x38], 0
lea ecx, [ebp - 0x18]
and dword [ebp - 0x38], 0xfffffeff
mov dword [ebp - 0x34], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0x67
lea ecx, [ebp - 0x18]
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
mov dword [ebp - 4], 1
cmp dword [0x43cff8], 0
je 0x421d24
push 0x43cfd8
mov dword [ebp - 0x10], 0x43cfd8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
mov ecx, 0x43cfcc
call fcn.0041a660
push 0
push 1
push dword [0x43cfbc]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x43cfd8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x40]
call fcn.0040fcc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret