Function at 0x40d0d3
Capabilities:
Enumerate files on windows
Get file size
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov dword [ebp - 0xc], 0x10
mov dword [ebp - 0x14], 0xea
mov dword [ebp - 0x84], 0xe8
mov dword [ebp - 0x70], 0x53
mov dword [ebp - 0x7c], 0xaa
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x74], 0x6f
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 9
mov eax, dword [ebp - 0x18]
and eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
imul ecx, dword [0x41c12c]
test ecx, ecx
je 0x40d15a
mov edx, dword [0x41c124]
sub edx, dword [0x41c0d4]
je 0x40d15a
mov dword [ebp - 0x28], 1
jmp 0x40d161
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0
jne 0x40d19e
mov eax, dword [0x41c118]
and eax, dword [0x41c0c4]
jne 0x40d188
mov ecx, dword [ebp - 8]
xor ecx, dword [0x41c110]
jne 0x40d188
mov dword [ebp - 0x2c], 0
jmp 0x40d18f
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x2c], 0
jne 0x40d19e
mov dword [ebp - 0x30], 0
jmp 0x40d1a5
mov dword [ebp - 0x30], 1
cmp dword [ebp - 0x30], 0
jne 0x40d1e5
mov edx, dword [0x41c118]
imul edx, dword [0x41c0c0]
mov eax, dword [ebp - 0x14]
imul eax, dword [0x41c0d4]
cmp edx, eax
jbe 0x40d1cf
mov dword [ebp - 0x34], 1
jmp 0x40d1d6
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0
jne 0x40d1e5
mov dword [ebp - 0x38], 0
jmp 0x40d1ec
mov dword [ebp - 0x38], 1
cmp dword [ebp - 0x38], 0
jne 0x40d22a
mov ecx, dword [ebp - 0x70]
imul ecx, dword [0x41c0c4]
test ecx, ecx
je 0x40d214
mov edx, dword [0x41c0cc]
and edx, dword [ebp - 0xc]
je 0x40d214
mov dword [ebp - 0x3c], 1
jmp 0x40d21b
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0
jne 0x40d22a
mov dword [ebp - 0x40], 0
jmp 0x40d231
mov dword [ebp - 0x40], 1
cmp dword [ebp - 0x40], 0
jne 0x40d261
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x20]
cmp eax, ecx
jne 0x40d250
mov dword [ebp - 0x44], 1
jmp 0x40d257
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 0
je 0x40d456
mov dword [ebp - 0x54], 0x7d
mov dword [ebp - 4], 0
mov edx, dword [ebp - 4]
and edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp - 8]
je 0x40d2a4
mov edx, dword [0x41c118]
imul edx, dword [0x41c0c4]
test edx, edx
je 0x40d2a4
mov dword [ebp - 0x48], 1
jmp 0x40d2ab
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0
je 0x40d2fa
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 4]
jne 0x40d2ca
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp - 4]
jne 0x40d2ca
mov dword [ebp - 0x4c], 0
jmp 0x40d2d1
mov dword [ebp - 0x4c], 1
cmp dword [ebp - 0x4c], 0
je 0x40d2fa
mov dword [ebp - 0x88], 0x7e
mov dword [ebp - 0x78], 0xf6
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [ebp - 0x14], eax
jmp 0x40d448
mov dword [ebp - 0x8c], 0x92
mov dword [ebp - 0x90], 0xd0
mov dword [ebp - 0x10], 0xfe
mov dword [ebp - 0x1c], 0xad
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.FxGujnV.ENz
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x50], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
mov eax, dword [0x41c134]
push eax
push 0xffffffffffffffeb
mov ecx, dword [0x41c130]
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
movzx eax, word [edx]
mov dword [ebp - 0x1c], eax
push 0
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x54]
push ecx
push str.siuIdzoSeJVzRw
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40d3c3
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x40d3a6
push 0
push 0
push 0
lea edx, [ebp - 0xb8]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jle 0x40d3f6
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0xb8]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40d3c3
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.SjtTnXuabpm.Zjl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x58], eax
push 0
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x41c0c8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.004117f3
add esp, 8
mov ecx, dword [ebp - 4]
and ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
jmp 0x40d592
mov dword [ebp - 0x80], 0x96
mov edx, dword [ebp - 0x24]
xor edx, dword [0x41c120]
mov dword [0x41c134], edx
mov eax, dword [ebp - 0x7c]
xor edx, edx
div dword [0x41c0c8]
mov dword [0x41c0bc], eax
cmp dword [0x41c0bc], 0
jne 0x40d4a3
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [0x41c110]
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayAllocDescriptor]
test eax, eax
jne 0x40d4a3
mov dword [ebp - 0x5c], 0
jmp 0x40d4aa
mov dword [ebp - 0x5c], 1
cmp dword [ebp - 0x5c], 0
jne 0x40d4fd
mov edx, dword [0x41c110]
mov dword [0x41c128], edx
mov eax, dword [0x41c128]
mov dword [0x41c0cc], eax
cmp dword [0x41c0cc], 0
je 0x40d4e7
mov ecx, dword [ebp - 0x60]
mov edx, 1
lock xadd dword [ecx], edx
inc edx
je 0x40d4e7
mov dword [ebp - 0x64], 1
jmp 0x40d4ee
mov dword [ebp - 0x64], 0
cmp dword [ebp - 0x64], 0
jne 0x40d4fd
mov dword [ebp - 0x68], 0
jmp 0x40d504
mov dword [ebp - 0x68], 1
mov eax, dword [0x41c124]
or eax, dword [ebp - 8]
je 0x40d529
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ole32.dll_CoTreatAsClass]
test eax, eax
je 0x40d529
mov dword [ebp - 0x6c], 1
jmp 0x40d530
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x6c]
jne 0x40d576
mov dword [ebp - 0x94], 0xbb
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [ebp - 0x24], eax
mov edx, dword [0x41c110]
and edx, dword [ebp - 8]
mov dword [0x41c134], edx
mov eax, dword [0x41c0c8]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp + 8], eax
jmp 0x40d592
mov dword [ebp - 0x9c], 0xd4
mov edx, dword [0x41c0c0]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [0x41c130], eax
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret