Function at 0x10006fc0
Capabilities:
Enumerate files on windows
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100faa5f
mov eax, dword fs:[0]
push eax
sub esp, 0x5b8
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 - 0x500], eax
xor ebx, ebx
lea eax, [ebp - 0x21a]
xor edx, edx
push ebx
push eax
mov dword [ebp - 0x520], ecx
mov word [ebp - 0x21c], dx
call fcn.10036e20
add esp, 0xc
push 4
call fcn.10031dbc
add esp, 4
cmp eax, ebx
je 0x10007035
lea ecx, [ebp - 0x4fc]
mov dword [eax], ecx
jmp 0x10007037
xor eax, eax
mov dword [ebp - 0x4fc], eax
mov dword [ebp - 0x4ec], ebx
mov dword [ebp - 0x4e8], ebx
mov dword [ebp - 0x4e4], ebx
mov dword [ebp - 0x4e0], ebx
mov dword [ebp - 4], ebx
mov esi, 7
xor edx, edx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
xor eax, eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push str._PROGRAMFILES_
call edi
test eax, eax
je 0x100071dd
cmp word [ebp - 0x21c], 0x25
je 0x100071dd
lea eax, [ebp - 0x216]
cmp word [ebp - 0x216], bx
je 0x100070ee
lea esp, [esp]
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x100070e9
cmp cx, 0x2f
je 0x100070e9
add eax, 2
cmp word [eax], bx
jne 0x100070d0
jmp 0x100070ee
xor edx, edx
mov word [eax], dx
xor eax, eax
mov word [ebp - 0x518], ax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x504], esi
mov dword [ebp - 0x508], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10007110
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x51c]
call fcn.100081f0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4e0]
mov eax, dword [ebp - 0x4e8]
inc ecx
cmp eax, ecx
ja 0x10007159
lea ebx, [ebp - 0x4fc]
call fcn.10008560
mov eax, dword [ebp - 0x4e8]
xor ebx, ebx
mov edx, dword [ebp - 0x4e4]
mov ecx, dword [ebp - 0x4e0]
lea esi, [ecx + edx]
cmp eax, esi
ja 0x1000716e
sub esi, eax
mov edx, dword [ebp - 0x4ec]
cmp dword [edx + esi*4], ebx
jne 0x1000718c
mov ecx, 1
call fcn.1001c5a0
mov ecx, dword [ebp - 0x4ec]
mov dword [ecx + esi*4], eax
mov edx, dword [ebp - 0x4ec]
mov ecx, dword [edx + esi*4]
mov byte [ebp - 4], 4
cmp ecx, ebx
je 0x100071bb
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push 0xffffffffffffffff
mov word [ecx + 4], ax
push ebx
lea eax, [ebp - 0x51c]
call fcn.10007e10
inc dword [ebp - 0x4e0]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x504], 8
jb 0x100071dd
mov ecx, dword [ebp - 0x518]
push ecx
call fcn.10031f94
add esp, 4
push 0x104
lea edx, [ebp - 0x21c]
push edx
push str._PROGRAMFILES_x86__
call edi
test eax, eax
je 0x10007320
cmp word [ebp - 0x21c], 0x25
je 0x10007320
lea eax, [ebp - 0x216]
cmp word [ebp - 0x216], bx
je 0x10007233
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x1000722e
cmp cx, 0x2f
je 0x1000722e
add eax, 2
cmp word [eax], bx
jne 0x10007215
jmp 0x10007233
xor ecx, ecx
mov word [eax], cx
xor edx, edx
lea eax, [ebp - 0x21c]
mov word [ebp - 0x518], dx
mov dword [ebp - 0x504], 7
mov dword [ebp - 0x508], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10007255
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x51c]
call fcn.100081f0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x4e0]
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x4e8]
cmp eax, ecx
ja 0x100072a0
lea ebx, [ebp - 0x4fc]
call fcn.10008560
mov eax, dword [ebp - 0x4e8]
xor ebx, ebx
mov edx, dword [ebp - 0x4e4]
mov ecx, dword [ebp - 0x4e0]
lea esi, [ecx + edx]
cmp eax, esi
ja 0x100072b5
sub esi, eax
mov edx, dword [ebp - 0x4ec]
cmp dword [edx + esi*4], ebx
jne 0x100072d3
push 0x1c
call fcn.10031dbc
mov ecx, dword [ebp - 0x4ec]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [ebp - 0x4ec]
mov ecx, dword [edx + esi*4]
mov byte [ebp - 4], 6
cmp ecx, ebx
je 0x10007302
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push 0xffffffffffffffff
mov word [ecx + 4], ax
push ebx
lea eax, [ebp - 0x51c]
call fcn.10007e10
inc dword [ebp - 0x4e0]
cmp dword [ebp - 0x504], 8
jb 0x10007320
mov ecx, dword [ebp - 0x518]
push ecx
call fcn.10031f94
add esp, 4
mov ecx, vtable.ProtocolFilters::IOB.0
mov eax, 0x6400000
mov edx, 1
mov dword [ebp - 0x518], ecx
mov dword [ebp - 0x514], ebx
mov dword [ebp - 0x510], ebx
mov dword [ebp - 0x50c], ebx
mov dword [ebp - 0x508], eax
mov dword [ebp - 0x504], edx
mov dword [ebp - 0x538], ecx
mov dword [ebp - 0x534], ebx
mov dword [ebp - 0x530], ebx
mov dword [ebp - 0x52c], ebx
mov dword [ebp - 0x528], eax
mov dword [ebp - 0x524], edx
mov eax, dword [ebp - 0x500]
mov edi, 8
mov byte [ebp - 4], 8
cmp dword [eax + 0x18], edi
jb 0x10007390
mov eax, dword [eax + 4]
jmp 0x10007393
add eax, 4
push eax
lea eax, [ebp - 0x518]
call fcn.10006e40
add esp, 4
test al, al
jne 0x10007416
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x514]
cmp eax, ebx
je 0x100073bd
push eax
call fcn.10030c8f
add esp, 4
cmp dword [ebp - 0x23c], edi
jb 0x100073d4
mov edx, dword [ebp - 0x250]
push edx
call fcn.10031f94
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
cmp dword [ebp - 0x220], edi
jb 0x10007405
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.10031f94
add esp, 4
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
jmp 0x10007ba6
lea ecx, [ebp - 0x538]
lea eax, [ebp - 0x518]
call fcn.10006ee0
test al, al
jne 0x100074d1
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x534]
cmp eax, ebx
je 0x10007446
push eax
call fcn.10030c8f
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x514]
cmp eax, ebx
je 0x1000745d
push eax
call fcn.10030c8f
add esp, 4
cmp dword [ebp - 0x23c], edi
jb 0x10007474
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.10031f94
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], dx
cmp dword [ebp - 0x220], edi
jb 0x100074a5
mov eax, dword [ebp - 0x234]
push eax
call fcn.10031f94
add esp, 4
mov dword [ebp - 0x220], esi
xor ecx, ecx
lea esi, [ebp - 0x4fc]
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
call fcn.10008150
mov edx, dword [ebp - 0x4fc]
push edx
jmp 0x10007bc1
xor eax, eax
push 0xffffffffffffffff
mov word [ebp - 0x288], ax
mov eax, dword [ebp - 0x500]
push ebx
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x274], 7
mov dword [ebp - 0x278], ebx
call fcn.10007e10
push 0x10138550
lea ecx, [ebp - 0x28c]
push ecx
mov edi, 1
mov byte [ebp - 4], 9
call fcn.10007f70
cmp eax, 0xffffffff
je 0x10007563
lea edx, [eax + 1]
lea eax, [ebp - 0x28c]
push eax
or ecx, 0xffffffff
lea esi, [ebp - 0x270]
call fcn.10007d00
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 0xa
call fcn.10007e10
mov byte [ebp - 4], 9
cmp dword [ebp - 0x258], 8
jb 0x10007563
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.10031f94
add esp, 4
push 0x10138554
lea edx, [ebp - 0x28c]
push edx
mov edi, 1
call fcn.10007f70
cmp eax, 0xffffffff
je 0x100075c2
lea ecx, [ebp - 0x28c]
push ecx
mov ecx, eax
xor edx, edx
lea esi, [ebp - 0x270]
call fcn.10007d00
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 0xb
call fcn.10007e10
mov byte [ebp - 4], 9
cmp dword [ebp - 0x258], 8
jb 0x100075c2
mov edx, dword [ebp - 0x26c]
push edx
call fcn.10031f94
add esp, 4
lea ebx, [ebp - 0x28c]
call fcn.10005860
mov eax, dword [ebp - 0x4e0]
xor edi, edi
cmp eax, edi
je 0x10007af4
lea ecx, [ecx]
mov esi, dword [ebp - 0x4e4]
add eax, esi
cmp esi, eax
jbe 0x100075f1
call fcn.10031672
mov eax, dword [ebp - 0x4fc]
mov ebx, eax
cmp eax, edi
jne 0x10007621
call fcn.10031672
xor edi, edi
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
cmp esi, ecx
jb 0x10007619
call fcn.10031672
xor edi, edi
cmp ebx, edi
je 0x10007627
mov eax, dword [ebx]
jmp 0x10007629
mov eax, dword [eax]
mov ecx, eax
jmp 0x10007608
xor eax, eax
cmp dword [eax + 0x14], esi
ja 0x1000763b
cmp ebx, edi
je 0x10007636
mov eax, dword [ebx]
jmp 0x10007638
xor eax, eax
sub esi, dword [eax + 0x14]
cmp ebx, edi
je 0x10007643
mov eax, dword [ebx]
jmp 0x10007645
xor eax, eax
mov edx, dword [eax + 0x10]
mov eax, dword [edx + esi*4]
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x238]
call fcn.10007e10
cmp dword [ebp - 0x4e0], edi
je 0x100076bc
mov eax, dword [ebp - 0x4e4]
mov ecx, dword [ebp - 0x4ec]
mov esi, dword [ecx + eax*4]
cmp dword [esi + 0x18], 8
jb 0x10007682
mov eax, dword [esi + 4]
push eax
call fcn.10031f94
add esp, 4
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
xor edx, edx
mov word [esi + 4], dx
mov eax, dword [ebp - 0x4e4]
inc eax
mov dword [ebp - 0x4e4], eax
cmp dword [ebp - 0x4e8], eax
ja 0x100076ad
mov dword [ebp - 0x4e4], edi
sub dword [ebp - 0x4e0], 1
jne 0x100076bc
mov dword [ebp - 0x4e4], edi
lea eax, [ebp - 0x238]
push eax
mov ebx, 0x10138600
lea esi, [ebp - 0x554]
call fcn.10008980
mov ebx, 8
add esp, 4
cmp dword [eax + 0x18], ebx
jb 0x100076e5
mov eax, dword [eax + 4]
jmp 0x100076e8
add eax, 4
lea ecx, [ebp - 0x4dc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x500], esi
cmp dword [ebp - 0x53c], ebx
jb 0x10007715
mov edx, dword [ebp - 0x550]
push edx
call fcn.10031f94
add esp, 4
xor eax, eax
mov dword [ebp - 0x53c], 7
mov dword [ebp - 0x540], edi
mov word [ebp - 0x550], ax
cmp esi, 0xffffffff
je 0x10007ae6
jmp 0x10007740
mov eax, dword [ebp - 0x4dc]
test al, 0x10
je 0x10007aa8
test eax, 0x400
jne 0x10007aa8
mov ecx, 0x10138554
lea eax, [ebp - 0x4b0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000778a
test dx, dx
je 0x10007786
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000778a
add eax, 4
add ecx, 4
test dx, dx
jne 0x10007764
xor eax, eax
jmp 0x1000778f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10007aa8
mov ecx, 0x10138638
lea eax, [ebp - 0x4b0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100077c8
test dx, dx
je 0x100077c4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100077c8
add eax, 4
add ecx, 4
test dx, dx
jne 0x100077a2
xor eax, eax
jmp 0x100077cd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10007aa8
mov ecx, str.ca_certs
lea eax, [ebp - 0x4b0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10007806
test dx, dx
je 0x10007802
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10007806
add eax, 4
add ecx, 4
test dx, dx
jne 0x100077e0
xor eax, eax
jmp 0x1000780b
sbb eax, eax
sbb eax, 0xffffffff
lea ecx, [ebp - 0x238]
mov ebx, 0x10138550
lea esi, [ebp - 0x5a8]
push ecx
test eax, eax
jne 0x10007996
call fcn.10008980
add esp, 4
push eax
lea ebx, [ebp - 0x4b0]
lea esi, [ebp - 0x58c]
mov byte [ebp - 4], 0xc
call fcn.10008980
add esp, 4
push eax
mov ebx, 0x10138550
lea esi, [ebp - 0x570]
mov byte [ebp - 4], 0xd
call fcn.10008980
add esp, 4
lea edx, [ebp - 0x28c]
push edx
push eax
lea edi, [ebp - 0x5c4]
mov byte [ebp - 4], 0xe
call fcn.10008a30
push eax
mov ebx, str..pem
lea esi, [ebp - 0x270]
mov byte [ebp - 4], 0xf
call fcn.10008980
mov edi, 8
add esp, 0xc
cmp dword [ebp - 0x5ac], edi
jb 0x100078a9
mov eax, dword [ebp - 0x5c0]
push eax
call fcn.10031f94
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x5ac], esi
mov dword [ebp - 0x5b0], ebx
mov word [ebp - 0x5c0], cx
cmp dword [ebp - 0x558], edi
jb 0x100078dc
mov edx, dword [ebp - 0x56c]
push edx
call fcn.10031f94
add esp, 4
xor eax, eax
mov dword [ebp - 0x558], esi
mov dword [ebp - 0x55c], ebx
mov word [ebp - 0x56c], ax
cmp dword [ebp - 0x574], edi
jb 0x10007908
mov ecx, dword [ebp - 0x588]
push ecx
call fcn.10031f94
add esp, 4
xor edx, edx
mov byte [ebp - 4], 9
mov dword [ebp - 0x574], esi
mov dword [ebp - 0x578], ebx
mov word [ebp - 0x588], dx
cmp dword [ebp - 0x590], edi
jb 0x10007938
mov eax, dword [ebp - 0x5a4]
push eax
call fcn.10031f94
add esp, 4
mov eax, dword [ebp - 0x26c]
cmp dword [ebp - 0x258], edi
jae 0x1000794c
lea eax, [ebp - 0x26c]
push 0x101386a8
push eax
call fcn.1003114e
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x1000797f
mov ecx, dword [ebp - 0x530]
mov edx, dword [ebp - 0x534]
push esi
push ecx
push 1
push edx
call fcn.10031afe
push esi
call fcn.10031499
add esp, 0x14
cmp dword [ebp - 0x258], edi
jb 0x10007a95
mov eax, dword [ebp - 0x26c]
jmp 0x10007a8c
call fcn.10008980
add esp, 4
push eax
lea ebx, [ebp - 0x4b0]
lea esi, [ebp - 0x270]
mov byte [ebp - 4], 0x10
call fcn.10008980
add esp, 4
mov edi, eax
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x4e0]
mov eax, dword [ebp - 0x4e8]
inc edx
cmp eax, edx
ja 0x100079df
lea ebx, [ebp - 0x4fc]
call fcn.10008560
mov eax, dword [ebp - 0x4e8]
mov ecx, dword [ebp - 0x4e4]
mov edx, dword [ebp - 0x4e0]
lea esi, [edx + ecx]
cmp eax, esi
ja 0x100079f4
sub esi, eax
mov eax, dword [ebp - 0x4ec]
xor ebx, ebx
cmp dword [eax + esi*4], ebx
jne 0x10007a14
push 0x1c
call fcn.10031dbc
mov ecx, dword [ebp - 0x4ec]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [ebp - 0x4ec]
mov ecx, dword [edx + esi*4]
mov byte [ebp - 4], 0x12
cmp ecx, ebx
je 0x10007a3f
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 - 0x4e0]
mov esi, 8
cmp dword [ebp - 0x258], esi
jb 0x10007a61
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.10031f94
add esp, 4
xor edx, edx
mov byte [ebp - 4], 9
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], ebx
mov word [ebp - 0x26c], dx
cmp dword [ebp - 0x590], esi
jb 0x10007a95
mov eax, dword [ebp - 0x5a4]
push eax
call fcn.10031f94
add esp, 4
mov ecx, dword [ebp - 0x520]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10007ac4
mov eax, dword [ebp - 0x500]
lea edx, [ebp - 0x4dc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10007740
mov ecx, dword [ebp - 0x500]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x520]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
test eax, eax
je 0x10007af4
mov eax, dword [ebp - 0x4e0]
cmp eax, edi
jne 0x100075e0
mov esi, 8
cmp dword [ebp - 0x274], esi
jb 0x10007b10
mov eax, dword [ebp - 0x288]
push eax
call fcn.10031f94
add esp, 4
mov ebx, 7
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x534]
xor ecx, ecx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x278], edi
mov word [ebp - 0x288], cx
cmp eax, edi
je 0x10007b40
push eax
call fcn.10030c8f
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x514]
cmp eax, edi
je 0x10007b57
push eax
call fcn.10030c8f
add esp, 4
cmp dword [ebp - 0x23c], esi
jb 0x10007b6e
mov edx, dword [ebp - 0x250]
push edx
call fcn.10031f94
add esp, 4
xor eax, eax
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], edi
mov word [ebp - 0x250], ax
cmp dword [ebp - 0x220], esi
jb 0x10007b9a
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.10031f94
add esp, 4
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], edi
xor edx, edx
lea esi, [ebp - 0x4fc]
mov word [ebp - 0x234], dx
call fcn.10008150
mov eax, dword [ebp - 0x4fc]
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