Function at 0x4013c0
Capabilities:
Extract resource via kernel32 functions
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4f8
mov eax, dword [0x43c08c]
xor eax, esp
mov dword [esp + 0x4f4], eax
mov eax, dword [ebp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x48]
push esi
mov dword [esp + 0x18], eax
lea eax, [ebp + 0x24]
push edi
mov edi, dword [ebp + 0x3c]
push eax
lea eax, [ebp + 0xc]
mov dword [esp + 0x1c], edi
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00402790
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x10], ecx
mov esi, dword [ecx + 0x14]
mov eax, esi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 4
jb 0x401447
lea eax, [edx + 4]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp esi, 0x10
jb 0x40142a
mov eax, dword [ecx]
push 4
lea esi, [eax + edx]
push 0x437d54
push esi
call fcn.0040ca60
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov byte [esi + 4], 0
jmp 0x40145e
push 4
push 0x437d54
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
push 4
call fcn.00402970
movups xmm0, xmmword [eax]
mov ecx, edi
movups xmmword [esp + 0x20], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [esp + 0x20]
push eax
movq qword [esp + 0x34], xmm0
call fcn.00402190
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x4014c4
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4014ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a48
push edx
push ecx
call fcn.0040afa0
add esp, 8
mov edx, dword [esp + 0x54]
cmp edx, 0x10
jb 0x4014fa
mov ecx, dword [esp + 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4014f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a48
push edx
push ecx
call fcn.0040afa0
add esp, 8
mov eax, dword [ebp + 0x40]
push 0x437d50
movzx eax, ax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x90], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0x67452301
mov dword [esp + 0xe0], 0xefcdab89
mov dword [esp + 0xe4], 0x98badcfe
mov dword [esp + 0xe8], 0x10325476
call sym.YZAgentService.exe_public:_void___thiscall_MD5::update_unsigned_char_const___unsigned_int_
lea ecx, [esp + 0x88]
call sym.YZAgentService.exe_public:_class_MD5____thiscall_MD5::finalize_void_
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x8c]
call sym.YZAgentService.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_MD5::hexdigest_void_
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0xf
mov byte [esp + 0x58], al
cmp dword [ebp + 8], eax
je 0x40174e
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x4015d8
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x94]
call sym.YZAgentService.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_MD5::CalculateFileMD5_char_const___int__
push eax
lea ecx, [esp + 0x5c]
call fcn.00402190
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x40162f
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401625
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a4d
push edx
push ecx
call fcn.0040afa0
add esp, 8
mov esi, dword [esp + 0x10]
cmp esi, 0xffffffff
je 0x40174e
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x5c]
call fcn.004020a0
test eax, eax
je 0x401952
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00402350
call fcn.00401d00
add esp, 0x18
test eax, eax
je 0x40168b
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x401673
mov eax, dword [edi]
push esi
push eax
push str._CheckAndOutputExeFile_
push 0x200
push dword [esp + 0x2c]
call fcn.00401090
add esp, 0x14
push 0x437d5c
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00402790
add esp, 0xc
lea ecx, [esp + 0x24]
mov edx, eax
call fcn.004028d0
add esp, 4
mov ecx, edi
push eax
call fcn.00402190
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x4016f1
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4016e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a52
push edx
push ecx
call fcn.0040afa0
add esp, 8
mov edx, dword [esp + 0x84]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xf
mov byte [esp + 0x20], 0
cmp edx, 0x10
jb 0x40173f
mov ecx, dword [esp + 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401735
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a52
push edx
push ecx
call fcn.0040afa0
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [eax], 1
jmp 0x40192a
mov eax, dword [esp + 0x14]
mov dword [eax], 1
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00402790
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x14], ecx
mov esi, dword [ecx + 0x14]
mov eax, esi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 4
jb 0x4017ae
lea eax, [edx + 4]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp esi, 0x10
jb 0x401791
mov eax, dword [ecx]
push 4
lea esi, [eax + edx]
push 0x437d5c
push esi
call fcn.0040ca60
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [esi + 4], 0
jmp 0x4017c5
push 4
push 0x437d5c
mov byte [esp + 0x1c], 0
push dword [esp + 0x1c]
push 4
call fcn.00402970
movups xmm0, xmmword [eax]
mov ecx, edi
movups xmmword [esp + 0x20], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [esp + 0x20]
push eax
movq qword [esp + 0x34], xmm0
call fcn.00402190
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x40182b
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401821
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a57
push edx
push ecx
call fcn.0040afa0
add esp, 8
mov edx, dword [esp + 0x84]
cmp edx, 0x10
jb 0x401864
mov ecx, dword [esp + 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40185a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a57
push edx
push ecx
call fcn.0040afa0
add esp, 8
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40186e
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x94]
call sym.YZAgentService.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_MD5::CalculateFileMD5_char_const___int__
mov esi, dword [esp + 0x10]
cmp esi, 0xffffffff
je 0x4018eb
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
call fcn.004020a0
test eax, eax
je 0x4018e7
sub esp, 0x18
mov dword [esp + 0x2c], 1
mov ecx, esp
push edi
call fcn.00402350
call fcn.00401d00
add esp, 0x18
test eax, eax
je 0x4018eb
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x4018c9
mov eax, dword [edi]
push esi
push eax
push str._CheckAndOutputExeFile_
push 0x200
push dword [esp + 0x2c]
call fcn.00401090
mov esi, dword [esp + 0x28]
add esp, 0x14
jmp 0x4018f0
xor esi, esi
jmp 0x4018f0
mov esi, 1
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x401926
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40191c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a5c
push edx
push ecx
call fcn.0040afa0
add esp, 8
test esi, esi
je 0x401952
cmp dword [edi + 0x14], 0x10
jb 0x401932
mov edi, dword [edi]
mov edx, dword [ebp + 0x40]
lea eax, [esp + 0xf8]
push ecx
push eax
push ecx
lea eax, [esp + 0x28]
mov ecx, edi
push eax
call fcn.004011c0
add esp, 0x10
mov esi, eax
jmp 0x401954
xor esi, esi
mov edx, dword [esp + 0x6c]
cmp edx, 0x10
jb 0x40198a
mov ecx, dword [esp + 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401980
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a5c
push edx
push ecx
call fcn.0040afa0
add esp, 8
mov edx, dword [esp + 0x54]
cmp edx, 0x10
jb 0x4019c0
mov ecx, dword [esp + 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4019b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a5c
push edx
push ecx
call fcn.0040afa0
add esp, 8
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x4019f0
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4019e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a5c
push edx
push ecx
call fcn.0040afa0
add esp, 8
mov edx, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
mov byte [ebp + 0xc], 0
cmp edx, 0x10
jb 0x401a32
mov ecx, dword [ebp + 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401a28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a5c
push edx
push ecx
call fcn.0040afa0
add esp, 8
mov ecx, dword [esp + 0x4fc]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040afb3
mov esp, ebp
pop ebp
ret
call fcn.0040fb59
call fcn.0040fb59
call fcn.0040fb59
call fcn.0040fb59
call fcn.0040fb59
int3