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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fb8f2
mov eax, dword fs:[0]
push eax
sub esp, 0x518
mov eax, dword [0x1013f030]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x206
mov dword [ebp - 0x4c8], eax
xor edi, edi
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
mov dword [ebp - 0x4cc], ecx
mov word [ebp - 0x21c], dx
call fcn.10036e20
add esp, 0xc
push 4
call fcn.10031dbc
add esp, 4
cmp eax, edi
je 0x10006645
lea ecx, [ebp - 0x4c4]
mov dword [eax], ecx
jmp 0x10006647
xor eax, eax
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 0x4b4], edi
mov dword [ebp - 0x4b0], edi
mov dword [ebp - 0x4ac], edi
mov dword [ebp - 0x4a8], edi
mov dword [ebp - 4], edi
mov eax, 7
xor edx, edx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
mov dword [ebp - 0x23c], eax
xor eax, eax
mov dword [ebp - 0x240], edi
mov word [ebp - 0x250], ax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push str._PUBLIC_
call esi
mov ebx, 0x25
test eax, eax
je 0x100066c6
cmp word [ebp - 0x21c], bx
jne 0x100066ee
push 0x104
lea edx, [ebp - 0x21c]
push edx
push str._ALLUSERSPROFILE_
call esi
test eax, eax
je 0x10006d78
cmp word [ebp - 0x21c], bx
je 0x10006d78
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100066f7
sub eax, edx
sar eax, 1
cmp eax, 4
jae 0x10006784
mov esi, 8
cmp dword [ebp - 0x23c], esi
jb 0x10006727
mov eax, dword [ebp - 0x250]
push eax
call fcn.10031f94
add esp, 4
xor ecx, ecx
mov ebx, 7
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], edi
mov word [ebp - 0x250], cx
cmp dword [ebp - 0x220], esi
jb 0x10006758
mov edx, dword [ebp - 0x234]
push edx
call fcn.10031f94
add esp, 4
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], edi
xor eax, eax
lea esi, [ebp - 0x4c4]
mov word [ebp - 0x234], ax
call fcn.10008150
mov ecx, dword [ebp - 0x4c4]
push ecx
jmp 0x10006def
lea eax, [ebp - 0x216]
cmp word [ebp - 0x216], di
je 0x100067b1
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x100067ac
cmp cx, 0x2f
je 0x100067ac
add eax, 2
cmp word [eax], di
jne 0x10006793
jmp 0x100067b1
xor edx, edx
mov word [eax], dx
xor eax, eax
mov word [ebp - 0x4e8], ax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x4d4], 7
mov dword [ebp - 0x4d8], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100067d3
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x4ec]
call fcn.100081f0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4a8]
mov eax, dword [ebp - 0x4b0]
inc ecx
cmp eax, ecx
ja 0x1000681a
lea ebx, [ebp - 0x4c4]
call fcn.10008560
mov eax, dword [ebp - 0x4b0]
mov edx, dword [ebp - 0x4ac]
mov ecx, dword [ebp - 0x4a8]
lea esi, [ecx + edx]
cmp eax, esi
ja 0x1000682f
sub esi, eax
mov eax, dword [ebp - 0x4b4]
cmp dword [eax + esi*4], edi
jne 0x10006853
mov ecx, 1
call fcn.1001c5a0
mov ecx, dword [ebp - 0x4b4]
mov dword [ecx + esi*4], eax
mov edx, dword [ebp - 0x4ac]
mov eax, dword [ebp - 0x4b4]
mov ecx, dword [eax + esi*4]
mov byte [ebp - 4], 4
cmp ecx, edi
je 0x10006888
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], edi
push edi
lea eax, [ebp - 0x4ec]
mov word [ecx + 4], dx
call fcn.10007e10
mov edx, dword [ebp - 0x4ac]
inc dword [ebp - 0x4a8]
mov ebx, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x4d4], ebx
jb 0x100068b4
mov eax, dword [ebp - 0x4e8]
push eax
call fcn.10031f94
mov edx, dword [ebp - 0x4ac]
add esp, 4
cmp dword [ebp - 0x4a8], edi
je 0x10006d1d
jmp 0x100068c8
mov edx, dword [ebp - 0x4ac]
mov ecx, dword [ebp - 0x4a8]
add ecx, edx
mov esi, edx
cmp edx, ecx
jbe 0x100068db
call fcn.10031672
mov eax, dword [ebp - 0x4c4]
mov ebx, eax
test eax, eax
jne 0x10006909
call fcn.10031672
xor eax, eax
xor ecx, ecx
mov edx, dword [ecx + 0x1c]
add edx, dword [eax + 0x18]
cmp esi, edx
jb 0x100068ff
call fcn.10031672
xor edi, edi
cmp ebx, edi
je 0x1000690f
mov eax, dword [ebx]
jmp 0x10006911
mov eax, dword [eax]
mov ecx, eax
jmp 0x100068f0
xor eax, eax
cmp dword [eax + 0x14], esi
ja 0x10006923
cmp ebx, edi
je 0x1000691e
mov eax, dword [ebx]
jmp 0x10006920
xor eax, eax
sub esi, dword [eax + 0x14]
cmp ebx, edi
je 0x1000692b
mov eax, dword [ebx]
jmp 0x1000692d
xor eax, eax
mov eax, dword [eax + 0x10]
mov eax, dword [eax + esi*4]
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x238]
call fcn.10007e10
cmp dword [ebp - 0x4a8], edi
je 0x100069a4
mov ecx, dword [ebp - 0x4ac]
mov edx, dword [ebp - 0x4b4]
mov esi, dword [edx + ecx*4]
cmp dword [esi + 0x18], 8
jb 0x1000696a
mov eax, dword [esi + 4]
push eax
call fcn.10031f94
add esp, 4
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], ax
mov eax, dword [ebp - 0x4ac]
inc eax
mov dword [ebp - 0x4ac], eax
cmp dword [ebp - 0x4b0], eax
ja 0x10006995
mov dword [ebp - 0x4ac], edi
sub dword [ebp - 0x4a8], 1
jne 0x100069a4
mov dword [ebp - 0x4ac], edi
lea ecx, [ebp - 0x238]
push ecx
mov ebx, 0x10138600
lea esi, [ebp - 0x4ec]
call fcn.10008980
mov esi, 8
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x100069cd
mov eax, dword [eax + 4]
jmp 0x100069d0
add eax, 4
lea edx, [ebp - 0x4a4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x4d0], edi
cmp dword [ebp - 0x4d4], esi
jb 0x100069fd
mov eax, dword [ebp - 0x4e8]
push eax
call fcn.10031f94
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x4d4], 7
mov dword [ebp - 0x4d8], 0
mov word [ebp - 0x4e8], cx
cmp edi, 0xffffffff
je 0x10006d0b
lea edx, [ebp - 0x478]
push str.cert8.db
push edx
call fcn.10031c91
add esp, 8
test eax, eax
je 0x10006c3b
lea eax, [ebp - 0x478]
push str.opcacrt6.dat
push eax
call fcn.10031c91
add esp, 8
test eax, eax
je 0x10006c56
mov eax, dword [ebp - 0x4a4]
test al, 0x10
je 0x10006c20
test eax, 0x400
jne 0x10006c20
mov ecx, 0x10138554
lea eax, [ebp - 0x478]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10006aa6
test dx, dx
je 0x10006aa2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10006aa6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10006a80
xor eax, eax
jmp 0x10006aab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10006c20
mov ecx, 0x10138638
lea eax, [ebp - 0x478]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10006ae6
test dx, dx
je 0x10006ae2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10006ae6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10006ac0
xor eax, eax
jmp 0x10006aeb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10006c20
lea ecx, [ebp - 0x238]
push ecx
mov ebx, 0x10138550
lea esi, [ebp - 0x524]
call fcn.10008980
add esp, 4
push eax
lea ebx, [ebp - 0x478]
lea esi, [ebp - 0x508]
mov byte [ebp - 4], 7
call fcn.10008980
add esp, 4
mov edi, eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x4a8]
mov eax, dword [ebp - 0x4b0]
inc edx
cmp eax, edx
ja 0x10006b4e
lea ebx, [ebp - 0x4c4]
call fcn.10008560
mov eax, dword [ebp - 0x4b0]
mov ecx, dword [ebp - 0x4ac]
mov edx, dword [ebp - 0x4a8]
lea esi, [edx + ecx]
cmp eax, esi
ja 0x10006b63
sub esi, eax
mov eax, dword [ebp - 0x4b4]
xor ebx, ebx
cmp dword [eax + esi*4], ebx
jne 0x10006b83
push 0x1c
call fcn.10031dbc
mov ecx, dword [ebp - 0x4b4]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [ebp - 0x4b4]
mov ecx, dword [edx + esi*4]
mov byte [ebp - 4], 9
cmp ecx, ebx
je 0x10006bae
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push 0xffffffffffffffff
mov word [ecx + 4], ax
push ebx
mov eax, edi
call fcn.10007e10
inc dword [ebp - 0x4a8]
mov esi, 8
cmp dword [ebp - 0x4f0], esi
jb 0x10006bd0
mov ecx, dword [ebp - 0x504]
push ecx
call fcn.10031f94
add esp, 4
xor edx, edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x4f0], 7
mov dword [ebp - 0x4f4], ebx
mov word [ebp - 0x504], dx
cmp dword [ebp - 0x50c], esi
jb 0x10006c04
mov eax, dword [ebp - 0x520]
push eax
call fcn.10031f94
add esp, 4
mov ecx, dword [ebp - 0x4cc]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp - 0x4d0]
test eax, eax
je 0x10006cf1
lea edx, [ebp - 0x4a4]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10006a23
jmp 0x10006cf1
mov eax, dword [ebp - 0x4c8]
push eax
lea ecx, [ebp - 0x238]
push ecx
call fcn.10005a90
add esp, 8
jmp 0x10006cf1
lea edx, [ebp - 0x238]
push edx
mov ebx, 0x10138550
lea esi, [ebp - 0x524]
call fcn.10008980
add esp, 4
push eax
lea ebx, [ebp - 0x478]
lea esi, [ebp - 0x508]
mov byte [ebp - 4], 5
call fcn.10008980
add esp, 4
mov ecx, dword [ebp - 0x4c8]
push ecx
push eax
mov byte [ebp - 4], 6
call fcn.10005f60
mov esi, 8
add esp, 8
cmp dword [ebp - 0x4f0], esi
jb 0x10006cb9
mov edx, dword [ebp - 0x504]
push edx
call fcn.10031f94
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x4f0], 7
mov dword [ebp - 0x4f4], 0
mov word [ebp - 0x504], ax
cmp dword [ebp - 0x50c], esi
jb 0x10006cf1
mov ecx, dword [ebp - 0x520]
push ecx
call fcn.10031f94
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x4cc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10006d18
cmp dword [ebp - 0x4a8], 0
jne 0x100068c2
mov ebx, 8
cmp dword [ebp - 0x23c], ebx
jb 0x10006d34
mov eax, dword [ebp - 0x250]
push eax
call fcn.10031f94
add esp, 4
xor esi, esi
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], esi
mov word [ebp - 0x250], cx
cmp dword [ebp - 0x220], ebx
jb 0x10006d67
mov edx, dword [ebp - 0x234]
push edx
call fcn.10031f94
add esp, 4
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], esi
jmp 0x10006764
mov esi, 8
cmp dword [ebp - 0x23c], esi
jb 0x10006d94
mov edx, dword [ebp - 0x250]
push edx
call fcn.10031f94
add esp, 4
xor eax, eax
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], edi
mov word [ebp - 0x250], ax
cmp dword [ebp - 0x220], esi
jb 0x10006dc4
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.10031f94
add esp, 4
xor edx, edx
lea esi, [ebp - 0x4c4]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
call fcn.10008150
mov eax, dword [ebp - 0x4c4]
push eax
call fcn.10031f94
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 - 0x14]
xor ecx, ebp
call fcn.10030c80
mov esp, ebp
pop ebp
ret