Function at 0x433230
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
sub esp, 0x15c
push ebx
mov ebx, dword [esp + 0x164]
push esi
cmp ebx, 0xffffffff
mov dword [esp + 0x4c], 0
mov esi, 1
je 0x433257
mov dword [esp + 0x4c], esi
jmp 0x43327b
lea eax, [esp + 0x168]
push eax
call fcn.00433050
add esp, 4
test eax, eax
jne 0x433274
pop esi
pop ebx
add esp, 0x15c
ret
mov ebx, dword [esp + 0x168]
push ebp
cmp ebx, 0xffffffff
push edi
mov dword [esp + 0x5c], esi
je 0x4343fb
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, 0x4510c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4510c0
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4343fb
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x30]
push 2
push eax
push ebx
mov dword [esp + 0x3c], 6
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4343fb
mov ecx, dword [0x45157c]
mov edx, dword [ecx + 0x4f4]
or ecx, 0xffffffff
mov eax, dword [edx + 0x34]
lea edx, [esp + 0x28]
mov edi, dword [eax + 0x80]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x10]
push eax
push ecx
push 2
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4343fb
mov edx, dword [0x45157c]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [edx + 0x4f4]
and ecx, 0xffff
push ecx
mov ecx, dword [eax + 0x34]
mov edx, dword [ecx + 0x80]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4343fb
mov ecx, dword [0x45157c]
lea eax, [esp + 0x10]
push 0
push eax
add ecx, 0x400
push 4
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4343fb
mov edx, dword [0x45157c]
push 0
mov eax, dword [edx + 0x18]
lea edx, [esp + 0x14]
push edx
push 2
mov cx, word [eax + 0x1f0]
lea eax, [esp + 0x34]
push eax
push ebx
mov dword [esp + 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4343fb
push 0x64
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [0x45157c]
mov esi, eax
add esp, 4
mov dl, byte [ecx + 0x26]
mov byte [esi], dl
mov eax, dword [0x45157c]
mov cl, byte [eax + 0x27]
mov byte [esi + 1], cl
mov edx, dword [0x45157c]
mov ax, word [edx + 0x28]
mov word [esi + 2], ax
mov ecx, dword [0x45157c]
mov edx, dword [ecx + 0xb0]
mov dword [esi + 4], edx
mov eax, dword [0x45157c]
mov ecx, dword [eax + 0xb4]
mov dword [esi + 8], ecx
mov edx, dword [0x45157c]
mov eax, dword [edx + 0xd0]
mov dword [esi + 0xc], eax
mov ecx, dword [0x45157c]
mov edx, dword [ecx + 0xd4]
mov dword [esi + 0x10], edx
mov eax, dword [0x45157c]
mov ecx, dword [eax + 0x110]
mov dword [esi + 0x14], ecx
mov edx, dword [0x45157c]
mov ax, word [edx + 0x14c]
mov word [esi + 0x18], ax
mov ecx, dword [0x45157c]
mov dx, word [ecx + 0x18c]
mov word [esi + 0x1a], dx
mov eax, dword [0x45157c]
mov ecx, dword [eax + 0x190]
mov dword [esi + 0x1c], ecx
mov edx, dword [0x45157c]
mov eax, dword [edx + 0x194]
mov dword [esi + 0x20], eax
mov ecx, dword [0x45157c]
mov edx, dword [ecx + 0x19c]
mov dword [esi + 0x24], edx
mov eax, dword [0x45157c]
mov ecx, dword [eax + 0x1a0]
mov dword [esi + 0x28], ecx
mov edx, dword [0x45157c]
mov eax, dword [edx + 0x1b4]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x45157c]
mov edx, dword [ecx + 0x1b8]
mov dword [esi + 0x30], edx
mov eax, dword [0x45157c]
mov ecx, dword [eax + 0x1bc]
mov dword [esi + 0x34], ecx
mov edx, dword [0x45157c]
mov eax, dword [edx + 0x1c0]
mov dword [esi + 0x38], eax
mov ecx, dword [0x45157c]
mov edx, dword [ecx + 0x1c4]
mov dword [esi + 0x3c], edx
mov eax, dword [0x45157c]
mov ecx, dword [eax + 0x1c8]
mov dword [esi + 0x40], ecx
mov edx, dword [0x45157c]
mov eax, dword [edx + 0x1cc]
mov dword [esi + 0x44], eax
mov ecx, dword [0x45157c]
mov edx, dword [ecx + 0x1d0]
mov dword [esi + 0x48], edx
mov eax, dword [0x45157c]
mov ecx, dword [eax + 0x4d8]
mov dword [esi + 0x4c], ecx
mov edx, dword [0x45157c]
mov eax, dword [edx + 0x4dc]
mov dword [esi + 0x50], eax
mov ecx, dword [0x45157c]
mov edx, dword [ecx + 0x4e0]
mov dword [esi + 0x54], edx
mov eax, dword [0x45157c]
mov ecx, dword [eax + 0x504]
mov dword [esi + 0x58], ecx
mov edx, dword [0x45157c]
push 0
mov eax, dword [edx + 0x508]
mov dword [esi + 0x5c], eax
mov ecx, dword [0x45157c]
lea eax, [esp + 0x14]
mov edx, dword [ecx + 0x50c]
push eax
push 0x64
push esi
push ebx
mov dword [esi + 0x60], edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4343fb
push esi
call dword [sym.imp.MSVCRT.dll_free]
push 0x2c
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [0x45157c]
mov esi, eax
add esp, 8
mov edx, dword [ecx + 0x1c]
push 0
mov eax, dword [edx + 0x1c]
mov dword [esi], eax
mov ecx, dword [0x45157c]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 0x20]
mov dword [esi + 4], eax
mov ecx, dword [0x45157c]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 0x24]
mov dword [esi + 8], eax
mov ecx, dword [0x45157c]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 0x28]
mov dword [esi + 0xc], eax
mov ecx, dword [0x45157c]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx]
mov dword [esi + 0x10], eax
mov ecx, dword [0x45157c]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 4]
mov dword [esi + 0x14], eax
mov ecx, dword [0x45157c]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 8]
mov dword [esi + 0x28], eax
mov ecx, dword [0x45157c]
lea eax, [esi + 0x18]
mov edx, dword [ecx + 0x1c]
add edx, 0x34
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x14]
push eax
push 0x2c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4343fb
push esi
call dword [sym.imp.MSVCRT.dll_free]
push 0x1c
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [0x45157c]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
xor edi, edi
mov eax, dword [ecx + 0x1c]
add esp, 8
mov dword [esp + 0x14], edi
cmp dword [eax + 0x2c], edi
jle 0x4336a2
mov eax, dword [eax + 0x30]
push 0
add eax, edi
mov edx, dword [eax + 4]
mov dword [esi], edx
mov ecx, dword [eax + 8]
mov dword [esi + 4], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 8], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 0x2c]
mov dword [esi + 0x10], edx
mov ecx, dword [eax + 0x30]
mov dword [esi + 0x14], ecx
mov edx, dword [eax + 0x34]
lea eax, [esp + 0x14]
mov dword [esi + 0x18], edx
push eax
push 0x1c
push esi
push ebx
call ebp
test eax, eax
je 0x4336a2
mov edx, dword [0x45157c]
mov ecx, dword [esp + 0x14]
inc ecx
add edi, 0x54
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x14], ecx
cmp ecx, dword [eax + 0x2c]
jl 0x433649
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [0x45157c]
add esp, 4
lea eax, [esp + 0x10]
mov edx, dword [ecx + 0x18]
push 0
push eax
push 0x10
mov eax, dword [edx + 0x25c]
push eax
push ebx
call ebp
test eax, eax
je 0x4343fb
mov edx, dword [0x45157c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov eax, dword [edx + 0x18]
push 0x10
mov ecx, dword [eax + 0x258]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4343fb
mov eax, dword [0x45157c]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, dword [eax + 0x18]
push 4
add ecx, 0x264
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4343fb
mov ecx, dword [0x45157c]
xor ebp, ebp
mov esi, 1
mov eax, dword [ecx + 0x18]
mov edx, dword [eax + 0x264]
test edx, edx
jle 0x43376c
xor edi, edi
mov eax, dword [eax + 0x268]
add eax, edi
push eax
push ebx
call fcn.00432f90
mov esi, eax
add esp, 8
test esi, esi
je 0x4343fb
mov ecx, dword [0x45157c]
inc ebp
add edi, 0x10
mov eax, dword [ecx + 0x18]
cmp ebp, dword [eax + 0x264]
jl 0x43373b
mov eax, dword [ecx + 0x18]
lea edx, [esp + 0x10]
push 0
push edx
add eax, 0x278
push 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4343fb
mov eax, dword [0x45157c]
mov dword [esp + 0x14], 0
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x278]
test edx, edx
jle 0x433838
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], 0
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x27c]
mov ebp, dword [eax + ecx*4]
test ebp, ebp
je 0x4337d6
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x28]
push 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
je 0x4343fb
mov eax, dword [esp + 0x20]
test ax, ax
jle 0x43381b
movsx edx, ax
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
je 0x4343fb
mov eax, dword [0x45157c]
mov ecx, dword [esp + 0x14]
inc ecx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x14], ecx
cmp ecx, dword [edx + 0x278]
jl 0x4337ab
test esi, esi
je 0x434400
mov dword [esp + 0x40], 0
call fcn.00423650
test eax, eax
je 0x433869
mov esi, 2
cmp word [eax + 2], si
jb 0x433860
inc dword [esp + 0x40]
call fcn.00423600
test eax, eax
jne 0x433856
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x48]
push 4
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4343fb
mov edx, dword [0x45157c]
xor esi, esi
mov eax, dword [edx + 0x3c]
mov dword [esp + 0x44], eax
mov ecx, dword [edx + 0x3c]
mov eax, dword [edx + 0x1278]
test ecx, ecx
jle 0x4338c9
cmp dword [eax], 0
jne 0x4338b1
mov ecx, dword [eax + 8]
add eax, 8
test ecx, ecx
je 0x4338a7
mov ecx, dword [eax]
add eax, 8
cmp word [ecx + 0x1a], 0
jne 0x4338c1
dec dword [esp + 0x44]
mov ecx, dword [edx + 0x3c]
inc esi
cmp esi, ecx
jl 0x4338a2
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x4c]
push 4
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4343fb
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x4c
call esi
push 0x5c
mov dword [esp + 0x60], eax
call esi
push 0x74
mov dword [esp + 0x70], eax
call esi
push 0x50
mov dword [esp + 0x48], eax
call esi
push 0x24
mov dword [esp + 0x50], eax
call esi
push 0x50
mov dword [esp + 0x48], eax
call esi
mov ecx, dword [0x45157c]
mov dword [esp + 0x3c], eax
xor eax, eax
add esp, 0x18
mov edx, dword [ecx + 0x1278]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
mov edx, dword [ecx + 0x3c]
cmp edx, eax
mov dword [esp + 0x50], eax
jle 0x434047
mov eax, dword [esp + 0x20]
cmp dword [eax], 0
jne 0x43395b
mov edx, dword [eax + 8]
add eax, 8
test edx, edx
je 0x43394d
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
xor edi, edi
mov ebp, dword [eax]
add eax, 8
mov dword [esp + 0x20], eax
cmp word [ebp + 0x1a], di
je 0x434033
mov esi, dword [esp + 0x58]
mov ax, word [ebp]
push edi
mov dword [esp + 0x30], 1
mov word [esi], ax
mov cx, word [ebp + 0x10]
mov word [esi + 2], cx
mov dx, word [ebp + 0x12]
mov word [esi + 4], dx
mov ax, word [ebp + 0x1a]
mov word [esi + 6], ax
mov ecx, dword [ebp + 0x48]
mov dword [esi + 8], ecx
mov edx, dword [ebp + 0x4c]
mov dword [esi + 0xc], edx
mov eax, dword [ebp + 0x50]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 0x54]
mov dword [esi + 0x14], ecx
mov edx, dword [ebp + 0x58]
mov dword [esi + 0x18], edx
mov eax, dword [ebp + 0x5c]
mov dword [esi + 0x1c], eax
mov ecx, dword [ebp + 0x60]
mov dword [esi + 0x20], ecx
mov edx, dword [ebp + 0x64]
lea eax, [ebp + 0x68]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 0x78]
mov dword [esi + 0x38], ecx
mov dx, word [ebp + 0x7c]
mov word [esi + 0x3c], dx
mov eax, dword [ebp + 0x84]
lea edx, [esp + 0x14]
mov dword [esi + 0x40], eax
mov ecx, dword [ebp + 0xb4]
push edx
push 0x4c
push esi
push ebx
mov dword [esi + 0x44], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434047
mov dword [esp + 0x48], edi
mov dword [esi + 0x48], edi
mov eax, dword [ebp + 0x2c]
cmp eax, edi
je 0x433a4a
cmp dword [eax], edi
je 0x433a3f
mov ecx, dword [eax + 4]
add eax, 4
cmp ecx, edi
jne 0x433a35
sub ax, word [ebp + 0x2c]
add eax, 4
mov dword [esp + 0x48], eax
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x50]
push 2
push ecx
push ebx
call esi
test eax, eax
je 0x434047
mov eax, dword [esp + 0x48]
cmp ax, di
jbe 0x433a8c
lea edx, [esp + 0x10]
push edi
and eax, 0xffff
push edx
push eax
mov eax, dword [ebp + 0x2c]
push eax
push ebx
call esi
test eax, eax
je 0x434047
test dword [ebp + 0x78], 0x230
je 0x433bd6
mov esi, dword [esp + 0x64]
mov ecx, dword [ebp + 0xc8]
mov dword [esi + 4], ecx
mov edx, dword [ebp + 0xcc]
mov dword [esi + 8], edx
mov eax, dword [ebp + 0xd8]
mov dword [esi + 0xc], eax
mov ecx, dword [ebp + 0xdc]
mov dword [esi + 0x10], ecx
mov edx, dword [ebp + 0xe0]
mov dword [esi + 0x14], edx
mov eax, dword [ebp + 0xe4]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp + 0xe8]
mov dword [esi + 0x1c], ecx
mov edx, dword [ebp + 0xec]
mov dword [esi + 0x20], edx
mov eax, dword [ebp + 0xf0]
mov dword [esi + 0x24], eax
mov ecx, dword [ebp + 0xf4]
mov dword [esi + 0x28], ecx
mov edx, dword [ebp + 0xf8]
mov dword [esi + 0x2c], edx
mov eax, dword [ebp + 0x104]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp + 0x108]
mov dword [esi + 0x34], ecx
mov edx, dword [ebp + 0x10c]
mov dword [esi + 0x38], edx
mov eax, dword [ebp + 0x110]
mov dword [esi + 0x3c], eax
mov ecx, dword [ebp + 0x114]
mov dword [esi + 0x40], ecx
mov edx, dword [ebp + 0x118]
mov dword [esi + 0x44], edx
mov eax, dword [ebp + 0x11c]
mov dword [esi + 0x48], eax
mov ecx, dword [ebp + 0x120]
mov dword [esi + 0x4c], ecx
mov edx, dword [ebp + 0x120]
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov eax, dword [ebp + 0x128]
cmp eax, edi
je 0x433b6d
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
inc eax
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0x12c]
cmp eax, edi
je 0x433b83
mov eax, dword [eax]
push eax
mov edx, dword [eax]
call dword [edx + 0x30]
inc eax
mov dword [esi + 0x58], eax
mov word [esi], di
mov eax, dword [ebp + 0xc0]
cmp eax, 0x421290
jne 0x433b98
mov word [esi], 1
mov word [esi + 2], di
mov eax, dword [ebp + 0xc4]
cmp eax, 0x421170
jne 0x433bb1
mov word [esi + 2], 1
jmp 0x433bbe
cmp eax, 0x421290
jne 0x433bbe
mov word [esi + 2], 2
lea eax, [esp + 0x10]
push edi
push eax
push 0x5c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434047
test byte [ebp + 0x78], 0x10
je 0x433ce6
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0x130]
lea esi, [ebp + 0x17e]
mov dword [eax], ecx
mov edx, dword [ebp + 0x134]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x140]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x14c]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 0x150]
mov dword [eax + 0x10], ecx
mov dx, word [ebp + 0x154]
mov word [eax + 0x14], dx
mov ecx, dword [ebp + 0x172]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp + 0x176]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp + 0x17a]
lea edx, [eax + 0x24]
mov dword [eax + 0x20], ecx
mov ecx, 0x14
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xcc]
cmp ecx, 5
je 0x433c91
cmp ecx, 9
je 0x433c75
cmp ecx, 0xd
jne 0x433ca2
mov ecx, dword [edx]
mov dword [eax + 0x20], 0xffffffff
test ecx, ecx
je 0x433ca2
mov edx, dword [eax + 0x28]
movsx ecx, word [edx]
mov dword [eax + 0x28], ecx
jmp 0x433ca2
mov ecx, dword [ebp + 0x1b2]
test ecx, ecx
je 0x433c88
movsx edx, word [ecx]
inc edx
mov dword [eax + 0x58], edx
jmp 0x433ca2
mov dword [eax + 0x58], 0
jmp 0x433ca2
mov ecx, dword [ebp + 0x1a2]
mov edx, dword [ebp + 0x1aa]
sub ecx, edx
mov dword [eax + 0x48], ecx
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x10]
push 0
push edx
push 0x74
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434047
cmp dword [ebp + 0xcc], 0xe
jne 0x433ce6
mov ecx, dword [ebp + 0xd0]
test ecx, ecx
je 0x433ce6
mov edx, dword [ecx]
push ebx
push 0x1010
push ebp
call dword [edx + 0x54]
test eax, eax
je 0x434047
test byte [ebp + 0x78], 0x20
je 0x433d56
mov eax, dword [ebp + 0xb8]
mov edx, dword [esp + 0x3c]
add eax, ebp
mov ecx, 0x14
mov esi, eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x14]
mov esi, dword [ebp + 0x44]
test ecx, ecx
je 0x433d1c
xor edi, edi
mov di, word [esi + 6]
sub ecx, edi
sub ecx, esi
mov dword [edx + 0x14], ecx
jmp 0x433d23
mov dword [edx + 0x14], 0
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x433d32
sub ecx, dword [eax + 0x14]
mov dword [edx + 0x20], ecx
jmp 0x433d39
mov dword [edx + 0x20], 0
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x10]
push 0
push eax
push 0x50
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434047
mov eax, dword [ebp + 0x78]
test ah, 2
je 0x433d8c
mov esi, dword [ebp + 0xbc]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x10]
push 0
push edx
add esi, ebp
mov ecx, 9
mov edi, eax
push 0x24
push eax
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434047
mov eax, dword [ebp + 0x78]
test ah, 1
je 0x433e7b
mov eax, dword [ebp + 0x80]
add eax, ebp
xor edi, edi
mov dword [esp + 0x60], eax
mov esi, dword [eax]
push esi
push ebx
call fcn.00432f90
add esp, 8
test eax, eax
je 0x434047
inc edi
add esi, 0x10
cmp edi, 0x1a
jl 0x433da8
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], 0
add eax, 0x86
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x4c], 0
mov esi, dword [ecx]
test esi, esi
je 0x433df9
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x4c], ecx
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x54]
push 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434047
mov ecx, dword [esp + 0x4c]
test cx, cx
jle 0x433e3a
movsx eax, cx
lea edx, [esp + 0x10]
push 0
push edx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434047
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
inc ecx
add esi, 4
cmp ecx, 0xa
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], esi
jl 0x433dd8
test eax, eax
je 0x434047
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x10]
push 0
push ecx
add edx, 0x68
push 4
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434047
mov ax, word [ebp + 0x18]
cmp ax, 3
je 0x433ea7
cmp ax, 4
je 0x433ea7
cmp ax, 5
je 0x433ea7
cmp ax, 6
je 0x433ea7
cmp ax, 7
je 0x433ea7
cmp ax, 9
jne 0x433f75
mov eax, dword [esp + 0x24]
mov ecx, 0x14
lea esi, [ebp + 0x1f2]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
cmp word [ebp + 0x18], 9
jne 0x433ec8
mov dword [eax + 4], 0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push 0
push eax
push 0x50
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434047
mov ax, word [ebp + 0x18]
cmp ax, 3
jne 0x433f5d
mov edi, dword [ebp + 0x22e]
mov dword [esp + 0x14], 0
test edi, edi
push 0
je 0x433f48
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push 2
not ecx
push eax
push ebx
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434047
movsx edx, word [esp + 0x14]
mov eax, dword [ebp + 0x22e]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x433f6d
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 2
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x433f6d
cmp ax, 9
jne 0x433f75
push ebx
push ebp
call fcn.00440830
add esp, 8
test eax, eax
je 0x434047
cmp word [ebp + 0x18], 8
jne 0x433f8b
push ebx
push ebp
call fcn.004371a0
test eax, eax
je 0x434047
mov ax, word [ebp + 0x18]
cmp ax, 0x20
jl 0x434025
mov edx, dword [0x451574]
push 0
movsx eax, ax
lea ecx, [eax + eax*8]
shl ecx, 3
sub ecx, eax
mov eax, dword [edx + 0xe0]
lea edx, [esp + 0x14]
mov ecx, dword [eax + ecx*2 - 0x1138]
push edx
lea eax, [esp + 0x70]
push 4
push eax
push ebx
mov dword [esp + 0x7c], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434047
movsx eax, word [ebp + 0x18]
mov edx, dword [0x45157c]
push 0
lea ecx, [eax + eax*8]
shl ecx, 3
sub ecx, eax
mov eax, dword [edx + 0x1d4]
lea edx, [esp + 0x14]
mov esi, dword [eax + ecx*2 - 0x115c]
push edx
test esi, esi
lea eax, [esp + 0x23]
push 1
setne cl
push eax
push ebx
mov byte [esp + 0x2f], cl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434047
mov al, byte [esp + 0x1b]
test al, al
je 0x434025
push ebx
push ebp
call esi
test eax, eax
je 0x434047
mov ecx, dword [0x45157c]
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x50]
mov edx, dword [ecx + 0x3c]
inc eax
cmp eax, edx
mov dword [esp + 0x50], eax
jl 0x433944
mov ecx, dword [esp + 0x58]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ecx
call esi
mov edx, dword [esp + 0x68]
push edx
call esi
mov eax, dword [esp + 0x40]
push eax
call esi
mov ecx, dword [esp + 0x48]
push ecx
call esi
mov edx, dword [esp + 0x40]
push edx
call esi
mov eax, dword [esp + 0x38]
push eax
call esi
mov eax, dword [esp + 0x44]
add esp, 0x18
test eax, eax
jne 0x4343fb
mov ecx, dword [0x45157c]
mov edx, dword [ecx + 0x3c]
add edx, edx
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
mov eax, dword [0x45157c]
add esp, 4
mov dword [esp + 0x24], 0
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx + 0x2c]
test edx, edx
jle 0x434164
mov edx, dword [esp + 0x24]
mov eax, dword [eax]
push 0
push edx
push eax
mov edi, ebp
call sub.MMFS2.dll_Ordinal_819
mov esi, eax
test esi, esi
je 0x434105
mov ecx, dword [0x45157c]
push esi
mov edx, dword [ecx]
push edx
call sub.MMFS2.dll_Ordinal_77
cmp word [eax + 0x1a], 0
je 0x4340ee
mov ax, word [eax]
mov word [edi], ax
add edi, 2
mov ecx, dword [0x45157c]
push 2
push esi
mov edx, dword [ecx]
push edx
call sub.MMFS2.dll_Ordinal_820
mov esi, eax
test esi, esi
jne 0x4340cf
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x38]
push 4
sub edi, ebp
push ecx
push ebx
mov dword [esp + 0x44], edi
call esi
test eax, eax
je 0x434156
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push ebp
push ebx
call esi
test eax, eax
je 0x434156
mov eax, dword [0x45157c]
mov ecx, dword [esp + 0x24]
inc ecx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x24], ecx
cmp ecx, dword [edx + 0x2c]
jl 0x4340b8
jmp 0x43415e
mov dword [esp + 0x2c], 1
mov esi, dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call esi
mov eax, dword [esp + 0x30]
add esp, 4
test eax, eax
jne 0x4343fb
mov esi, dword [0x45157c]
mov ecx, dword [esi + 0x58]
mov eax, ecx
cmp word [eax], 0xffff
je 0x434196
add eax, 0x76
cmp word [eax], 0xffff
jne 0x43418d
sub eax, ecx
mov ecx, eax
mov eax, 0x22b63cbf
imul ecx
mov ecx, dword [esi + 0x3c]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
add ecx, edx
lea edx, [ecx + ecx + 2]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
mov eax, dword [0x45157c]
add esp, 4
mov ecx, esi
mov edx, dword [eax + 0x58]
cmp word [edx], 0xffff
je 0x43421c
mov ax, word [edx + 6]
test ax, ax
jl 0x43420b
mov word [ecx], ax
mov ebp, dword [0x45157c]
and eax, 0xffff
add ecx, 2
mov ebp, dword [ebp + 0x1278]
mov eax, dword [ebp + eax*8]
test eax, eax
je 0x43420b
cmp word [eax + 0x1a], 0
jne 0x434202
sub ecx, 2
mov ax, word [eax + 0x16]
test ax, ax
jge 0x4341d9
add edx, 0x76
mov word [ecx], 0xffff
add ecx, 2
cmp word [edx], 0xffff
jne 0x4341d0
sub ecx, esi
push 0
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push 4
push edx
push ebx
call edi
test eax, eax
je 0x4343fb
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x434257
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push esi
push ebx
call edi
test eax, eax
je 0x4343fb
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov edx, dword [0x451574]
add esp, 4
mov eax, dword [edx + 0x284]
test eax, eax
je 0x4342b2
push eax
call sub.MSVCRT.dll__msize
add esp, 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push 0
push eax
push 4
push ecx
push ebx
call edi
test eax, eax
je 0x4343fb
mov ecx, dword [0x451574]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push 0
push edx
mov edx, dword [ecx + 0x284]
push eax
push edx
jmp 0x4342c8
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
mov dword [esp + 0x28], 0
push ecx
push ebx
call edi
test eax, eax
je 0x4343fb
mov edx, dword [0x451578]
mov edx, dword [edx + 0x80]
mov eax, edx
mov cx, word [eax]
test cx, cx
je 0x4342f6
movsx ecx, cx
sub eax, ecx
mov cx, word [eax]
test cx, cx
jne 0x4342e9
sub eax, edx
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], eax
push 0
push edx
lea eax, [esp + 0x24]
push 4
push eax
push ebx
call edi
test eax, eax
je 0x4343fb
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x4343f3
mov ecx, dword [0x451578]
mov edi, dword [ecx + 0x80]
cmp word [edi], 0
je 0x4343f3
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [edi + 4]
push 2
push eax
push ebx
call esi
test eax, eax
je 0x4343fb
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [edi + 6]
push 2
push edx
push ebx
call esi
test eax, eax
je 0x4343fb
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [edi + 8]
push 2
push ecx
push ebx
call esi
test eax, eax
je 0x4343fb
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [edi + 0xa]
push 2
push eax
push ebx
call esi
test eax, eax
je 0x4343fb
xor ecx, ecx
xor edx, edx
mov cl, byte [edi + 3]
mov dl, byte [edi + 2]
mov ebp, ecx
lea esi, [edi + 0xe]
add ebp, edx
test ebp, ebp
jle 0x4343e4
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esi + 0xa]
push 1
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4343fb
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esi + 0xb]
push 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4343fb
movsx ecx, word [esi]
add esi, ecx
dec ebp
test ebp, ebp
jg 0x4343aa
movsx edx, word [edi]
sub edi, edx
cmp word [edi], 0
jne 0x434337
mov dword [esp + 0x5c], 0
mov eax, dword [0x45157c]
mov ecx, dword [esp + 0x54]
pop edi
test ecx, ecx
pop ebp
jne 0x43441b
cmp ebx, 0xffffffff
je 0x43441b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x45157c]
mov esi, dword [esp + 0x54]
test esi, esi
je 0x434475
mov ecx, dword [0x451540]
lea eax, [esp + 0x64]
push 0x100
push eax
push 0x8c
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [0x45157c]
push 0x30
mov edx, dword [eax + 0x4f4]
mov ecx, dword [edx + 0x34]
mov edx, dword [ecx + 0x80]
lea ecx, [esp + 0x68]
push edx
mov edx, dword [eax + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x15c
ret
mov ecx, dword [eax + 0xd0]
mov dword [eax + 0x43c], ecx
xor eax, eax
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x15c
ret