Function at 0x4154b0
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
sub esp, 0x6c
mov eax, dword [0x492170]
xor edx, edx
push ebx
push ebp
mov ebp, dword [0x4a9808]
mov eax, dword [eax + 4]
mov ecx, eax
mov dword [esp + 0x24], ebp
push esi
push edi
test ecx, ecx
je 0x4158e5
mov ecx, dword [ecx]
inc edx
test ecx, ecx
jne 0x4154d5
test edx, edx
je 0x4158e5
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x4154e4
cmp ecx, 1
jle 0x4154fa
mov ecx, 0x144
jmp 0x4158ea
mov ecx, ebp
call fcn.00447220
mov ebx, eax
test ebx, ebx
je 0x4158ba
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x28]
push 0
push eax
push 4
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x50555245
push eax
push ebx
call ebp
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0
push eax
push 4
lea eax, [esp + 0x30]
push eax
push ebx
call ebp
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0x494d5031
push eax
push 4
lea eax, [esp + 0x30]
push eax
push ebx
call ebp
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0x50524f43
push eax
push 4
lea eax, [esp + 0x30]
push eax
push ebx
call ebp
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0
push eax
push 4
lea eax, [esp + 0x30]
push eax
push ebx
call ebp
mov eax, dword [0x492170]
mov ecx, dword [eax + 4]
mov dword [eax], ecx
mov edx, dword [ecx + 8]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4155a0
push 0
lea eax, [esp + 0x2c]
sub ecx, esi
push eax
push ecx
push edx
push ebx
call ebp
push 0
lea eax, [esp + 0x34]
mov byte [esp + 0x14], 0
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push ebx
call ebp
mov ecx, dword [0x49211c]
mov eax, dword [ecx + 0x20]
mov dword [eax + 0x1000], 0
mov ecx, dword [ecx + 0x20]
call fcn.00428870
mov esi, eax
test esi, esi
je 0x41585d
test dword [esi + 0x20], 0x40000000
je 0x415845
mov edx, dword [esi + 8]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415605
push 0
lea eax, [esp + 0x38]
sub ecx, edi
push eax
push ecx
push edx
push ebx
call ebp
push 0
lea eax, [esp + 0x3c]
mov byte [esp + 0x18], 0
push eax
push 1
lea eax, [esp + 0x20]
push eax
push ebx
call ebp
mov edx, dword [esi + 0x34]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415638
push 0
lea eax, [esp + 0x40]
sub ecx, edi
push eax
push ecx
push edx
push ebx
call ebp
push 0
lea eax, [esp + 0x44]
mov byte [esp + 0x18], 0
push eax
push 1
lea eax, [esp + 0x20]
push eax
push ebx
call ebp
mov edx, dword [esi + 0x10]
mov ecx, edx
lea edi, [ecx + 1]
jmp 0x415670
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415670
push 0
lea eax, [esp + 0x48]
sub ecx, edi
push eax
push ecx
push edx
push ebx
call ebp
push 0
lea eax, [esp + 0x4c]
mov byte [esp + 0x18], 0
push eax
push 1
lea eax, [esp + 0x20]
push eax
push ebx
call ebp
mov eax, dword [esi + 0x20]
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x50]
push eax
push 4
lea eax, [esp + 0x30]
push eax
push ebx
call ebp
mov eax, dword [esi + 0x24]
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x54]
push eax
push 4
lea eax, [esp + 0x30]
push eax
push ebx
call ebp
movzx eax, word [esi + 0x30]
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x58]
push eax
push 2
lea eax, [esp + 0x30]
push eax
push ebx
call ebp
movzx eax, word [esi + 0x38]
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x5c]
push eax
push 2
lea eax, [esp + 0x30]
push eax
push ebx
call ebp
movzx eax, word [esi + 0x42]
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x60]
push eax
push 2
lea eax, [esp + 0x30]
push eax
push ebx
call ebp
movzx eax, word [esi + 0x1c]
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x64]
push eax
push 2
lea eax, [esp + 0x30]
push eax
push ebx
call ebp
movzx eax, word [esi + 0x40]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x64]
push 0
push eax
push 2
lea eax, [esp + 0x34]
push eax
push ebx
call ebp
cmp dword [esi + 0x1c], 0
lea edx, [esi + 0x2c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], edx
jle 0x415792
xor edi, edi
nop
mov eax, dword [edx]
push 0
mov al, byte [edi + eax + 0xa]
mov byte [esp + 0x1c], al
lea eax, [esp + 0x6c]
push eax
push 1
lea eax, [esp + 0x24]
push eax
push ebx
call ebp
mov eax, dword [esp + 0x24]
lea edi, [edi + 0xc]
mov edx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esi + 0x1c]
jl 0x415760
jmp 0x415796
mov dword [esp + 0x20], edx
movzx eax, word [esi + 0x40]
xor ecx, ecx
xor edi, edi
cmp cx, ax
jge 0x415845
mov ecx, eax
lea esp, [esp]
movsx eax, cx
mov ecx, dword [esi + 0x1c]
sub ecx, eax
mov eax, dword [edx]
add ecx, edi
lea ecx, [ecx + ecx*2]
movsx eax, byte [eax + ecx*4 + 0xa]
sub eax, 8
je 0x4157f5
sub eax, 1
je 0x4157e4
sub eax, 3
je 0x4157e4
push 0
lea eax, [esp + 0x70]
push eax
mov eax, dword [esi + 0x3c]
push 8
lea eax, [eax + edi*8]
jmp 0x41582d
push 0
lea eax, [esp + 0x74]
push eax
mov eax, dword [esi + 0x3c]
push 8
lea eax, [eax + edi*8]
jmp 0x41582d
mov eax, dword [esi + 0x3c]
mov edx, dword [eax + edi*8]
mov eax, edx
lea ecx, [eax + 1]
mov dword [esp + 0x24], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415804
sub eax, dword [esp + 0x24]
lea ecx, [esp + 0x74]
push 0
push ecx
push eax
push edx
push ebx
call ebp
push 0
lea eax, [esp + 0x7c]
mov byte [esp + 0x20], 0
push eax
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call ebp
movzx eax, word [esi + 0x40]
inc edi
mov edx, dword [esp + 0x20]
mov ecx, eax
cwde
cmp edi, eax
jl 0x4157b0
mov ecx, dword [0x49211c]
mov ecx, dword [ecx + 0x20]
call fcn.00428870
mov esi, eax
test esi, esi
jne 0x4155f0
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push ebx
call edi
push 0
push 0
push 0x10
push ebx
mov esi, eax
call edi
lea eax, [esi - 0x14]
push 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x7c]
push eax
push 4
lea eax, [esp + 0x34]
push eax
push ebx
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x2c]
push str.Import_library__s_created._n
call fcn.00412ad0
xor eax, eax
add esp, 8
cmp dword [0x4afc48], eax
sete al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
push ebp
push 0x13c
mov dword [0x4a9ec4], 0xffffffff
call fcn.00412c30
xor eax, eax
add esp, 8
cmp dword [0x4afc48], eax
sete al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov ecx, 0x143
mov dword [0x4a9ec4], 0xffffffff
call fcn.00412bb0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret