Function at 0x401032
Capabilities:
Access the windows event log
Get disk information
Query or enumerate registry key
Read .ini file

Disassembly:
jmp 0x401230
mov eax, 0x183c
call fcn.00404180
push ebx
push ebp
push esi
push edi
mov esi, edx
mov ebx, ecx
push 0x4342d8
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x468600
mov dl, 0x63
mov cl, 0x6c
push eax
mov dword [0x469fe0], eax
mov byte [0x468609], dl
mov dword [0x468600], 0x61636f4c
mov dword [0x468605], 0x6f6c6c41
mov byte [0x468604], cl
mov byte [0x46860a], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x469fd4], eax
mov ecx, dword [esi]
push ecx
push 0
call eax
mov edx, dword [esp + 0x14]
xor esi, esi
xor edi, edi
mov ebp, eax
cmp dword [edx], esi
jbe 0x40144c
nop
xor ecx, ecx
mov dword [0x4684c4], ecx
mov eax, dword [ebx]
movzx edx, byte [eax + edi]
mov byte [esp + 0x12], dl
movzx edx, byte [eax + edi + 1]
mov al, byte [eax + edi + 2]
mov byte [esp + 0x11], dl
mov byte [esp + 0x13], al
mov dword [esp + 0x1c], ecx
sub dword [esp + 0x1c], 0x789ec46a
cmp dword [0x469fe4], 0xb1
mov ecx, dword [esp + 0x1c]
mov dword [0x4685f8], ecx
mov edx, dword [ebx]
mov bl, byte [edx + edi + 3]
jne 0x40130d
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x50]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameW]
mov dl, bl
and dl, 0xf0
mov al, bl
add dl, dl
and al, 0xfc
add dl, dl
or byte [esp + 0x12], dl
shl al, 4
or byte [esp + 0x11], al
cmp dword [0x469fe4], 0x2c5
mov dword [0x43fce8], 0xa810d550
jne 0x401360
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
lea ecx, [esp + 0x38]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
cmp dword [0x469fe4], 0x6ac
jne 0x401384
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
xor eax, eax
shl bl, 6
cmp dword [0x469fe4], 0x30d
mov dword [0x4684c8], eax
mov dword [0x4684cc], eax
jne 0x4013db
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x54]
push edx
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x860]
push edx
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x1054]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
mov dl, byte [esp + 0x12]
mov al, byte [esp + 0x11]
mov byte [esi + ebp], dl
and bl, 0xc0
or byte [esp + 0x13], bl
mov byte [esi + ebp + 1], al
cmp dword [0x469fe4], 0x708
mov dword [0x469fd8], 0xcef226d6
mov dword [0x469fdc], 0xffffffff
jne 0x40142e
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
lea eax, [esp + 0x58]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
mov cl, byte [esp + 0x13]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov byte [esi + ebp + 2], cl
add edi, 4
add esi, 3
cmp edi, dword [edx]
jb 0x4012b0
cmp dword [0x469fe4], 0xdd1
jne 0x401493
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 0
push 0
lea eax, [esp + 0x1054]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov dword [ebx], ebp
cmp dword [0x469fe4], 0x691
jne 0x4014d1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommMask]
push 0
lea ecx, [esp + 0x50]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
mov edx, dword [esp + 0x14]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0x183c
ret
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x183c
ret