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

Disassembly:
push 0xffffffffffffffff
push 0x47adce
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
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 [0x4a643c]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, 0x4a643c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
push 0x480de0
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c4], 0
call fcn.00406300
push 0x480de0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c4], 1
call fcn.00406300
mov edx, dword [0x4a643c]
mov eax, dword [edx + 0xc]
or ebp, 0xffffffff
mov ecx, 0x4a643c
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.00402e80
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 0x439aef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Invalid_file_handle._Error_is__u_n
call fcn.00403170
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 0x439a7a
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 0x439aa1
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 0x439ac8
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 0x439ae8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x439ff1
lea ecx, [esp + 0x18c]
push ecx
push str.First_file_name_is__s_n
call fcn.00403170
add esp, 8
jmp 0x439b10
lea edx, [esp + 0x18c]
push edx
push str.Next_file_name_is__s_n
call fcn.00403170
lea eax, [esp + 0x194]
add esp, 8
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x439b30
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x190]
push eax
lea ecx, [esp + 0x24]
call fcn.004028b0
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 0x439b77
push esi
lea ecx, [esp + 0x20]
call fcn.00401e80
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 0x439d64
cmp esi, dword [ebp - 8]
jg 0x439d64
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 0x439d64
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x439d64
push 0xffffffffffffffff
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x40]
call fcn.00410410
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x3c]
jg 0x439c8b
mov ebx, dword [esp + 0x38]
jl 0x439c01
cmp dword [esp + 0x2c], ebx
jae 0x439c8b
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x439c71
mov edx, dword [0x4a643c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a643c
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.00402e80
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 0x439c71
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.00404450
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x160]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x439b10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x12
je 0x439d6e
push esi
push str.FindNextFile_error._Error_is__u_n
call fcn.00403170
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 0x439cf4
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 0x439d1c
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 0x439d44
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 0x439adc
push 0x80070057
call fcn.00401100
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jle 0x439ccc
push 0x2e
push eax
call dword [sym.imp.MSVCR90.dll_wcsrchr]
add esp, 8
test eax, eax
jne 0x439d91
or eax, 0xffffffff
jmp 0x439d97
sub eax, dword [esp + 0x14]
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00407d30
mov ecx, dword [esp + 0x34]
push eax
mov byte [esp + 0x4c4], 5
call fcn.00404450
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 0x439de0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4a643c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a643c
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.00402e80
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.00401930
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
mov bl, 7
push str.SERIAL
mov byte [esp + 0x4c8], bl
call fcn.00406300
mov eax, dword [esp + 0x60]
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0x4cc], 8
call fcn.00406300
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x4cc], bl
call fcn.004394d0
add esp, 0xc
mov ecx, dword [esp + 0x40]
push eax
mov byte [esp + 0x4c4], 9
call fcn.00404450
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 0x439f0c
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 0x439f29
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 0x439f4d
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 0x439f75
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 0x439f9d
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 0x439fc5
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 0x439fec
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.00475d76
add esp, 0x4b0
ret