Function at 0x438710
Capabilities:
Access peb ldr_data
Delete file
Enumerate files on windows
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47898e
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x4a3eb0]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a3eb0]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4cc]
mov ecx, dword [esp + 0x4d0]
mov edx, dword [0x4a440c]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, 0x4a440c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
push 0x47ed68
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c4], 0
call fcn.004062c0
push 0x47ed68
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c4], 1
call fcn.004062c0
mov edx, dword [0x4a440c]
mov eax, dword [edx + 0xc]
or ebp, 0xffffffff
mov ecx, 0x4a440c
mov byte [esp + 0x4c0], 2
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
movzx edi, word [esp + 0x4c8]
push edi
lea ecx, [esp + 0x24]
push str._c:.SAMSUNG
push ecx
mov byte [esp + 0x4cc], 3
call fcn.00402e30
mov ebx, dword [esp + 0x2c]
add esp, 0xc
lea edx, [esp + 0x160]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x24], eax
cmp eax, ebp
jne 0x4388bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Invalid_file_handle._Error_is__u_n
call fcn.00403120
lea eax, [ebx - 0x10]
add esp, 8
mov byte [esp + 0x4c0], 2
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43884a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x4c0], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438871
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x4c0], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438898
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x4c0], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4388b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x438dc1
lea ecx, [esp + 0x18c]
push ecx
push str.First_file_name_is__s_n
call fcn.00403120
add esp, 8
jmp 0x4388e0
lea edx, [esp + 0x18c]
push edx
push str.Next_file_name_is__s_n
call fcn.00403120
lea eax, [esp + 0x194]
add esp, 8
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x438900
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x190]
push eax
lea ecx, [esp + 0x24]
call fcn.00402860
mov ebp, dword [esp + 0x1c]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, esi
or eax, ecx
jge 0x438947
push esi
lea ecx, [esp + 0x20]
call fcn.00401e90
mov ebp, dword [esp + 0x1c]
lea ecx, [esi + 1]
push ecx
push ebp
call dword [sym.imp.MSVCR90.dll__wcsupr_s]
add esp, 8
test esi, esi
jl 0x438b34
cmp esi, dword [ebp - 8]
jg 0x438b34
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x170]
xor edx, edx
mov dword [ebp - 0xc], esi
push ecx
mov word [ebp + esi*2], dx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x438b34
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x438b34
push 0xffffffffffffffff
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x40]
call fcn.0040f2e0
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x3c]
jg 0x438a5b
mov ebx, dword [esp + 0x38]
jl 0x4389d1
cmp dword [esp + 0x2c], ebx
jae 0x438a5b
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x438a41
mov edx, dword [0x4a440c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a440c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x20]
push str._c:_s
push edx
mov byte [esp + 0x4d0], 4
call fcn.00402e30
mov esi, dword [esp + 0x28]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov byte [esp + 0x4c0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438a41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x1c]
mov dword [esp + 0x30], ecx
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], ebx
call fcn.00404410
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x160]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4388e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x12
je 0x438b3e
push esi
push str.FindNextFile_error._Error_is__u_n
call fcn.00403120
add esp, 8
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x4c0], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438ac4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x4c0], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438aec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x4c0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438b14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x4c0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4388ac
push 0x80070057
call fcn.00401100
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jle 0x438a9c
push 0x2e
push eax
call dword [sym.imp.MSVCR90.dll_wcsrchr]
add esp, 8
test eax, eax
jne 0x438b61
or eax, 0xffffffff
jmp 0x438b67
sub eax, dword [esp + 0x14]
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00407aa0
mov ecx, dword [esp + 0x34]
push eax
mov byte [esp + 0x4c4], 5
call fcn.00404410
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x4c0], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x438bb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4a440c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a440c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x20]
push str._c:_s
push edx
mov byte [esp + 0x4d0], 6
call fcn.00402e30
push 0x104
lea eax, [esp + 0x3c4]
push 0
push eax
mov dword [esp + 0x40], 0x104
call sub.MSVCR90.dll_memset
mov edi, dword [esp + 0x34]
add esp, 0x1c
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x28]
push ecx
mov esi, eax
push edx
lea eax, [esp + 0x3bc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x60]
push 3
lea edx, [esp + 0x3b4]
mov dword [esp + 0x60], ecx
push edx
lea ecx, [esp + 0x64]
call fcn.00401920
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
mov bl, 7
push str.SERIAL
mov byte [esp + 0x4c8], bl
call fcn.004062c0
mov eax, dword [esp + 0x60]
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0x4cc], 8
call fcn.004062c0
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x4cc], bl
call fcn.004382a0
add esp, 0xc
mov ecx, dword [esp + 0x40]
push eax
mov byte [esp + 0x4c4], 9
call fcn.00404410
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x4c0], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x438cdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x60]
cmp eax, ecx
je 0x438cf9
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea eax, [edi - 0x10]
mov byte [esp + 0x4c0], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x438d1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x4c0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438d45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x4c0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438d6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x4c0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438d95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x4c0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438dbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.00473c8a
add esp, 0x4b0
ret