Function at 0x10029560
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6b4
mov eax, dword [0x1008a00c]
xor eax, esp
mov dword [esp + 0x6b0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x400
mov dword [0x1009054c], eax
lea eax, [esp + 0x2bc]
push 0
push eax
mov dword [0x10090548], esi
call fcn.10008270
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
test esi, esi
je 0x100295d3
mov esi, dword [esi]
test esi, esi
je 0x100295d3
lea eax, [esi + 4]
push eax
lea eax, [esp + 0x2bc]
push eax
call edi
mov eax, dword [0x10090548]
mov ecx, esi
mov edx, dword [esi]
mov dword [eax], edx
call fcn.1002e780
mov dword [esp + 0x14], 0x736579
lea ecx, [esp + 0x14]
lea eax, [esp + 0x2b8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1002960c
test dl, dl
je 0x10029602
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1002960c
add eax, 2
add ecx, 2
test dl, dl
jne 0x100295e6
mov dword [esp + 0x24], 0
jmp 0x10029615
sbb ebx, ebx
or ebx, 1
mov dword [esp + 0x24], ebx
call fcn.10001640
mov ecx, eax
test ecx, ecx
je 0x10029ebd
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, 1
mov ecx, ebx
sub ecx, dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [esi - 8]
sub eax, 0x400
mov dword [esp + 0x34], esi
or eax, ecx
jge 0x10029658
push 0x400
lea ecx, [esp + 0x38]
call fcn.100037c0
mov esi, dword [esp + 0x34]
mov eax, dword [0x10090548]
test eax, eax
je 0x10029684
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10029684
add eax, 4
push eax
push esi
call edi
mov ecx, dword [esp + 0x18]
mov eax, dword [0x10090548]
mov edx, dword [ecx]
mov dword [eax], edx
call fcn.1002e780
push dword [esi - 8]
push esi
call fcn.10009a43
add esp, 8
test eax, eax
js 0x10029eb3
cmp eax, dword [esi - 8]
jg 0x10029eb3
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
call fcn.10001640
mov ecx, eax
test ecx, ecx
je 0x10029ebd
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, ebx
sub ecx, dword [eax + 0xc]
lea edi, [eax + 0x10]
mov eax, dword [edi - 8]
sub eax, 0x400
mov dword [esp + 0x14], edi
or eax, ecx
jge 0x100296e6
push 0x400
lea ecx, [esp + 0x18]
call fcn.100037c0
mov edi, dword [esp + 0x14]
mov eax, dword [0x10090548]
test eax, eax
je 0x10029716
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10029716
add eax, 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x18]
mov eax, dword [0x10090548]
mov edx, dword [ecx]
mov dword [eax], edx
call fcn.1002e780
push dword [edi - 8]
push edi
call fcn.10009a43
add esp, 8
test eax, eax
js 0x10029eb3
cmp eax, dword [edi - 8]
jg 0x10029eb3
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
call fcn.10001640
mov ecx, eax
test ecx, ecx
je 0x10029ebd
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, ebx
sub ecx, dword [eax + 0xc]
lea edi, [eax + 0x10]
mov eax, dword [edi - 8]
sub eax, 0x400
mov dword [esp + 0x18], edi
or eax, ecx
jge 0x10029778
push 0x400
lea ecx, [esp + 0x1c]
call fcn.100037c0
mov edi, dword [esp + 0x18]
mov eax, dword [0x10090548]
test eax, eax
je 0x100297a8
mov eax, dword [eax]
mov dword [esp + 0x28], eax
test eax, eax
je 0x100297a8
add eax, 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x28]
mov eax, dword [0x10090548]
mov edx, dword [ecx]
mov dword [eax], edx
call fcn.1002e780
push dword [edi - 8]
push edi
call fcn.10009a43
add esp, 8
test eax, eax
js 0x10029eb3
cmp eax, dword [edi - 8]
jg 0x10029eb3
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
call fcn.10001640
mov ecx, eax
test ecx, ecx
je 0x10029ebd
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, ebx
sub ecx, dword [eax + 0xc]
lea edi, [eax + 0x10]
mov eax, dword [edi - 8]
sub eax, 0x400
mov dword [esp + 0x28], edi
or eax, ecx
jge 0x1002980a
push 0x400
lea ecx, [esp + 0x2c]
call fcn.100037c0
mov edi, dword [esp + 0x28]
mov eax, dword [0x10090548]
test eax, eax
je 0x1002983a
mov eax, dword [eax]
mov dword [esp + 0x20], eax
test eax, eax
je 0x1002983a
add eax, 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x20]
mov eax, dword [0x10090548]
mov edx, dword [ecx]
mov dword [eax], edx
call fcn.1002e780
push dword [edi - 8]
push edi
call fcn.10009a43
add esp, 8
test eax, eax
js 0x10029eb3
cmp eax, dword [edi - 8]
jg 0x10029eb3
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
call fcn.10001640
mov ecx, eax
test ecx, ecx
je 0x10029ebd
mov eax, dword [ecx]
call dword [eax + 0xc]
sub ebx, dword [eax + 0xc]
lea edi, [eax + 0x10]
mov eax, dword [edi - 8]
sub eax, 0x400
mov dword [esp + 0x20], edi
or eax, ebx
jge 0x1002989a
push 0x400
lea ecx, [esp + 0x24]
call fcn.100037c0
mov edi, dword [esp + 0x20]
mov ebx, dword [0x10090548]
test ebx, ebx
je 0x100298c5
mov ebx, dword [ebx]
test ebx, ebx
je 0x100298c5
lea eax, [ebx + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x10090548]
mov ecx, ebx
mov edx, dword [ebx]
mov dword [eax], edx
call fcn.1002e780
push dword [edi - 8]
push edi
call fcn.10009a43
add esp, 8
test eax, eax
js 0x10029eb3
cmp eax, dword [edi - 8]
jg 0x10029eb3
mov dword [edi - 0xc], eax
push 0x104
mov byte [eax + edi], 0
lea eax, [esp + 0x1b4]
push 0
push eax
call fcn.10008270
add esp, 0xc
mov word [esp + 0x3d], 0x7465
lea eax, [esp + 0x74]
mov dword [esp + 0x4a], 0x41656d61
mov dword [esp + 0x46], 0x4e656c69
mov dword [esp + 0x40], 0x6c75646f
push eax
mov byte [esp + 0x52], 0
mov word [esp + 0x48], 0x4665
mov byte [esp + 0x43], 0x4d
mov byte [esp + 0x40], 0x47
mov word [esp + 0x7c], 0x6c65
mov dword [esp + 0x7f], 0x6c642e32
mov byte [esp + 0x7e], 0x33
mov word [esp + 0x83], 0x6c
mov dword [esp + 0x78], 0x6e72654b
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10029987
push 0x104
lea ecx, [esp + 0x1b4]
push ecx
push 0
call eax
lea ecx, [esp + 0x1b0]
call fcn.1002a810
cmp dword [esp + 0x24], 0
mov byte [esp + 0x1f], al
je 0x100299ba
test al, al
je 0x100299ba
mov edx, esi
lea ecx, [esp + 0x54]
call fcn.1002a0e0
cmp dword [esp + 0x64], 0
jne 0x10029aac
jmp 0x100299c5
mov edx, esi
lea ecx, [esp + 0x54]
call fcn.1002a0e0
call fcn.10001640
mov ecx, eax
test ecx, ecx
je 0x10029ebd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x6e], 0x73257325
push 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
push 0
lea eax, [esp + 0x14]
mov word [esp + 0x74], 0x7325
push eax
mov byte [esp + 0x7e], 0
call fcn.100027b0
push esi
push str.1a2a336e3f56418a9b12c115e692f648
push dword [eax]
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.10003ca0
mov edx, dword [esp + 0x20]
or ebx, 0xffffffff
add esp, 0x14
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10029a3e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esp + 0x10]
sub esp, 0x18
mov edx, esp
mov ecx, edi
lea eax, [ecx + 1]
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov dword [esp + 0x28], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10029a64
sub ecx, dword [esp + 0x28]
push ecx
push edi
mov ecx, edx
call fcn.10003410
lea ecx, [esp + 0x54]
call fcn.1002cc30
add esp, 0x18
lea ecx, [esp + 0x54]
push eax
call fcn.10002fc0
lea ecx, [esp + 0x3c]
call fcn.10002f70
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10029aac
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov word [esp + 0x8e], 0x4f53
mov word [esp + 0x87], 0x7774
mov dword [esp + 0x89], 0x5c657261
mov byte [esp + 0x90], 0
mov word [esp + 0x84], 0x6f53
mov byte [esp + 0x8d], 0x53
mov byte [esp + 0x86], 0x66
call fcn.10001640
mov ecx, eax
test ecx, ecx
je 0x10029ec7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [esp + 0x10]
push 0x10084418
mov dword [esp + 0x14], eax
call fcn.10003150
test al, al
jne 0x10029b2a
push 0
push 0x10084418
lea ecx, [esp + 0x18]
call fcn.10003830
push 0x104
lea eax, [esp + 0xac]
push 0
push eax
call fcn.10008270
add esp, 0xc
mov dword [esp + 0x78], 0x6b636954
lea eax, [esp + 0xa8]
mov dword [esp + 0x74], 0x5f4f5353
mov word [esp + 0x7d], 0x74
mov byte [esp + 0x7c], 0x65
push 0xffffffffffffffff
push str.1a2a336e3f56418a9b12c115e692f648
push 0x104
push eax
call fcn.1000cf3b
push 0xffffffffffffffff
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0xc0]
push 0x104
push eax
call fcn.10009fb9
lea eax, [esp + 0xc8]
push 0x104
push eax
call fcn.10009a43
mov ecx, eax
add esp, 0x28
xor ebx, ebx
mov edi, 1
test ecx, ecx
je 0x10029bea
lea esi, [esp + 0xa8]
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
add eax, edi
xor edx, edx
mov edi, 0xfff1
div edi
mov edi, edx
xor edx, edx
lea eax, [edi + ebx]
mov ebx, 0xfff1
div ebx
mov ebx, edx
sub ecx, 1
jne 0x10029bc0
mov esi, dword [esp + 0x34]
lea eax, [esp + 0xc]
shl ebx, 0x10
push eax
add ebx, edi
mov dword [esp + 0x71], 0x25783830
push ebx
lea eax, [esp + 0x74]
mov byte [esp + 0x74], 0x25
push eax
lea eax, [esp + 0x1c]
mov word [esp + 0x7d], 0x73
push eax
mov dword [esp + 0x1c], 0x74745f
call fcn.10003ca0
cmp dword [esp + 0x78], 0x10
lea eax, [esp + 0x64]
push dword [esp + 0x74]
cmovae eax, dword [esp + 0x68]
lea edx, [esp + 0x98]
push eax
push 1
push dword [esp + 0x2c]
mov ecx, 0x80000002
call fcn.1002de20
add esp, 0x20
call fcn.10001640
mov ecx, eax
test ecx, ecx
je 0x10029ebd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov word [esp + 0xa4], 0x73
cmp dword [esp + 0x68], 0x10
mov dword [esp + 0xc], eax
lea eax, [esp + 0x54]
cmovae eax, dword [esp + 0x54]
push eax
push dword [esp + 0x68]
movzx eax, byte [esp + 0x27]
push eax
xor eax, eax
mov word [esp + 0xa5], 0x255f
cmp dword [esp + 0x30], eax
mov word [esp + 0xad], 0x5f64
sete al
mov dword [esp + 0xa8], 0x5f64255f
push eax
lea eax, [esp + 0xa4]
mov dword [esp + 0xa5], 0x636e6974
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0xb7], 0x25
push eax
mov byte [esp + 0xb8], 0x25
mov byte [esp + 0xb3], 0x64
mov byte [esp + 0xac], 0x69
call fcn.10003ca0
add esp, 0x18
lea ecx, [esp + 0xc]
push 0x2d
push 0x2b
call fcn.10002d30
push 0x5f
push 0x2f
lea ecx, [esp + 0x14]
call fcn.10002d30
push 0x20
push 0x3d
lea ecx, [esp + 0x14]
call fcn.10002d30
lea ecx, [esp + 0xc]
call fcn.10002900
mov eax, dword [esp + 0xc]
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
call fcn.10003730
add eax, 0x10
add esi, 0xfffffff0
mov dword [edi], eax
mov edi, esp
push esi
call fcn.10003730
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.1002a560
lea eax, [esp + 0x74]
mov word [esp + 0x77], 0x74
push eax
lea edx, [esp + 0x1c]
mov word [esp + 0x78], 0x642e
lea ecx, [esp + 0x30]
mov byte [esp + 0x7a], 0x61
call fcn.10002620
add esp, 0xc
lea ecx, [esp + 0x20]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.10003320
lea ecx, [esp + 0x24]
call fcn.10002450
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp dword [esp + 0x68], 0x10
lea ecx, [esp + 0x54]
push 0
cmovae ecx, dword [esp + 0x58]
mov esi, eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push eax
push dword [esp + 0x6c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, esi
call fcn.1002e420
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x84]
mov dword [esp + 0x30], 0x646967
mov ecx, 0x80000002
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x38]
push 1
push eax
call fcn.1002de20
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x94]
mov word [esp + 0x3d], 0x69
mov ecx, 0x80000002
mov byte [esp + 0x3c], 0x63
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x44]
push 1
push eax
call fcn.1002de20
mov eax, dword [esp + 0x48]
lea edx, [esp + 0xa4]
mov ecx, 0x80000002
push dword [eax - 0xc]
push eax
push 1
push 0x10084448
call fcn.1002de20
add esp, 0x30
lea ecx, [esp + 0xc]
call fcn.10002450
lea ecx, [esp + 0x10]
call fcn.10002450
lea ecx, [esp + 0x54]
call fcn.10002f70
lea ecx, [esp + 0x20]
call fcn.10002450
lea ecx, [esp + 0x28]
call fcn.10002450
lea ecx, [esp + 0x18]
call fcn.10002450
lea ecx, [esp + 0x14]
call fcn.10002450
lea ecx, [esp + 0x34]
call fcn.10002450
mov ecx, dword [esp + 0x6bc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10006166
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10001300
push 0x80004005
call fcn.10001300
push 0x80004005
call fcn.10001300
int3