Function at 0x457b50
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5635a8
mov eax, dword fs:[0]
push eax
sub esp, 0x50c
mov eax, dword [0x5cc5b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x518], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x514], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00505070
push 8
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x508], 0
mov dword [ebp - 0x504], 0
mov dword [ebp - 0x500], 0
mov dword [ebp - 0x4fc], 0
call fcn.00503ec5
add esp, 0x10
test eax, eax
jne 0x457bf0
call fcn.004d9845
mov dword [ebp - 0x50c], eax
lea ecx, [ebp - 0x50c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x50c]
mov dword [eax], ecx
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], eax
mov word [ebp - 0x2a8], ax
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push 0x104
push eax
push str._PUBLIC_
mov byte [ebp - 4], 2
call esi
test eax, eax
je 0x457c7a
mov ax, word [ebp - 0x218]
cmp ax, 0x25
jne 0x457ca6
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._ALLUSERSPROFILE_
call esi
test eax, eax
je 0x4582b4
mov ax, word [ebp - 0x218]
cmp ax, 0x25
je 0x4582b4
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x457cb0
sub edx, esi
sar edx, 1
cmp edx, 4
jb 0x4582b4
cmp word [ebp - 0x212], 0
lea ecx, [ebp - 0x212]
je 0x457cfc
movzx edx, word [ecx]
cmp edx, 0x5c
je 0x457cf0
cmp edx, 0x2f
je 0x457cf0
add ecx, 2
cmp word [ecx], 0
jne 0x457cd8
jmp 0x457cfc
xor eax, eax
mov word [ecx], ax
mov ax, word [ebp - 0x218]
xor ecx, ecx
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], cx
test ax, ax
je 0x457d36
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457d27
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00441d80
mov eax, dword [ebp - 0x4fc]
inc eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x504], eax
ja 0x457d69
push 1
lea ecx, [ebp - 0x50c]
call fcn.0045d3c0
mov edx, dword [ebp - 0x504]
mov ecx, dword [ebp - 0x500]
dec edx
mov eax, dword [ebp - 0x4fc]
and ecx, edx
add eax, ecx
mov dword [ebp - 0x500], ecx
and edx, eax
mov eax, dword [ebp - 0x508]
lea esi, [edx*4]
cmp dword [esi + eax], 0
jne 0x457db9
push 0x18
call fcn.00503ec5
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x457db0
call fcn.004d9845
mov eax, dword [ebp - 0x508]
mov dword [esi + eax], ecx
mov eax, dword [ebp - 0x508]
mov esi, dword [esi + eax]
test esi, esi
je 0x457e48
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x21c], 8
jae 0x457e04
mov eax, dword [ebp - 0x220]
inc eax
je 0x457e16
add eax, eax
push eax
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.00502230
add esp, 0xc
jmp 0x457e16
mov eax, dword [ebp - 0x230]
mov dword [esi], eax
mov dword [ebp - 0x230], 0
mov eax, dword [ebp - 0x220]
xor ecx, ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0x14], eax
mov eax, 7
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], cx
jmp 0x457e4e
mov eax, dword [ebp - 0x21c]
inc dword [ebp - 0x4fc]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x457e6b
push dword [ebp - 0x230]
call fcn.00503a69
add esp, 4
cmp dword [ebp - 0x4fc], 0
je 0x4582b4
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, edi
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x50c]
call fcn.0045d720
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x457e9c
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x248]
cmp ecx, eax
je 0x457ebd
push 0xffffffffffffffff
push 0
push eax
call fcn.00442140
mov ecx, dword [ebp - 0x504]
mov eax, dword [ebp - 0x508]
dec ecx
and ecx, dword [ebp - 0x500]
mov esi, dword [eax + ecx*4]
cmp dword [esi + 0x14], 8
jb 0x457ee3
push dword [esi]
call fcn.00503a69
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
dec dword [ebp - 0x4fc]
jne 0x457f06
mov dword [ebp - 0x500], eax
jmp 0x457f0c
inc dword [ebp - 0x500]
push 0x568bd4
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00442cb0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x457f2f
mov eax, dword [eax]
lea ecx, [ebp - 0x4f8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp dword [ebp - 0x264], 8
mov ebx, eax
mov dword [ebp - 0x510], ebx
jb 0x457f5c
push dword [ebp - 0x278]
call fcn.00503a69
add esp, 4
xor eax, eax
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
cmp ebx, 0xffffffff
je 0x4582a7
lea eax, [ebp - 0x4cc]
push str.cert8.db
push eax
call fcn.00505c77
add esp, 8
test eax, eax
je 0x45827d
lea eax, [ebp - 0x4cc]
push str.opcacrt6.dat
push eax
call fcn.00505c77
add esp, 8
test eax, eax
je 0x4581e9
mov eax, dword [ebp - 0x4f8]
test al, 0x10
je 0x4581ce
test eax, 0x400
jne 0x4581ce
mov ecx, 0x5688cc
lea eax, [ebp - 0x4cc]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x458006
test dx, dx
je 0x458002
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x458006
add eax, 4
add ecx, 4
test dx, dx
jne 0x457fe0
xor eax, eax
jmp 0x45800b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4581ce
mov eax, 0x5688d0
lea ecx, [ebp - 0x4cc]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x458046
test dx, dx
je 0x458042
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x458046
add ecx, 4
add eax, 4
test dx, dx
jne 0x458020
xor eax, eax
jmp 0x45804b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4581ce
push 0x5b75b4
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.00442cb0
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0044d330
add esp, 0x18
mov edi, eax
mov ecx, dword [ebp - 0x4fc]
mov edx, dword [ebp - 0x504]
inc ecx
mov byte [ebp - 4], 7
cmp edx, ecx
ja 0x4580b0
push 1
lea ecx, [ebp - 0x50c]
call fcn.0045d3c0
mov edx, dword [ebp - 0x504]
mov ecx, dword [ebp - 0x500]
dec edx
mov eax, dword [ebp - 0x4fc]
and ecx, edx
mov esi, dword [ebp - 0x508]
add eax, ecx
and edx, eax
mov dword [ebp - 0x500], ecx
lea ebx, [edx*4]
cmp dword [ebx + esi], 0
jne 0x4580fd
push 0x18
call fcn.00503ec5
add esp, 4
test eax, eax
je 0x457beb
mov ecx, dword [ebp - 0x508]
mov dword [ebx + ecx], eax
mov esi, dword [ebp - 0x508]
mov esi, dword [ebx + esi]
test esi, esi
je 0x45815b
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [edi + 0x14], 8
jae 0x458132
mov eax, dword [edi + 0x10]
inc eax
je 0x45813c
add eax, eax
push eax
push edi
push esi
call fcn.00502230
add esp, 0xc
jmp 0x45813c
mov eax, dword [edi]
mov dword [esi], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
inc dword [ebp - 0x4fc]
cmp dword [ebp - 0x24c], 8
jb 0x458178
push dword [ebp - 0x260]
call fcn.00503a69
add esp, 4
xor eax, eax
mov dword [ebp - 0x24c], 7
cmp dword [ebp - 0x27c], 8
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
mov byte [ebp - 4], 2
jb 0x4581b0
push dword [ebp - 0x290]
call fcn.00503a69
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [ebp - 0x514]
call edi
mov ebx, dword [ebp - 0x510]
test eax, eax
je 0x458292
lea eax, [ebp - 0x4f8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x457f82
jmp 0x458292
push 0x5b75b4
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.00442cb0
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0044d330
push dword [ebp - 0x518]
mov byte [ebp - 4], 5
push eax
call fcn.00459450
add esp, 0x20
cmp dword [ebp - 0x24c], 8
jb 0x458243
push dword [ebp - 0x260]
call fcn.00503a69
add esp, 4
xor eax, eax
mov dword [ebp - 0x24c], 7
cmp dword [ebp - 0x27c], 8
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
mov byte [ebp - 4], 2
jb 0x458292
push dword [ebp - 0x290]
call fcn.00503a69
add esp, 4
jmp 0x458292
push dword [ebp - 0x518]
lea eax, [ebp - 0x248]
push eax
call fcn.004577e0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp - 0x514]
call edi
test eax, eax
je 0x4582b4
cmp dword [ebp - 0x4fc], 0
jne 0x457e80
cmp dword [ebp - 0x234], 8
jb 0x4582cb
push dword [ebp - 0x248]
call fcn.00503a69
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
lea ecx, [ebp - 0x50c]
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.00457670
push dword [ebp - 0x50c]
call fcn.00503a69
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00501f35
mov esp, ebp
pop ebp
ret