Function at 0x477c40
Capabilities:
Enumerate pe sections
Read file via mapping

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x8c]
push ebx
push ecx
sub esp, 0xc8
mov dword [ebp - 0x74], 0x4776b4
mov dword [ebp - 0x70], 0x4797e4
mov dword [ebp - 0x6c], ebp
mov dword [ebp - 0x68], 0x4783d4
mov dword [ebp - 0x64], esp
mov dword [esp], eax
call fcn.00407283
call fcn.00406361
xor eax, eax
mov edx, 0xffffffff
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 0xa
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x88], 2
call fcn.00415dc0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xa0], eax
mov dword [esp], str.Data_got_successfully_n
mov dword [ebp - 0x88], 1
call fcn.004148b0
mov dword [ebp - 0x88], 3
lea ecx, [ebp - 0x58]
call fcn.00415b80
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xa0], eax
mov dword [esp], str.Data_decrypted_successfully_n
mov dword [ebp - 0x88], 1
call fcn.004148b0
mov dword [ebp - 0x90], 0
lea esi, [esi]
mov eax, dword [0x489020]
mov ecx, dword [ebp - 0x90]
movzx eax, byte [eax + ecx]
mov dword [esp], str._02X
mov dword [esp + 4], eax
mov dword [ebp - 0x88], 1
call fcn.00401380
add dword [ebp - 0x90], 1
mov ecx, dword [ebp - 0x90]
and ecx, 0xf
je 0x4782c0
cmp dword [ebp - 0x90], 0x14
jne 0x477d40
mov dword [esp], section..rdata
mov dword [ebp - 0x88], 1
call fcn.00401350
mov eax, dword [0x489020]
add eax, dword [eax + 0x3c]
mov edx, dword [eax + 0x50]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x54], eax
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x98], eax
mov dword [esp + 0x14], 0
mov dword [ebp - 0x90], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edx, dword [ebp - 0x90]
sub esp, 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x22
mov dword [ebp - 0x90], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 0x90]
sub esp, 0x14
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x58], eax
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x94]
sub esp, 4
test eax, eax
je 0x477e5e
xor edx, edx
div dword [ebp - 0x98]
test edx, edx
jne 0x47837d
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x94]
sub eax, dword [edx + 0x34]
mov edx, dword [edx + 0x54]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [0x489020]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0x50], eax
test edx, edx
je 0x477f70
lea eax, [edx - 1]
cmp eax, 2
jbe 0x478392
mov edi, dword [ebp - 0xb0]
mov esi, dword [ebp - 0x94]
lea ebx, [edi + 1]
mov ecx, esi
sub ecx, ebx
cmp ecx, 0xe
jbe 0x478392
cmp eax, 0xe
jbe 0x4783c5
mov ecx, edx
mov ebx, edi
and ecx, 0xfffffff0
lea eax, [ecx + edi]
jmp 0x477ee0
movdqu xmm0, xmmword [ebx]
add ebx, 0x10
add esi, 0x10
movups xmmword [esi - 0x10], xmm0
cmp eax, ebx
jne 0x477ee0
cmp edx, ecx
je 0x477f70
mov edi, edx
sub edi, ecx
lea ebx, [edi - 1]
cmp ebx, 2
jbe 0x477f3d
mov ebx, dword [ebp - 0x94]
movd xmm0, dword [eax]
mov esi, edi
shr esi, 2
add ebx, ecx
movd dword [ebx], xmm0
cmp esi, 1
je 0x477f31
movd xmm0, dword [eax + 4]
movd dword [ebx + 4], xmm0
cmp esi, 2
je 0x477f31
mov eax, dword [eax + 8]
mov dword [ebx + 8], eax
mov eax, edi
and eax, 0xfffffffc
add ecx, eax
and edi, 3
je 0x477f70
mov esi, dword [ebp - 0xb0]
mov ebx, dword [ebp - 0x94]
movzx eax, byte [esi + ecx]
mov byte [ebx + ecx], al
lea eax, [ecx + 1]
cmp eax, edx
jae 0x477f70
movzx eax, byte [esi + ecx + 1]
mov byte [ebx + ecx + 1], al
lea eax, [ecx + 2]
cmp eax, edx
jae 0x477f70
movzx eax, byte [esi + ecx + 2]
mov byte [ebx + ecx + 2], al
mov dword [ebp - 0x98], 0
mov edx, dword [ebp - 0xa4]
movzx eax, word [edx + 0x14]
cmp word [edx + 6], 0
lea eax, [edx + eax + 0x18]
mov dword [ebp - 0x9c], eax
je 0x4780dd
lea esi, [esi]
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x94]
mov edi, dword [ebp - 0xb0]
mov edx, dword [eax + 0xc]
add edi, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
add ecx, edx
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp - 0xa4]
add edx, eax
cmp dword [ecx + 0x50], edx
jb 0x4780dd
test eax, eax
je 0x4780b7
lea edx, [eax - 1]
cmp edx, 2
jbe 0x478348
mov esi, dword [ebp - 0x90]
lea ebx, [edi + 1]
mov ecx, esi
sub ecx, ebx
cmp ecx, 0xe
jbe 0x478348
cmp edx, 0xe
jbe 0x478372
mov ecx, eax
mov ebx, edi
sub esi, edi
and ecx, 0xfffffff0
lea edx, [edi + ecx]
lea esi, [esi]
lea esi, [esi]
movdqu xmm0, xmmword [ebx]
movups xmmword [esi + ebx], xmm0
add ebx, 0x10
cmp ebx, edx
jne 0x478020
cmp eax, ecx
je 0x4780b7
mov ebx, eax
sub ebx, ecx
lea esi, [ebx - 1]
cmp esi, 2
jbe 0x47808a
mov esi, ebx
movd xmm0, dword [edx]
shr esi, 2
mov dword [ebp - 0xa8], esi
mov esi, dword [ebp - 0x90]
add esi, ecx
cmp dword [ebp - 0xa8], 1
movd dword [esi], xmm0
je 0x478080
movd xmm0, dword [edx + 4]
cmp dword [ebp - 0xa8], 2
movd dword [esi + 4], xmm0
je 0x478080
mov edx, dword [edx + 8]
mov dword [esi + 8], edx
test bl, 3
je 0x4780b7
and ebx, 0xfffffffc
add ecx, ebx
movzx edx, byte [edi + ecx]
mov esi, dword [ebp - 0x90]
mov byte [esi + ecx], dl
lea edx, [ecx + 1]
cmp edx, eax
jae 0x4780b7
movzx edx, byte [ecx + edi + 1]
mov byte [ecx + esi + 1], dl
lea edx, [ecx + 2]
cmp edx, eax
jae 0x4780b7
movzx eax, byte [ecx + edi + 2]
mov byte [ecx + esi + 2], al
mov eax, dword [ebp - 0xa4]
add dword [ebp - 0x98], 1
mov esi, dword [ebp - 0x98]
add dword [ebp - 0x9c], 0x28
movzx eax, word [eax + 6]
cmp esi, eax
jl 0x477fa0
mov ebx, dword [ebp - 0xac]
test ebx, ebx
je 0x4781c2
mov eax, dword [ebp - 0xa4]
cmp dword [eax + 0xa4], 0
je 0x4781c2
mov edx, dword [ebp - 0x94]
add edx, dword [eax + 0xa0]
mov esi, dword [edx]
test esi, esi
je 0x4781c2
mov edi, dword [ebp - 0x38]
lea esi, [esi]
nop
mov ecx, dword [edx + 4]
mov eax, dword [ebp - 0x94]
lea ebx, [ecx - 8]
add eax, esi
shr ebx, 1
mov dword [ebp - 0x90], eax
lea eax, [edx + 8]
je 0x4781b3
mov dword [ebp - 0x98], edx
lea esi, [eax + ebx*2]
jmp 0x478180
movzx edx, word [eax]
mov ebx, edx
shr bx, 0xc
cmp bx, 3
jne 0x4781a6
mov ebx, dword [ebp - 0x90]
and edx, 0xfff
lea edi, [edx + ebx]
mov edx, dword [ebp - 0xac]
add dword [edi], edx
add eax, 2
cmp eax, esi
jne 0x478180
mov edx, dword [ebp - 0x98]
add edx, ecx
mov esi, dword [edx]
test esi, esi
jne 0x478120
mov dword [ebp - 0x38], edi
mov edx, dword [ebp - 0xa4]
mov ecx, dword [edx + 0x84]
lea eax, [edx + 0x80]
mov dword [ebp - 0x3c], eax
test ecx, ecx
je 0x4782f8
mov eax, dword [ebp - 0x94]
add eax, dword [edx + 0x80]
mov dword [ebp - 0xa0], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4782f8
lea esi, [esi]
mov edx, dword [ebp - 0x94]
add eax, edx
mov dword [esp], eax
mov dword [ebp - 0x88], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
sub esp, 4
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4782f8
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x94]
mov eax, dword [ecx + 0x10]
mov esi, dword [ecx]
add edx, eax
sub esi, eax
mov dword [ebp - 0x90], edx
mov edx, dword [edx]
mov dword [ebp - 0x9c], esi
test edx, edx
jne 0x4782a6
jmp 0x4782e0
mov esi, dword [ebp - 0x94]
lea eax, [esi + eax + 2]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x98]
mov dword [esp], eax
mov dword [ebp - 0x88], 1
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x4782e0
mov edi, dword [ebp - 0x90]
mov dword [edi], eax
mov eax, dword [edi + 4]
add edi, 4
mov dword [ebp - 0x90], edi
test eax, eax
je 0x4782e0
mov eax, dword [ebp - 0x90]
mov esi, dword [ebp - 0x9c]
mov eax, dword [eax + esi]
test eax, eax
jns 0x478260
movzx eax, ax
jmp 0x47826a
mov dword [ebp - 0x90], 0x10
mov dword [esp], section..rdata
call fcn.00401350
jmp 0x477d40
add dword [ebp - 0xa0], 0x14
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x478200
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x94]
add eax, dword [edx + 0x28]
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x48], eax
call eax
mov eax, dword [ebp - 0xa0]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x40], eax
call fcn.00417ac0
lea eax, [ebp - 0x8c]
mov dword [esp], eax
call fcn.004072d9
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov ecx, dword [ebp - 0x90]
add eax, edi
mov edx, edi
sub ecx, edi
lea esi, [esi]
lea esi, [esi]
nop
movzx ebx, byte [edx]
mov byte [ecx + edx], bl
add edx, 1
cmp eax, edx
jne 0x478360
jmp 0x4780b7
mov ebx, eax
xor ecx, ecx
mov edx, edi
jmp 0x478043
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
jmp 0x477e5e
mov eax, dword [ebp - 0xb0]
mov ebx, dword [ebp - 0x94]
mov ecx, eax
add edx, eax
lea esi, [esi]
lea esi, [esi]
movzx eax, byte [ecx]
add ecx, 1
add ebx, 1
mov byte [ebx - 1], al
cmp edx, ecx
jne 0x4783b0
jmp 0x477f70
mov eax, dword [ebp - 0xb0]
mov edi, edx
xor ecx, ecx
jmp 0x477f02