Function at 0x4df3c4
Capabilities:
Copy file
Enumerate files on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1a
push 0
push 0
dec ecx
jne 0x4df3cc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e0365
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 0x4e037c
call fcn.004046f0
mov dl, 1
mov eax, dword [0x465adc]
call fcn.00465bdc
mov dword [ebp - 0xc], eax
xor esi, esi
mov eax, dword [ebp - 4]
cmp byte [eax + 0x20], 0
je 0x4df42c
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0x2011f
mov esi, pe_nt_image_headers32
jmp 0x4df436
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0x2001f
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0xc]
call fcn.00465cb8
mov eax, dword [ebp - 4]
mov bl, byte [eax + 4]
xor eax, eax
mov al, bl
cmp eax, 0x16
ja case.0x4df457.12
jmp dword [eax*4 + 0x4df45e]
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
push ebp
push 0x4df51f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov cl, 1
mov eax, dword [ebp - 0xc]
call fcn.00465d20
test al, al
je 0x4df4ed
mov eax, dword [ebp - 0xc]
call fcn.00465c88
jmp 0x4df512
push 0x4e0388
mov eax, dword [ebp - 4]
push dword [eax + 0x18]
push 0x4e0394
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 3
call fcn.00404a14
mov eax, dword [ebp - 8]
inc dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e0332
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
push ebp
push 0x4df669
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov cl, 1
mov eax, dword [ebp - 0xc]
call fcn.00465d20
test al, al
je 0x4df614
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
call fcn.00404b4c
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x4df60a
push 0x4e0388
mov eax, dword [ebp - 4]
push dword [eax + 0x1c]
push 0x4e03d8
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00409184
push dword [ebp - 0x20]
push 0x4e03f8
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040c170
push dword [ebp - 0x24]
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 6
call fcn.00404a14
mov eax, dword [ebp - 8]
inc dword [eax]
mov eax, dword [ebp - 0xc]
call fcn.00465c88
jmp 0x4df65f
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0x4e0388
mov eax, dword [ebp - 4]
push dword [eax + 0x18]
push 0x4e0404
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.00409184
push dword [ebp - 0x28]
push 0x4e0424
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.0040c170
push dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 6
call fcn.00404a14
mov eax, dword [ebp - 8]
inc dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4df6a9
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
jmp 0x4e0332
lea eax, [ebp - 0x14]
push eax
or esi, 2
push esi
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.00404b4c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x4df729
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
call fcn.00404f1c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
push 0
mov eax, dword [ebp - 0x18]
call fcn.00404f2c
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 8]
mov dword [eax], ebx
jmp 0x4e0332
push 0x4e0388
mov eax, dword [ebp - 4]
push dword [eax + 0x1c]
push 0x4e0454
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.00409184
push dword [ebp - 0x30]
push 0x4e03f8
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.0040c170
push dword [ebp - 0x34]
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 6
call fcn.00404a14
mov eax, dword [ebp - 8]
mov dword [eax], ebx
jmp 0x4e0332
cmp dword [0x4e8688], 0
jne 0x4df795
push 0x4e0470
push 0x4e0480
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8688], eax
cmp dword [0x4e8688], 0
je 0x4e033a
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.00404b4c
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
je 0x4df814
push 0x4e0388
mov eax, dword [ebp - 4]
push dword [eax + 0x18]
push 0x4e0498
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.00409184
push dword [ebp - 0x38]
push 0x4e03f8
lea edx, [ebp - 0x3c]
mov eax, ebx
call fcn.0040c170
push dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 6
call fcn.00404a14
mov eax, dword [ebp - 8]
mov dword [eax], ebx
jmp 0x4e0332
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
call fcn.00404f1c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_lstrlenA_1
mov edx, eax
lea eax, [ebp - 0x1c]
call fcn.004052a0
mov eax, dword [ebp - 0x1c]
call fcn.00404f3c
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404f2c
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404f3c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar_1
mov eax, dword [ebp - 0x1c]
call fcn.00404f2c
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404f2c
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [0x4e8688]
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
jmp 0x4e0332
xor eax, eax
push ebp
push 0x4df90c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00465e44
test al, al
jne 0x4df8ff
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0x4e0388
mov eax, dword [ebp - 4]
push dword [eax + 0x18]
push 0x4e04b4
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.00409184
push dword [ebp - 0x40]
push 0x4e03f8
lea edx, [ebp - 0x44]
mov eax, ebx
call fcn.0040c170
push dword [ebp - 0x44]
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 6
call fcn.00404a14
mov eax, dword [ebp - 8]
inc dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e0332
xor eax, eax
push ebp
push 0x4dfa32
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov cl, 1
mov eax, dword [ebp - 0xc]
call fcn.00465d20
test al, al
je 0x4df9da
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00465fbc
test al, al
jne 0x4df9d0
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0x4e0388
mov eax, dword [ebp - 4]
push dword [eax + 0x1c]
push 0x4e04f0
lea edx, [ebp - 0x48]
mov eax, ebx
call fcn.00409184
push dword [ebp - 0x48]
push 0x4e03f8
lea edx, [ebp - 0x4c]
mov eax, ebx
call fcn.0040c170
push dword [ebp - 0x4c]
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 6
call fcn.00404a14
mov eax, dword [ebp - 8]
inc dword [eax]
mov eax, dword [ebp - 0xc]
call fcn.00465c88
jmp 0x4dfa25
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0x4e0388
mov eax, dword [ebp - 4]
push dword [eax + 0x18]
push 0x4e0404
lea edx, [ebp - 0x50]
mov eax, ebx
call fcn.00409184
push dword [ebp - 0x50]
push 0x4e0424
lea edx, [ebp - 0x54]
mov eax, ebx
call fcn.0040c170
push dword [ebp - 0x54]
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 6
call fcn.00404a14
mov eax, dword [ebp - 8]
inc dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e0332
xor eax, eax
push ebp
push 0x4dfaf3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.004096d4
test al, al
jne 0x4dfae6
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0x4e0388
mov eax, dword [ebp - 4]
push dword [eax + 0x18]
push 0x4e0534
lea edx, [ebp - 0x58]
mov eax, ebx
call fcn.00409184
push dword [ebp - 0x58]
push 0x4e0424
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.0040c170
push dword [ebp - 0x5c]
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 6
call fcn.00404a14
mov eax, dword [ebp - 8]
inc dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e0332
xor eax, eax
push ebp
push 0x4dfbdd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.00402ba8
call fcn.004028e0
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.004095cc
test al, al
je 0x4dfbd0
push 0x4e0388
mov eax, dword [ebp - 4]
push dword [eax + 0x18]
push 0x4e0578
lea edx, [ebp - 0x64]
mov eax, ebx
call fcn.00409184
push dword [ebp - 0x64]
push 0x4e0424
lea edx, [ebp - 0x68]
mov eax, ebx
call fcn.0040c170
push dword [ebp - 0x68]
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 6
call fcn.00404a14
mov eax, dword [ebp - 8]
inc dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e0332
xor eax, eax
push ebp
push 0x4dfd13
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.004095f0
test al, al
jne 0x4dfcac
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0x4e0388
mov eax, dword [ebp - 4]
push dword [eax + 0x18]
push 0x4e05cc
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00409184
push dword [ebp - 0x70]
push 0x4e0424
lea edx, [ebp - 0x74]
mov eax, ebx
call fcn.0040c170
push dword [ebp - 0x74]
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 6
call fcn.00404a14
mov eax, dword [ebp - 8]
inc dword [eax]
jmp 0x4dfd06
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.004095cc
test al, al
jne 0x4dfd06
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0x4e0388
mov eax, dword [ebp - 4]
push dword [eax + 0x18]
push 0x4e05ec
lea edx, [ebp - 0x78]
mov eax, ebx
call fcn.00409184
push dword [ebp - 0x78]
push 0x4e0424
lea edx, [ebp - 0x7c]
mov eax, ebx
call fcn.0040c170
push dword [ebp - 0x7c]
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 6
call fcn.00404a14
mov eax, dword [ebp - 8]
inc dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e0332
cmp bl, 8
sete byte [ebp - 0xd]
xor eax, eax
push ebp
push 0x4dfe51
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetLastError
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
call fcn.00409790
mov eax, dword [ebp - 0x84]
call fcn.004095f0
cmp byte [ebp - 0xd], 1
cmc
sbb eax, eax
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
call fcn.00404b4c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.00404b4c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4dfe44
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0x4e0388
mov eax, dword [ebp - 4]
push dword [eax + 0x18]
push 0x4e0630
lea ecx, [ebp - 0x88]
mov dl, 1
mov al, byte [ebp - 0xd]
call fcn.00409460
push dword [ebp - 0x88]
push 0x4e0644
lea edx, [ebp - 0x8c]
mov eax, ebx
call fcn.00409184
push dword [ebp - 0x8c]
push 0x4e0424
lea edx, [ebp - 0x90]
mov eax, ebx
call fcn.0040c170
push dword [ebp - 0x90]
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 8
call fcn.00404a14
mov eax, dword [ebp - 8]
inc dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e0332
xor eax, eax
push ebp
push 0x4dff5e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.004096ec
test al, al
jne 0x4dff51
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0x4e0388
mov eax, dword [ebp - 4]
push dword [eax + 0x18]
push 0x4e0688
lea edx, [ebp - 0x9c]
mov eax, ebx
call fcn.00409184
push dword [ebp - 0x9c]
push 0x4e0424
lea edx, [ebp - 0xa0]
mov eax, ebx
call fcn.0040c170
push dword [ebp - 0xa0]
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 6
call fcn.00404a14
mov eax, dword [ebp - 8]
inc dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e0332
xor eax, eax
push ebp
push 0x4e007c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 8]
add eax, 0xc
mov ecx, 0x140
xor edx, edx
call fcn.00403130
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.00404b4c
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, dword [ebp - 8]
cmp ebx, 0xffffffff
jne 0x4e006f
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0x4e0388
mov eax, dword [ebp - 4]
push dword [eax + 0x18]
push 0x4e06cc
lea edx, [ebp - 0xa8]
mov eax, ebx
call fcn.00409184
push dword [ebp - 0xa8]
push 0x4e0424
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.0040c170
push dword [ebp - 0xac]
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 6
call fcn.00404a14
mov eax, dword [ebp - 8]
inc dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e0332
xor eax, eax
push ebp
push 0x4e0150
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 8]
add eax, 0xc
mov ecx, 0x140
xor edx, edx
call fcn.00403130
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
je 0x4e013b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
jmp 0x4e0143
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 8], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e0332
xor eax, eax
push ebp
push 0x4e0292
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 8]
add eax, 0xc
mov ecx, 0x140
xor edx, edx
call fcn.00403130
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_FindClose_1
test eax, eax
je 0x4e0219
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 8], edx
jmp 0x4e0285
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0x4e0388
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xbc]
call fcn.004091b4
push dword [ebp - 0xbc]
push 0x4e0748
lea edx, [ebp - 0xc0]
mov eax, ebx
call fcn.00409184
push dword [ebp - 0xc0]
push 0x4e0424
lea edx, [ebp - 0xc4]
mov eax, ebx
call fcn.0040c170
push dword [ebp - 0xc4]
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 6
call fcn.00404a14
mov eax, dword [ebp - 8]
inc dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e0332
lea edx, [ebp - 0xd0]
xor eax, eax
mov al, bl
call fcn.00409184
mov ecx, dword [ebp - 0xd0]
mov eax, dword [ebp - 8]
add eax, 4
mov edx, 0x4e079c
call fcn.004049a0
mov eax, dword [ebp - 8]
inc dword [eax]
mov eax, dword [ebp - 0xc]
call fcn.00403870
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e036c
lea eax, [ebp - 0xd0]
mov edx, 0x2d
call fcn.004046c0
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404dd0
ret