Function at 0x2002c55
Capabilities:
Resume thread
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb90
mov eax, dword [0x2012008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x103
push edi
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 0xb30], ebx
mov byte [ebp - 0x114], bl
call fcn.02006ed0
add esp, 0xc
push edi
lea eax, [ebp - 0x21b]
push ebx
push eax
mov byte [ebp - 0x21c], bl
call fcn.02006ed0
mov eax, dword [ebp + 8]
add esp, 0xc
lea esi, [edi + 1]
cmp eax, ebx
je 0x2002cd5
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x2002cb3
sub eax, ecx
je 0x2002cd5
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x21c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x2002cc9
jmp 0x2002ce4
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x201050c
lea ebx, [ebp - 0x114]
call fcn.020019c7
mov eax, ebx
push eax
call fcn.0200241f
pop ecx
test eax, eax
je 0x2002d0b
mov dword [ebp - 0xb30], 1
mov ecx, 0x2010500
lea ebx, [ebp - 0x114]
call fcn.020019c7
mov eax, ebx
push eax
call fcn.0200241f
pop ecx
test eax, eax
je 0x2002d32
mov dword [ebp - 0xb30], 1
mov ecx, 0x2010578
lea ebx, [ebp - 0x114]
call fcn.020019c7
mov eax, ebx
push eax
call fcn.0200241f
pop ecx
test eax, eax
je 0x2002d59
mov dword [ebp - 0xb30], 1
xor ebx, ebx
push esi
lea eax, [ebp - 0x533]
push ebx
push eax
mov byte [ebp - 0x534], bl
call fcn.02006ed0
add esp, 0xc
push esi
lea eax, [ebp - 0x63b]
push ebx
push eax
mov byte [ebp - 0x63c], bl
call fcn.02006ed0
add esp, 0xc
mov ecx, 0x201047c
lea ebx, [ebp - 0x534]
call fcn.020019c7
mov ecx, 0x20107c4
lea ebx, [ebp - 0x63c]
call fcn.020019c7
mov eax, ebx
push eax
lea eax, [ebp - 0x534]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x2003131
cmp dword [ebp - 0xb30], 0
je 0x2002de3
push 4
push 0
lea ecx, [ebp - 0x21c]
push ecx
call eax
jmp 0x2003131
mov ecx, 0x20107d0
lea ebx, [ebp - 0x114]
call fcn.020019c7
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x744]
push eax
call esi
lea eax, [ebp - 0x744]
push 0x5c
push eax
call fcn.020039f0
pop ecx
xor ebx, ebx
mov byte [eax], bl
pop ecx
lea eax, [ebp - 0x744]
push eax
lea eax, [ebp - 0x42c]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x20107e4
lea eax, [ebp - 0x42c]
push eax
call esi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x42c]
push eax
call esi
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xb30], eax
cmp eax, 0xffffffff
je 0x200312a
push edi
lea eax, [ebp - 0x323]
push ebx
push eax
mov byte [ebp - 0x324], bl
call fcn.02006ed0
add esp, 0xc
mov ecx, 0x20107e8
lea ebx, [ebp - 0xb2c]
call fcn.020019c7
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x2002ea6
mov esi, 0x20107f0
movsw word es:[edi], word [esi]
mov ecx, 0x20107f4
lea ebx, [ebp - 0x324]
movsb byte es:[edi], byte [esi]
call fcn.020019c7
lea eax, [ebp - 0x21c]
push eax
mov eax, ebx
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x114]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2002ee8
lea edi, [ebp - 0xb2c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x2002ef8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xb2c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x2002f17
mov esi, 0x20107f0
movsw word es:[edi], word [esi]
mov ecx, 0x2010800
lea ebx, [ebp - 0x324]
movsb byte es:[edi], byte [esi]
call fcn.020019c7
lea eax, [ebp - 0x21c]
push eax
mov eax, ebx
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x114]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2002f59
lea edi, [ebp - 0xb2c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x2002f69
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xb2c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x2002f88
mov esi, 0x20107f0
movsw word es:[edi], word [esi]
mov ecx, str._7_OR
lea ebx, [ebp - 0x324]
movsb byte es:[edi], byte [esi]
call fcn.020019c7
lea eax, [ebp - 0x42c]
push eax
mov eax, ebx
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x114]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2002fca
lea edi, [ebp - 0xb2c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x2002fda
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xb2c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x2002ff9
push 0
mov esi, 0x20107f0
lea eax, [ebp - 0xb34]
movsw word es:[edi], word [esi]
push eax
lea eax, [ebp - 0xb2c]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xb2c]
push eax
push dword [ebp - 0xb30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xb30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x44
pop edi
push edi
lea eax, [ebp - 0xb8c]
push 0
push eax
call fcn.02006ed0
xor eax, eax
add esp, 0xc
mov ecx, 0x201047c
lea ebx, [ebp - 0x114]
mov dword [ebp - 0xb8c], edi
mov dword [ebp - 0xb60], 1
mov word [ebp - 0xb5c], ax
call fcn.020019c7
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xb30], eax
test eax, eax
je 0x2003131
mov ecx, 0x201049c
call fcn.020019c7
mov eax, ebx
push eax
push dword [ebp - 0xb30]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
cmp eax, ecx
je 0x2003131
lea edx, [ebp - 0xb44]
push edx
lea edx, [ebp - 0xb8c]
push edx
push ecx
push ecx
push edi
push ecx
push ecx
push ecx
lea edx, [ebp - 0x42c]
push edx
push ecx
call eax
test eax, eax
je 0x2003128
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0xb40]
call edi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 0xb44]
call esi
push dword [ebp - 0xb40]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0xb40]
call esi
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.020035b0
leave
ret