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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526af7
mov eax, dword fs:[0]
push eax
sub esp, 0x594
mov eax, dword [0x588eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x568], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x56c], eax
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0x54c], eax
mov dword [ebp - 0x564], eax
lea eax, [ebp - 0x218]
push eax
call fcn.004ffc00
push 8
mov dword [ebp - 0x560], 0
mov dword [ebp - 0x55c], 0
mov dword [ebp - 0x558], 0
mov dword [ebp - 0x554], 0
mov dword [ebp - 0x550], 0
call fcn.004fbcb4
mov dword [ebp - 0x560], eax
lea ecx, [ebp - 0x560]
add esp, 0x10
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x560]
mov dword [eax], ecx
xor edi, edi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push 0x104
push eax
push str._PROGRAMFILES_
mov byte [ebp - 4], 2
call esi
test eax, eax
je 0x4e1ef3
cmp word [ebp - 0x218], 0x25
je 0x4e1ef3
mov ax, word [ebp - 0x212]
lea ecx, [ebp - 0x212]
test ax, ax
je 0x4e1e51
movzx edx, ax
nop dword [eax]
cmp dx, 0x5c
je 0x4e1e4c
cmp dx, 0x2f
je 0x4e1e4c
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4e1e30
jmp 0x4e1e51
xor eax, eax
mov word [ecx], ax
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e1e77
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004c3110
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x560]
call fcn.004e2bb0
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4e1ef3
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e1ee9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e28a7
push edx
push ecx
call fcn.004fbca6
add esp, 8
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._PROGRAMFILES_x86__
call esi
test eax, eax
je 0x4e1ffc
cmp word [ebp - 0x218], 0x25
je 0x4e1ffc
mov ax, word [ebp - 0x212]
lea ecx, [ebp - 0x212]
test ax, ax
je 0x4e1f52
movzx edx, ax
cmp dx, 0x5c
je 0x4e1f4d
cmp dx, 0x2f
je 0x4e1f4d
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4e1f31
jmp 0x4e1f52
xor eax, eax
mov word [ecx], ax
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e1f80
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004c3110
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x560]
call fcn.004e2bb0
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4e1ffc
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e1ff2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e28ac
push edx
push ecx
call fcn.004fbca6
add esp, 8
lea ecx, [ebp - 0x588]
call fcn.004d41d0
lea ecx, [ebp - 0x5a0]
mov byte [ebp - 4], 5
call fcn.004d41d0
mov eax, dword [ebp - 0x568]
mov esi, eax
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x4e202a
mov esi, dword [eax]
lea ecx, [ebp - 0x588]
call fcn.004d4430
push 0x52bca4
push esi
call fcn.0050a7e8
mov esi, eax
add esp, 8
test esi, esi
je 0x4e282f
push 2
push 0
push esi
call fcn.0050ac0d
push esi
call fcn.0050b31e
push 0
push 0
push esi
mov dword [ebp - 0x548], eax
call fcn.0050ac0d
mov eax, dword [ebp - 0x548]
add esp, 0x1c
test eax, eax
je 0x4e20ca
push eax
lea ecx, [ebp - 0x588]
call fcn.004d4460
push esi
test al, al
jne 0x4e2098
call fcn.0050a8d3
add esp, 4
jmp 0x4e282f
push dword [ebp - 0x548]
lea ecx, [ebp - 0x588]
push 1
call fcn.004d3710
push eax
call fcn.0050b4f5
add esp, 0x10
cmp eax, dword [ebp - 0x548]
je 0x4e20ca
push esi
call fcn.0050a8d3
add esp, 4
jmp 0x4e282f
push esi
call fcn.0050a8d3
add esp, 4
mov dword [ebp - 0x548], 0
lea ecx, [ebp - 0x588]
mov byte [ebp - 0x541], 0
call fcn.004d3710
lea ecx, [ebp - 0x588]
mov dword [ebp - 0x570], eax
call fcn.004d4510
lea ecx, [ebp - 0x5a0]
mov esi, eax
call fcn.004d4430
push esi
lea eax, [ebp - 0x570]
push eax
lea eax, [ebp - 0x548]
push eax
call fcn.00434440
add esp, 0xc
mov dword [ebp - 0x548], eax
test eax, eax
je 0x4e282f
call fcn.0042cb40
push eax
call fcn.0042cab0
mov esi, eax
add esp, 4
test esi, esi
je 0x4e21ba
push dword [ebp - 0x548]
push esi
call fcn.00438720
add esp, 8
test eax, eax
je 0x4e21b1
push 0
push 0
push 0xa
push esi
call fcn.0042c840
add esp, 0x10
test eax, eax
je 0x4e21aa
nop dword [eax]
push 1
lea eax, [ebp - 0x564]
push eax
push esi
call fcn.0042c510
add esp, 0xc
test eax, eax
jle 0x4e2197
push dword [ebp - 0x564]
lea ecx, [ebp - 0x5a0]
call fcn.004d42d0
push 0
push 0
push 0xa
push esi
call fcn.0042c840
add esp, 0x10
test eax, eax
jne 0x4e2170
mov byte [ebp - 0x541], 1
push esi
call fcn.0042c460
add esp, 4
push dword [ebp - 0x548]
call fcn.00434490
add esp, 4
cmp byte [ebp - 0x541], 0
je 0x4e282f
mov eax, dword [ebp - 0x568]
lea ecx, [ebp - 0x248]
push eax
call fcn.004ccdbe
push 0xffffffffffffffff
push 0x52bb3c
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 7
call fcn.004e2d10
cmp eax, 0xffffffff
je 0x4e2299
lea edx, [eax + 1]
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x238]
cmp eax, edx
jb 0x4e28b1
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x230]
lea eax, [eax + edx*2]
push eax
call fcn.004c3110
mov esi, 1
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x54c], esi
call fcn.004c33b0
movups xmm0, xmmword [ebp - 0x230]
movups xmmword [ebp - 0x248], xmm0
movq xmm0, qword [ebp - 0x220]
movq qword [ebp - 0x238], xmm0
jmp 0x4e229f
mov esi, dword [ebp - 0x54c]
push 0xffffffffffffffff
push 0x52bcbc
lea ecx, [ebp - 0x248]
call fcn.004e2d10
mov edx, eax
cmp edx, 0xffffffff
je 0x4e2335
xor eax, eax
mov dword [ebp - 0x220], 0
cmp dword [ebp - 0x238], edx
lea ecx, [ebp - 0x230]
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x248]
cmovb edx, dword [ebp - 0x238]
cmp dword [ebp - 0x234], 8
push edx
cmovae eax, dword [ebp - 0x248]
push eax
mov dword [ebp - 0x21c], 7
call fcn.004c3110
or esi, 2
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x54c], esi
call fcn.004c33b0
movups xmm0, xmmword [ebp - 0x230]
movups xmmword [ebp - 0x248], xmm0
movq xmm0, qword [ebp - 0x220]
movq qword [ebp - 0x238], xmm0
lea eax, [ebp - 0x248]
push eax
call fcn.004e2c50
add esp, 4
cmp dword [ebp - 0x550], 0
je 0x4e27d2
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop word [eax + eax]
mov eax, dword [ebp - 0x560]
test eax, eax
je 0x4e236c
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x554]
dec ecx
mov eax, dword [eax + 4]
and ecx, edx
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x260]
cmp ecx, eax
je 0x4e23ad
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4e2392
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x260]
call fcn.004c3110
mov edx, dword [ebp - 0x554]
mov edi, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x558]
mov eax, dword [ebp - 0x55c]
dec ecx
and ecx, edx
push dword [eax + ecx*4]
lea eax, [ebp - 0x560]
push eax
call fcn.004e0210
add esp, 8
sub dword [ebp - 0x550], 1
jne 0x4e23e3
mov dword [ebp - 0x554], 0
jmp 0x4e23e9
inc dword [ebp - 0x554]
xor eax, eax
mov byte [ebp - 4], 8
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x54c]
or eax, 4
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x54c], eax
mov dword [ebp - 0x564], eax
lea eax, [edi + 2]
push eax
mov dword [ebp - 0x21c], 7
call fcn.004dc1a0
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push edi
cmovae eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x230]
push eax
call fcn.004cce85
push 2
push 0x52c124
lea ecx, [ebp - 0x230]
call fcn.004cce85
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x540]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
and dword [ebp - 0x54c], 0xfffffffb
mov edi, eax
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x4e24d0
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e24c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e28a7
push edx
push ecx
call fcn.004fbca6
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edi, 0xffffffff
je 0x4e27be
nop word [eax + eax]
mov eax, dword [ebp - 0x540]
and eax, 0x410
cmp eax, 0x10
jne 0x4e2793
mov ecx, 0x52bcbc
lea eax, [ebp - 0x514]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4e2546
test dx, dx
je 0x4e2542
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4e2546
add eax, 4
add ecx, 4
test dx, dx
jne 0x4e2520
xor eax, eax
jmp 0x4e254b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4e2793
mov ecx, 0x52bcc0
lea eax, [ebp - 0x514]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4e2586
test dx, dx
je 0x4e2582
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4e2586
add eax, 4
add ecx, 4
test dx, dx
jne 0x4e2560
xor eax, eax
jmp 0x4e258b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4e2793
lea eax, [ebp - 0x514]
push str.temp
push eax
call fcn.0050f1b0
add esp, 8
test eax, eax
je 0x4e2793
lea eax, [ebp - 0x514]
push str.microsoft
push eax
call fcn.0050f1b0
add esp, 8
test eax, eax
je 0x4e2793
lea eax, [ebp - 0x514]
push str.packages
push eax
call fcn.0050f1b0
add esp, 8
test eax, eax
je 0x4e2793
mov eax, str.ca_certs
lea ecx, [ebp - 0x514]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4e2618
test dx, dx
je 0x4e2614
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4e2618
add ecx, 4
add eax, 4
test dx, dx
jne 0x4e25f2
xor eax, eax
jmp 0x4e261d
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x260]
push 0x52bb3c
push eax
jne 0x4e2734
lea eax, [ebp - 0x2a8]
push eax
call fcn.004d45f0
lea ecx, [ebp - 0x514]
mov byte [ebp - 4], 9
push ecx
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.004d4580
push 0x52bb3c
push eax
lea eax, [ebp - 0x2f0]
mov byte [ebp - 4], 0xa
push eax
call fcn.004d4580
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xb
push ecx
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.004d4520
push str..pem
push eax
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 0xc
push eax
call fcn.004d4580
add esp, 0x3c
lea ecx, [ebp - 0x2d8]
call fcn.004c33b0
lea ecx, [ebp - 0x2f0]
call fcn.004c33b0
lea ecx, [ebp - 0x290]
call fcn.004c33b0
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0x11
call fcn.004c33b0
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
push 0x52c220
cmovae eax, dword [ebp - 0x278]
push eax
call fcn.0050a7e8
mov esi, eax
add esp, 8
test esi, esi
je 0x4e271d
push esi
lea ecx, [ebp - 0x5a0]
call fcn.004d4510
push eax
push 1
lea ecx, [ebp - 0x5a0]
call fcn.004d3710
push eax
call fcn.0050be9b
push esi
call fcn.0050a8d3
add esp, 0x14
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 7
call fcn.004c33b0
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4e2785
lea eax, [ebp - 0x290]
push eax
call fcn.004d45f0
lea ecx, [ebp - 0x514]
mov byte [ebp - 4], 0x12
push ecx
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.004d4580
add esp, 0x18
push eax
lea ecx, [ebp - 0x560]
mov byte [ebp - 4], 0x13
call fcn.004e2bb0
lea ecx, [ebp - 0x2a8]
call fcn.004c33b0
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 7
call fcn.004c33b0
push 0
push dword [ebp - 0x56c]
call esi
test eax, eax
je 0x4e27a9
lea eax, [ebp - 0x540]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4e2500
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp - 0x56c]
call esi
test eax, eax
je 0x4e27d2
cmp dword [ebp - 0x550], 0
je 0x4e27d2
mov edi, dword [ebp - 0x250]
jmp 0x4e2360
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x4e2812
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e2808
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e28b6
push edx
push ecx
call fcn.004fbca6
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea ecx, [ebp - 0x5a0]
call fcn.004d4200
lea ecx, [ebp - 0x588]
call fcn.004d4200
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x4e2881
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e2877
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e28bb
push edx
push ecx
call fcn.004fbca6
add esp, 8
lea ecx, [ebp - 0x560]
call fcn.004e02f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fbc95
mov esp, ebp
pop ebp
ret
call fcn.00501cb1
call fcn.00501cb1
call fcn.004a4bd0
call fcn.00501cb1
call fcn.00501cb1
int3