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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487469
mov eax, dword fs:[0]
push eax
mov eax, 0x2d50
call fcn.004839d0
mov eax, dword [0x4ab00c]
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 dword [ebp - 0x2d4c], edx
mov ebx, ecx
mov dword [ebp - 0x2d3c], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2d48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2d44], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x281c], 0
mov dword [ebp - 0x2818], 7
mov word [ebp - 0x282c], ax
mov dword [ebp - 0x284c], eax
mov dword [ebp - 0x2848], 7
mov word [ebp - 0x285c], ax
mov dword [ebp - 0x2d28], eax
xor al, al
mov byte [ebp - 0x2d29], al
xor eax, eax
mov dword [ebp - 0x2834], 0
mov dword [ebp - 0x2830], 7
mov word [ebp - 0x2844], ax
mov byte [ebp - 4], 3
mov eax, dword [0x4ac990]
test eax, eax
je 0x4386ae
lea ecx, [ebp - 0x2d28]
push ecx
call eax
push 0x500
lea eax, [ebp - 0x1e14]
push eax
push str._SystemRoot_Inf_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
lea eax, [ebp - 0x1e14]
push 0x500
push eax
call fcn.00474974
add esp, 0xc
lea eax, [ebp - 0x2880]
push eax
push 0
lea eax, [ebp - 0x1e14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x438f0a
mov eax, dword [ebp - 0x2860]
mov dword [ebp - 0x2d40], eax
test eax, eax
je 0x438f0a
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x2d38], ebx
push 0x500
lea eax, [ebp - 0x1414]
push eax
push str._SystemRoot_System32DriverStoreFileRepository
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp ebx, 3
ja case.default.0x438740
jmp dword [ebx*4 + 0x438fd8]
push dword [ebp - 0x2d3c]
lea eax, [ebp - 0x1414]
push eax
lea eax, [ebp - 0xa14]
push str._s_s_
push eax
call fcn.0040a9b0
add esp, 0x10
jmp 0x438819
lea eax, [ebp - 0x1414]
push eax
lea eax, [ebp - 0xa14]
push str._s
push eax
call fcn.0040a9b0
add esp, 0xc
jmp 0x4387de
cmp dword [ebp - 0x2818], 8
lea eax, [ebp - 0x282c]
cmovae eax, dword [ebp - 0x282c]
push eax
lea eax, [ebp - 0x1414]
push eax
lea eax, [ebp - 0xa14]
push str._s_s_
push eax
call fcn.0040a9b0
add esp, 0x10
jmp 0x4387f2
lea eax, [ebp - 0x1414]
push eax
lea eax, [ebp - 0xa14]
push str._s
push eax
call fcn.0040a9b0
add esp, 0xc
jmp 0x43880f
cmp ebx, 1
jne 0x4387ed
cmp dword [ebp - 0x281c], 0
jne 0x438a79
jmp 0x438819
cmp ebx, 2
jne 0x43880a
cmp byte [ebp + 0x41], 0
je 0x438a79
cmp dword [ebp - 0x281c], 0
jne 0x438819
jmp 0x438a79
cmp ebx, 3
jne 0x438819
cmp byte [ebp + 0x42], 0
je 0x438a79
lea eax, [ebp - 0x2ad4]
push eax
lea eax, [ebp - 0xa14]
push eax
call edi
mov ecx, eax
mov dword [ebp - 0x2d30], ecx
cmp ecx, 0xffffffff
je 0x438a79
nop word [eax + eax]
test byte [ebp - 0x2ad4], 0x10
je 0x438a4f
cmp word [ebp - 0x2aa8], 0x2e
jne 0x43887b
mov ax, word [ebp - 0x2aa6]
test ax, ax
je 0x438a4f
cmp ax, 0x2e
jne 0x43887b
cmp word [ebp - 0x2aa4], 0
je 0x438a4f
lea eax, [ebp - 0x2aa8]
push 0x104
push eax
call fcn.0047525d
mov esi, dword [ebp + 0x60]
add esp, 8
mov edi, dword [ebp + 0x64]
cmp esi, edi
je 0x4388bd
nop dword [eax]
lea eax, [ebp - 0x2aa8]
mov ecx, esi
push eax
call fcn.0046a700
test al, al
jne 0x438992
add esi, 0x18
cmp esi, edi
jne 0x4388a0
lea eax, [ebp - 0x2aa8]
push eax
lea eax, [ebp - 0x1414]
push eax
lea eax, [ebp - 0xa14]
push str._s_s.inf
push eax
call fcn.0040a9b0
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x2d24]
add esp, 0x10
push eax
lea eax, [ebp - 0xa14]
push eax
call edi
mov esi, eax
mov dword [ebp - 0x2d50], esi
cmp esi, 0xffffffff
je 0x438a43
nop word [eax + eax]
lea eax, [ebp - 0x2cf8]
push 0x104
push eax
call fcn.0047525d
lea eax, [ebp - 0x2cf8]
push eax
lea eax, [ebp - 0x2aa8]
push eax
lea eax, [ebp - 0x1414]
push eax
lea eax, [ebp - 0x2814]
push 0x49b364
push eax
call fcn.0040a9b0
xor eax, eax
add esp, 0x1c
mov dword [ebp - 0x2d34], eax
cmp byte [ebp + 0x44], al
je 0x438ae7
mov esi, dword [ebp + 0x48]
mov edi, dword [ebp + 0x4c]
cmp esi, edi
je 0x438ae7
nop dword [eax]
lea eax, [ebp - 0x2cf8]
mov ecx, esi
push eax
call fcn.0046a700
test al, al
jne 0x438add
add esi, 0x18
cmp esi, edi
jne 0x438970
jmp 0x438ae7
push 8
push str._______
lea ecx, [ebp - 0x2844]
call fcn.00402430
lea eax, [ebp - 0x2d5c]
push 0x258
push eax
call fcn.0046cd70
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x4389c0
mov esi, dword [esi]
mov eax, dword [eax]
mov ecx, 0x491dd8
test eax, eax
push esi
cmovne ecx, eax
push ecx
push 0x4ac9d8
call fcn.0040a9b0
add esp, 0xc
push dword [ebp - 0x2d54]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x2d5c]
call fcn.0046bc3a
mov ecx, 0x4ac9d8
add esp, 4
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438a00
sub ecx, edx
sar ecx, 1
push ecx
push 0x4ac9d8
lea ecx, [ebp - 0x2844]
call fcn.0040a760
cmp dword [ebp - 0x2830], 8
lea ecx, [ebp - 0x2844]
push 1
cmovae ecx, dword [ebp - 0x2844]
mov edx, 4
call fcn.00411390
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x2d30]
lea eax, [ebp - 0x2ad4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, dword [ebp - 0x2d30]
test eax, eax
jne 0x438840
push dword [ebp - 0x2d30]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
inc ebx
mov dword [ebp - 0x2d38], ebx
cmp ebx, 4
jl 0x438720
mov eax, dword [0x4ac98c]
test eax, eax
je 0x438a9a
push dword [ebp - 0x2d28]
call eax
mov edx, dword [ebp - 0x2830]
cmp edx, 8
jb 0x438e6d
mov ecx, dword [ebp - 0x2844]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438e63
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438fc4
jmp 0x438e63
mov dword [ebp - 0x2d34], 1
mov esi, dword [ebp + 0x60]
mov edi, dword [ebp + 0x64]
cmp esi, edi
je 0x438b0e
lea eax, [ebp - 0x2cf8]
mov ecx, esi
push eax
call fcn.0046a700
test al, al
jne 0x438cc9
add esi, 0x18
cmp esi, edi
jne 0x438af1
mov edi, dword [ebp - 0x2d34]
cmp ebx, 2
jge 0x438cd3
lea eax, [ebp - 0x2880]
push eax
push 0
lea eax, [ebp - 0x2814]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x438e23
mov eax, dword [ebp - 0x2d40]
cmp eax, dword [ebp - 0x2860]
jne 0x438e23
push 0
push 0
lea edx, [ebp - 0x2814]
lea ecx, [ebp - 0x1e14]
call fcn.004120c0
add esp, 8
test al, al
je 0x438e23
lea ecx, [ebp - 0x2cf8]
mov byte [ebp - 0x2d29], 1
xor bl, bl
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438b80
sub ecx, edx
lea eax, [ebp - 0x2cf8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x282c]
call fcn.00402430
lea eax, [ebp - 0x2aa8]
push eax
lea eax, [ebp - 0x1414]
push eax
lea eax, [ebp - 0xa14]
push 0x492674
push eax
call fcn.0040a9b0
lea ecx, [ebp - 0xa14]
add esp, 0x10
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438bd0
sub ecx, edx
lea eax, [ebp - 0xa14]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x285c]
call fcn.00402430
cmp byte [ebp + 0x43], 0
jne 0x438c48
test edi, edi
jne 0x438c48
sub esp, 0x18
lea ecx, [ebp - 0xa14]
mov edx, esp
lea esi, [ecx + 2]
xor eax, eax
mov dword [edx + 0x10], edi
mov dword [edx + 0x14], 7
mov word [edx], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438c20
sub ecx, esi
lea eax, [ebp - 0xa14]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.00402430
call fcn.004381d0
add esp, 0x18
mov bl, al
lea eax, [ebp - 0xa14]
test bl, bl
push eax
mov eax, 0x49b380
mov ecx, 0x49b378
cmove ecx, eax
push ecx
push str._____s__s
push 0x4ac9d8
call fcn.0040a9b0
lea eax, [ebp - 0x2aa8]
push eax
lea eax, [ebp - 0x1414]
push eax
lea eax, [ebp - 0xa14]
push str._s_s.sys
push eax
call fcn.0040a9b0
add esp, 0x20
lea ecx, [ebp - 0xa14]
call fcn.004118b0
test al, al
jne 0x438cb6
push str.___drv_
push 0x500
push 0x4ac9d8
call fcn.00474974
add esp, 0xc
cmp edi, 1
jne 0x438ded
push str.___f_
jmp 0x438df7
mov edi, 2
jmp 0x438b14
push dword [ebp - 0x2d44]
mov edx, dword [ebp - 0x2d4c]
lea ecx, [ebp - 0x2814]
push dword [ebp - 0x2d48]
call fcn.00438310
add esp, 8
test al, al
je 0x438e23
lea eax, [ebp - 0x2aa8]
xor bl, bl
push eax
lea eax, [ebp - 0x1414]
push eax
lea eax, [ebp - 0xa14]
push 0x492674
push eax
call fcn.0040a9b0
add esp, 0x10
test edi, edi
jne 0x438db8
cmp byte [ebp + 0x43], bl
je 0x438d6d
lea eax, [ebp - 0xa14]
push eax
lea ecx, [ebp - 0x285c]
call fcn.0046a700
test al, al
jne 0x438db8
sub esp, 0x18
lea ecx, [ebp - 0xa14]
mov edx, esp
lea esi, [ecx + 2]
xor eax, eax
mov dword [edx + 0x10], edi
mov dword [edx + 0x14], 7
mov word [edx], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438d60
jmp 0x438d9b
sub esp, 0x18
lea ecx, [ebp - 0xa14]
mov edx, esp
lea esi, [ecx + 2]
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438d90
sub ecx, esi
lea eax, [ebp - 0xa14]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.00402430
call fcn.004381d0
mov bl, al
add esp, 0x18
lea eax, [ebp - 0xa14]
test bl, bl
push eax
mov ecx, 0x49b3e4
mov eax, 0x49b3dc
cmove eax, ecx
push eax
push str._____s__s
push 0x4ac9d8
call fcn.0040a9b0
add esp, 0x10
cmp edi, 1
jne 0x438ded
push str.___f_
jmp 0x438df7
cmp edi, 2
jne 0x438e09
push str.___e_
push 0x500
push 0x4ac9d8
call fcn.00474974
add esp, 0xc
push 1
mov edx, 4
mov ecx, 0x4ac9d8
call fcn.00411390
mov ebx, dword [ebp - 0x2d38]
add esp, 4
mov esi, dword [ebp - 0x2d50]
lea eax, [ebp - 0x2d24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x438910
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
call esi
cmp byte [ebp - 0x2d29], 0
je 0x438a49
cmp ebx, 2
jl 0x438a6b
jmp 0x438a49
push edx
push ecx
call fcn.0046ba31
add esp, 8
mov edx, dword [ebp - 0x2848]
xor eax, eax
mov dword [ebp - 0x2834], 0
mov dword [ebp - 0x2830], 7
mov word [ebp - 0x2844], ax
cmp edx, 8
jb 0x438eca
mov ecx, dword [ebp - 0x285c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438ec0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438fc9
push edx
push ecx
call fcn.0046ba31
add esp, 8
mov edx, dword [ebp - 0x2818]
cmp edx, 8
jb 0x438f87
mov ecx, dword [ebp - 0x282c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438f7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438fce
jmp 0x438f7d
mov eax, dword [0x4ac98c]
test eax, eax
je 0x438f1b
push dword [ebp - 0x2d28]
call eax
mov edx, dword [ebp - 0x2830]
cmp edx, 8
jb 0x438f5b
mov ecx, dword [ebp - 0x2844]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438f51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438fd3
push edx
push ecx
call fcn.0046ba31
add esp, 8
xor eax, eax
mov dword [ebp - 0x2834], 0
mov dword [ebp - 0x2830], 7
mov word [ebp - 0x2844], ax
jmp 0x438eca
push edx
push ecx
call fcn.0046ba31
add esp, 8
xor eax, eax
mov dword [ebp - 0x2818], 7
lea ecx, [ebp + 0x10]
mov word [ebp - 0x282c], ax
mov dword [ebp - 0x281c], eax
call fcn.0040ffe0
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.0046b9f0
mov esp, ebp
pop ebp
ret
call fcn.00471513
call fcn.00471513
call fcn.00471513
call fcn.00471513
inc edi
xchg dword [ebx], eax
insd dword es:[edi], dx
xchg dword [ebx], eax
mov al, byte [edi - 0x7843ffbd]
inc ebx
add ah, cl
int3