Function at 0x10004b5b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4ec
push ebx
push esi
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10002cf0
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
stosd dword es:[edi], eax
inc eax
mov esi, 0x400
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x58], eax
mov eax, dword [0x10007008]
push esi
push 0x10007500
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
call fcn.10002b98
push esi
push 0x10007040
call fcn.10002b98
push esi
mov edi, 0x10027780
push edi
call fcn.10002b98
mov eax, 0x10007500
push eax
lea ecx, [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
call fcn.100023b4
push esi
lea eax, [ebp - 0x4ec]
push eax
push ebx
push 0x10006478
push edi
call fcn.100029b8
add esp, 0x4c
cmp eax, ebx
mov dword [ebp - 0x5c], eax
je 0x10004c0a
mov dword [ebp - 0x44], 1
push esi
push 0x10007760
push ebx
push 0x10006440
push edi
call fcn.100029b8
add esp, 0x14
test eax, eax
je 0x10004c30
cmp word [0x10007760], 0x30
jne 0x10004c30
mov dword [ebp - 0x58], ebx
push esi
push 0x10007760
push ebx
push 0x10006604
push edi
call fcn.100029b8
add esp, 0x14
test eax, eax
je 0x10004c5a
cmp word [0x10007760], 0x31
jne 0x10004c5a
mov dword [ebp - 4], 1
push esi
push 0x10007760
push ebx
push 0x100065fc
push edi
call fcn.100029b8
add esp, 0x14
test eax, eax
je 0x10004c84
cmp word [0x10007760], 0x31
jne 0x10004c84
mov dword [ebp - 0x10], 1
push esi
push 0x10007760
push ebx
push 0x10006438
push edi
call fcn.100029b8
add esp, 0x14
test eax, eax
je 0x10004ce0
cmp word [0x10007760], 0x31
jne 0x10004ce0
cmp dword [0x10007028], ebx
mov dword [ebp - 0x3c], 1
jne 0x10004ce0
push ebx
push str.32770
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_FindWindowExA]
cmp eax, ebx
mov dword [0x10007028], eax
je 0x10004ce0
push 0x3ee
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [0x10007028], eax
push esi
push 0x10007760
push ebx
push 0x100065f4
push edi
call fcn.100029b8
add esp, 0x14
test eax, eax
je 0x10004d1b
mov ax, word [0x10007760]
cmp ax, 0x31
jne 0x10004d0e
mov dword [ebp - 0x28], 1
jmp 0x10004d1b
cmp ax, 0x32
jne 0x10004d1b
mov dword [ebp - 0x28], 2
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
mov esi, 0x10007500
push esi
push dword [ebp - 0x48]
call fcn.100038ad
add esp, 0x14
test eax, eax
jne 0x10004d92
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x10004d6d
push ebx
push ebx
push 3
push ebx
push ebx
push 4
push 0x10007040
call fcn.10003100
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x10004d68
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
jne 0x10004d8c
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push 0x10007040
call fcn.10003100
add esp, 0x1c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10004d9c
push 0x100063ec
jmp 0x1000532f
cmp dword [ebp - 4], ebx
jne 0x10004de5
cmp dword [ebp - 0x10], ebx
je 0x10004dc2
push ebx
lea eax, [ebp - 0x34]
push eax
push 2
push 0x100065f0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, str.Windows_Registry_Editor_Version_5.00_r_n
jmp 0x10004dc7
mov edx, str.REGEDIT4_r_n
push ebx
lea eax, [ebp - 0x34]
push eax
push edx
call fcn.1000188c
pop ecx
shl eax, 1
push eax
push edx
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.10002964
add esp, 0x18
push 0x250
push 1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1000114a
mov eax, dword [ebp - 0x2c]
push 0x124
add eax, 8
push esi
push eax
call fcn.10001982
add esp, 0x20
mov eax, dword [ebp - 0x20]
dec dword [ebp - 0x24]
cmp eax, ebx
mov dword [ebp - 0x2c], eax
je 0x100052fa
push 0x124
add eax, 8
push eax
push esi
call fcn.10001982
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.100010c8
add esp, 0x18
cmp dword [ebp - 0x3c], 1
jne 0x10004e59
push esi
push dword [0x10007028]
call fcn.100036f0
pop ecx
pop ecx
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push esi
push dword [ebp - 0x48]
call fcn.100038ad
add esp, 0x14
test eax, eax
jne 0x100052f1
cmp word [0x10007500], bx
jne 0x10004e97
lea eax, [ebp - 0x2a4]
push eax
push str._r_n__s__r_n
push edi
call fcn.10001eaf
add esp, 0xc
jmp 0x10004ee5
cmp dword [ebp - 0x28], ebx
je 0x10004ecf
cmp dword [ebp - 0x28], 1
jne 0x10004ea5
mov dword [ebp - 0x28], ebx
push esi
lea eax, [ebp - 0x2a4]
push eax
push str._r_n___s_s_
push edi
call fcn.10001eaf
push ebx
lea ecx, [ebp - 0x34]
push ecx
add eax, eax
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.10002964
add esp, 0x28
push esi
lea eax, [ebp - 0x2a4]
push eax
push 0x10006540
push edi
call fcn.10001eaf
add esp, 0x10
push ebx
lea ecx, [ebp - 0x34]
push ecx
add eax, eax
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.10002964
lea eax, [ebp - 0xc]
push eax
push 0x100477a0
lea eax, [ebp - 0x50]
push eax
push ebx
lea eax, [ebp - 0x30]
push eax
push 0x100072a0
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x30], 0x124
mov dword [ebp - 0xc], 0x10000
mov byte [0x100477a0], bl
call fcn.10002e37
add esp, 0x38
jmp 0x1000523d
inc dword [ebp - 0x14]
cmp dword [ebp - 0x44], ebx
je 0x10004f71
cmp dword [ebp - 0x44], 1
jne 0x10005204
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x5c]
jne 0x10005204
lea eax, [ebp - 0x4ec]
push eax
push 0x100072a0
call fcn.100018ac
test eax, eax
pop ecx
pop ecx
jne 0x10005204
cmp word [0x100072a0], bx
mov dword [ebp - 4], ebx
jne 0x10004f8c
push 0x1000653c
push edi
call fcn.100018fd
pop ecx
pop ecx
jmp 0x10004fab
push 0x100072a0
mov esi, 0x10007760
push esi
call fcn.100028ed
push esi
push str.__s_
push edi
call fcn.10001eaf
add esp, 0x14
mov esi, eax
mov eax, dword [ebp - 0x50]
cmp eax, 3
je 0x10005093
cmp eax, 2
je 0x10005093
cmp eax, 7
je 0x10005093
cmp eax, 5
je 0x10005093
cmp eax, ebx
je 0x10005093
cmp eax, 6
je 0x10005093
cmp eax, 8
je 0x10005093
cmp eax, 9
je 0x10005093
cmp eax, 0xa
je 0x10005093
cmp eax, 0xb
je 0x10005093
cmp eax, 1
jne 0x10005053
push 0x100477a0
push 0x10007760
call fcn.100028ed
push 0x10007760
lea eax, [esi*2 + 0x10027780]
push str.__s__r_n
push eax
call fcn.10001eaf
push ebx
add esi, eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [esi + esi]
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.10002964
add esp, 0x2c
jmp 0x10005204
cmp eax, 4
jne 0x10005204
push dword [0x100477a0]
lea eax, [esi*2 + 0x10027780]
push str.dword:_08x_r_n
push eax
call fcn.10001eaf
push ebx
add esi, eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [esi + esi]
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.10002964
add esp, 0x24
jmp 0x10005204
cmp dword [ebp - 0x10], ebx
jne 0x100050df
cmp eax, 2
je 0x100050a2
cmp eax, 7
jne 0x100050df
mov eax, dword [ebp - 0xc]
shr eax, 1
push eax
push 0x100477a0
push 0x10007760
call fcn.10001982
mov eax, dword [ebp - 0xc]
add esp, 0xc
push ebx
push ebx
push 0x10000
push 0x100477a0
shr eax, 1
push eax
push 0x10007760
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x50]
cmp eax, 3
jne 0x100050fa
lea eax, [esi*2 + 0x10027780]
push str.hex:
push eax
call fcn.10001eaf
pop ecx
pop ecx
jmp 0x10005110
push eax
lea eax, [esi*2 + 0x10027780]
push str.hex__x_:
push eax
call fcn.10001eaf
add esp, 0xc
add esi, eax
cmp dword [ebp - 0xc], ebx
jne 0x10005148
lea eax, [esi*2 + 0x10027780]
push 0x100064dc
push eax
call fcn.10001eaf
push ebx
add esi, eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [esi + esi]
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.10002964
add esp, 0x20
jmp 0x10005204
push 0x4f
pop eax
sub eax, esi
push 3
cdq
pop ecx
idiv ecx
cmp eax, ebx
mov dword [ebp - 0x54], eax
jg 0x10005161
mov dword [ebp - 0x54], 1
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jbe 0x10005204
mov dword [ebp - 0x40], ebx
jmp 0x100051a4
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x54]
jge 0x100051a9
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x100477a0]
push eax
lea eax, [esi*2 + 0x10027780]
push str._02x_
push eax
call fcn.10001eaf
add esi, eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
inc dword [ebp - 4]
inc dword [ebp - 0x40]
cmp dword [ebp - 4], eax
jb 0x10005171
cmp dword [ebp - 4], eax
jne 0x100051b6
dec esi
push 0x100064dc
jmp 0x100051bb
push 0x100064c8
lea eax, [esi*2 + 0x10027780]
push eax
call fcn.10001eaf
pop ecx
pop ecx
push ebx
add esi, eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [esi + esi]
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.10002964
push 0x100064c0
push edi
call fcn.100018fd
mov esi, eax
mov eax, dword [ebp - 0xc]
add esp, 0x20
cmp dword [ebp - 4], eax
mov dword [ebp - 0x54], 0x19
jb 0x1000516c
lea eax, [ebp - 0xc]
push eax
push 0x100477a0
lea eax, [ebp - 0x50]
push eax
push ebx
lea eax, [ebp - 0x30]
push eax
push 0x100072a0
push dword [ebp - 0x14]
mov dword [ebp - 0x30], 0x124
push dword [ebp - 0x18]
mov dword [ebp - 0xc], 0x10000
mov byte [0x100477a0], bl
call fcn.10002e37
add esp, 0x20
test eax, eax
je 0x10004f38
cmp dword [ebp - 0x58], ebx
je 0x100052e3
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
mov esi, 0x100577c0
push esi
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x38], 0x124
call fcn.10002d5d
add esp, 0x20
jmp 0x100052df
inc dword [ebp - 0x14]
push 0x250
push dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1000114a
add esp, 0x14
cmp word [0x10007500], bx
mov eax, 0x100064b0
jne 0x100052a6
mov eax, 0x100063e8
push esi
push eax
mov eax, dword [ebp - 0x2c]
push 0x10007500
add eax, 8
push str._s_s_s
push eax
call fcn.10001eaf
inc dword [ebp - 0x24]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x38], 0x124
push dword [ebp - 0x18]
call fcn.10002d5d
add esp, 0x34
test eax, eax
je 0x10005274
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x10007500
cmp dword [ebp - 0x24], ebx
jne 0x10004e12
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10001121
cmp dword [ebp - 0x3c], 1
pop ecx
pop ecx
jne 0x1000532a
push 0x100063e8
push dword [0x10007028]
call fcn.100036f0
pop ecx
pop ecx
push 0x100063f4
call fcn.10002c7b
pop ecx
pop edi
pop esi
pop ebx
leave
ret