Function at 0x4379c0
Capabilities:
Check os version
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a9c
call fcn.00426320
push ebx
push esi
push edi
push eax
xor eax, eax
pop eax
je 0x4379d8
invalid
push 0x4af4d0
call fcn.00425a74
mov ebx, dword [ebp + 0x28]
add esp, 4
mov esi, eax
mov ecx, ebx
push 1
push esi
call fcn.00401a50
test al, al
je 0x437a12
mov eax, dword [ebx + 4]
push esi
push 0x4af4d0
push eax
call fcn.004012c0
add esp, 0xc
mov ecx, ebx
push esi
call fcn.00401a30
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [ebp - 4], eax
je 0x437a48
movsx ecx, byte [eax + 0xc]
push ecx
call fcn.00426194
add esp, 4
test eax, eax
je 0x438343
lea ecx, [ebp - 4]
call fcn.00407740
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x437a21
lea edx, [ebp - 0xc8]
mov dword [ebp - 0xc8], 0x94
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xb8], 2
jne 0x43830c
cmp dword [ebp - 0xc4], 5
jne 0x43830c
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x437a8c
cmp eax, 1
jne 0x43830c
mov eax, dword [0x4ba18c]
test eax, eax
je 0x437aa6
mov ecx, 0x4ba188
call fcn.004075c0
mov eax, dword [0x4ba18c]
jmp 0x437aab
mov eax, 0x482818
mov dl, byte [eax]
lea ecx, [ebp - 0x2c]
push ecx
push edx
call fcn.00431f00
test eax, eax
jge 0x437b45
mov ax, word [0x4af4d0]
mov ecx, 0x3f
mov word [ebp - 0x1d0], ax
xor eax, eax
lea edi, [ebp - 0x1ce]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4ba18c]
test eax, eax
je 0x437af7
mov ecx, 0x4ba188
call fcn.004075c0
mov eax, dword [0x4ba18c]
jmp 0x437afc
mov eax, 0x482818
movsx ecx, byte [eax]
push ecx
lea edx, [ebp - 0x1d0]
push 0x4a79a0
push edx
call fcn.00426734
lea eax, [ebp - 0x1d0]
push eax
call fcn.00425a74
add esp, 0x10
mov esi, eax
mov ecx, ebx
push 1
push esi
call fcn.00401a50
test al, al
je 0x438343
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x1d0]
push esi
push ecx
push edx
jmp 0x438333
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
add eax, edi
adc ecx, esi
cmp ecx, 0x200
jb 0x437bf1
ja 0x437b6b
test eax, eax
jbe 0x437bf1
mov ax, word [0x4af4d0]
mov ecx, 0x3f
mov word [ebp - 0x1d0], ax
xor eax, eax
lea edi, [ebp - 0x1ce]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4ba18c]
test eax, eax
je 0x437ba3
mov ecx, 0x4ba188
call fcn.004075c0
mov eax, dword [0x4ba18c]
jmp 0x437ba8
mov eax, 0x482818
movsx ecx, byte [eax]
push ecx
lea edx, [ebp - 0x1d0]
push str._C:__2_TB_
push edx
call fcn.00426734
lea eax, [ebp - 0x1d0]
push eax
call fcn.00425a74
add esp, 0x10
mov esi, eax
mov ecx, ebx
push 1
push esi
call fcn.00401a50
test al, al
je 0x438343
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x1d0]
push esi
push ecx
push edx
jmp 0x438333
call fcn.00438350
test eax, eax
mov dword [ebp - 0x30], eax
je 0x438343
mov ecx, dword [ebp - 0x14]
mov esi, str.SystemRoot_system32driversdiskprofile.sys
mov dword [eax + 0x8c], ecx
mov edx, dword [ebp - 0x28]
mov ecx, 0x16
lea edi, [ebp - 0x22c]
mov dword [eax + 0x90], edx
lea eax, [ebp - 0x22c]
rep movsd dword es:[edi], dword [esi]
push eax
push 0
movsw word es:[edi], word [esi]
call fcn.0043aa20
mov esi, eax
test esi, esi
je 0x437c4c
push 0x80
push esi
call fcn.0043ad60
push esi
call fcn.0043ac60
lea ecx, [ebp - 0x22c]
push 0x4a7900
push ecx
push 0
call fcn.0043ac10
mov esi, eax
test esi, esi
mov dword [ebp - 0x34], esi
je 0x437d9a
push 0x26
push esi
call fcn.0043ad60
push 0
push 0x51c88
push esi
call fcn.0043adb0
test eax, eax
jl 0x437dda
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
push 0
push 0
lea edi, [esi + 0x98]
push edi
push edx
call fcn.0043ae00
test eax, eax
mov dword [esi + 0x94], eax
je 0x437e1a
xor ebx, ebx
test eax, eax
jle 0x437d5d
mov esi, edi
cmp byte [ebp - 0x2c], 7
je 0x437cd0
mov ecx, dword [esi]
add ecx, 2
mov dword [esi], ecx
mov eax, dword [esi + 4]
adc eax, 0
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [ebp - 0x10]
push eax
push ecx
push 0
push edx
call fcn.00426700
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x437cfc
mov ecx, dword [esi]
cdq
add ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
adc eax, edx
jmp 0x437d0a
mov ecx, dword [esi]
neg eax
cdq
sub ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
sbb eax, edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
push 0
push eax
push ecx
push edx
call fcn.00426690
mov ecx, dword [esi]
add ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
adc eax, 0
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [ebp - 0x10]
push eax
push ecx
push 0
push edx
call fcn.00426700
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0xc], edx
inc ebx
mov ecx, dword [eax + 0x94]
add esi, 0x10
cmp ebx, ecx
jl 0x437cba
call fcn.004384a0
mov ebx, eax
test ebx, ebx
jne 0x437ed5
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0043ac60
push eax
xor eax, eax
pop eax
je 0x437d7d
invalid
mov edx, dword [ebp - 0x30]
push edx
call fcn.00478980
add esp, 4
call fcn.00439430
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push 0x4a78e8
call fcn.00425a74
add esp, 4
mov esi, eax
mov ecx, ebx
push 1
push esi
call fcn.00401a50
test al, al
je 0x437eb0
mov ecx, dword [ebx + 4]
push esi
push 0x4a78e8
push ecx
call fcn.004012c0
add esp, 0xc
mov ecx, ebx
push esi
call fcn.00401a30
jmp 0x437eb0
push 0x4a78e8
call fcn.00425a74
add esp, 4
mov edi, eax
mov ecx, ebx
push 1
push edi
call fcn.00401a50
test al, al
je 0x437eaa
mov edx, dword [ebx + 4]
push edi
push 0x4a78e8
push edx
call fcn.004012c0
add esp, 0xc
mov ecx, ebx
push edi
call fcn.00401a30
jmp 0x437eaa
mov ax, word [0x4af4d0]
mov ecx, 0x3f
mov word [ebp - 0x1d0], ax
xor eax, eax
lea edi, [ebp - 0x1ce]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4ba18c]
test eax, eax
je 0x437e52
mov ecx, 0x4ba188
call fcn.004075c0
mov eax, dword [0x4ba18c]
jmp 0x437e57
mov eax, 0x482818
movsx ecx, byte [eax]
push ecx
lea edx, [ebp - 0x1d0]
push str._C:_
push edx
call fcn.00426734
lea eax, [ebp - 0x1d0]
push eax
call fcn.00425a74
add esp, 0x10
mov edi, eax
mov ecx, ebx
push 1
push edi
call fcn.00401a50
test al, al
je 0x437ea7
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x1d0]
push edi
push ecx
push edx
call fcn.004012c0
add esp, 0xc
mov ecx, ebx
push edi
call fcn.00401a30
mov esi, dword [ebp - 0x34]
push esi
call fcn.0043ac60
push eax
xor eax, eax
pop eax
je 0x437eb8
invalid
mov eax, dword [ebp - 0x30]
push eax
call fcn.00478980
add esp, 4
call fcn.00439430
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [ebp - 4], eax
je 0x437f7a
lea ecx, [ebx + 0x18]
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0xcc]
mov ecx, dword [ebp + 0x28]
mov dword [0x4ba2b8], edx
mov al, byte [eax + 0xc]
lea edx, [ebp - 0x2a9c]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.00439ed0
test eax, eax
jl 0x4380cc
mov eax, dword [ebp - 0xd0]
mov edx, dword [ebp - 0xcc]
mov edi, eax
add eax, 0x2870
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 8]
mov ecx, 0xa1c
lea esi, [ebp - 0x2a9c]
add edx, 0x64
test eax, eax
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xcc], edx
je 0x437f67
push 0
push 0x64
push 0
push 0x64
call eax
lea ecx, [ebp - 4]
call fcn.00407740
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 4]
jne 0x437efb
mov al, byte [ebp + 0x10]
test al, al
je 0x437f88
or byte [ebx + 0x41b78], 1
mov al, byte [ebp + 0x14]
test al, al
je 0x437f96
or byte [ebx + 0x41b78], 2
mov al, byte [ebp + 0x24]
test al, al
je 0x437fa4
or byte [ebx + 0x41b78], 0x80
mov edx, dword [ebp + 0x18]
lea esi, [ebx + 0x41bf8]
push edx
push esi
call fcn.00406880
lea eax, [ebx + 0x41bb8]
push esi
push eax
call fcn.004150c0
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x437fd0
mov eax, 0x482818
push 0xf
lea edx, [ebx + 0x41c58]
push eax
push edx
call fcn.0042cbb0
mov ax, word [ebp + 0x20]
add esp, 0xc
mov word [ebx + 0x41c68], ax
push eax
xor eax, eax
pop eax
je 0x437ff5
invalid
lea edi, [ebx + 0x41c88]
xor esi, esi
cmp ebx, edi
mov eax, ebx
je 0x43800e
xor ecx, ecx
mov cl, byte [eax]
add esi, ecx
inc eax
cmp eax, edi
jne 0x438003
lea edi, [ebx + 0x10]
lea ecx, [ebx + 0x14]
mov eax, edi
cmp eax, ecx
je 0x438025
xor edx, edx
mov dl, byte [eax]
sub esi, edx
inc eax
cmp eax, ecx
jne 0x43801a
mov eax, dword [ebp - 0x30]
mov dword [edi], esi
push 0x41c88
push ebx
lea esi, [eax + 0xa98]
push 0x40
push esi
call fcn.00404c80
mov ecx, dword [ebp - 0x34]
push 0
push 0
push 0x41c88
push ebx
push ecx
call fcn.0043acf0
cmp eax, 0x41c88
je 0x43810b
push 0x4a78a0
call fcn.00425a74
mov edi, dword [ebp + 0x28]
add esp, 4
mov esi, eax
mov ecx, edi
push 1
push esi
call fcn.00401a50
test al, al
je 0x4380a8
mov eax, dword [edi + 4]
mov ecx, 0x4a78a0
test esi, esi
jbe 0x43809c
mov edx, esi
mov di, word [ecx]
add ecx, 2
mov word [eax], di
add eax, 2
dec edx
jne 0x43808a
mov edi, dword [ebp + 0x28]
mov edx, dword [edi + 4]
mov dword [edi + 8], esi
mov word [edx + esi*2], 0
push eax
xor eax, eax
pop eax
je 0x4380b0
invalid
push ebx
call fcn.00478980
mov eax, dword [ebp - 0x34]
add esp, 4
push eax
call fcn.0043ac60
push eax
xor eax, eax
pop eax
je 0x4380ca
invalid
jmp 0x4380ee
push eax
xor eax, eax
pop eax
je 0x4380d4
invalid
push ebx
call fcn.00478980
mov eax, dword [ebp - 0x34]
add esp, 4
push eax
call fcn.0043ac60
push eax
xor eax, eax
pop eax
je 0x4380ee
invalid
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00478980
add esp, 4
call fcn.00439430
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push eax
xor eax, eax
pop eax
je 0x438113
invalid
push ebx
call fcn.00478980
mov edx, dword [ebp - 0x34]
add esp, 4
push edx
call fcn.0043ac60
cmp dword [ebp - 0xc0], 1
sete al
push eax
call fcn.004386c0
test eax, eax
jge 0x43818f
push str._rY6R
call fcn.00425a74
mov ebx, dword [ebp + 0x28]
add esp, 4
mov esi, eax
mov ecx, ebx
push 1
push esi
call fcn.00401a50
test al, al
je 0x438182
mov eax, dword [ebx + 4]
mov ecx, str._rY6R
test esi, esi
jbe 0x438176
mov edx, esi
mov di, word [ecx]
add ecx, 2
mov word [eax], di
add eax, 2
dec edx
jne 0x438167
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], esi
mov word [ecx + esi*2], 0
push eax
xor eax, eax
pop eax
je 0x43818a
invalid
jmp 0x437d7d
mov edi, dword [ebp - 0x30]
push 0xa98
push edi
push 0x40
push esi
call fcn.00404c80
push edi
call fcn.00439240
test eax, eax
jge 0x43824d
push 0x4a7880
call fcn.00425a74
mov esi, dword [ebp + 0x28]
add esp, 4
mov ecx, esi
mov ebx, eax
call fcn.00401b80
cmp eax, ebx
jae 0x4381d0
call fcn.0046d8e0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4381f5
mov al, byte [ecx - 1]
test al, al
je 0x4381f5
cmp al, 0xff
je 0x4381f5
test ebx, ebx
jne 0x438219
dec al
push ebx
mov byte [ecx - 1], al
mov ecx, esi
call fcn.004017b0
jmp 0x43823f
test ebx, ebx
jne 0x438204
push 1
mov ecx, esi
call fcn.004017b0
jmp 0x43823f
mov eax, dword [esi + 0xc]
cmp eax, 0x1f
ja 0x438210
cmp eax, ebx
jae 0x438221
push 1
mov ecx, esi
call fcn.004017b0
push ebx
mov ecx, esi
call fcn.00401b90
mov eax, dword [esi + 4]
push ebx
push 0x4a7880
push eax
call fcn.004012c0
mov ecx, dword [esi + 4]
mov dword [esi + 8], ebx
add esp, 0xc
mov word [ecx + ebx*2], 0
push eax
xor eax, eax
pop eax
je 0x438247
invalid
push edi
jmp 0x437d81
push eax
xor eax, eax
pop eax
je 0x438255
invalid
push edi
call fcn.00478980
mov al, byte [0x4ba295]
add esp, 4
test al, al
je 0x438301
push eax
xor eax, eax
pop eax
je 0x438273
invalid
lea edx, [ebp + 0x10]
xor edi, edi
push edx
push 0x2001f
push edi
push str.SystemSelect
push reloc.WSOCK32.dll_bind
mov dword [ebp + 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x438301
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
lea ecx, [ebp + 0x24]
push eax
push ecx
push edi
push edi
push str.Current
push edx
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4382f3
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp + 0x24]
push eax
push ecx
push 4
push edi
push str.Default
push edx
call esi
test eax, eax
jne 0x4382f3
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 0x24]
push eax
push ecx
push 4
push edi
push str.LastKnownGood
push edx
call esi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x438301
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push 0x4a3804
call fcn.00425a74
add esp, 4
mov esi, eax
mov ecx, ebx
push 1
push esi
call fcn.00401a50
test al, al
je 0x438343
mov eax, dword [ebx + 4]
push esi
push 0x4a3804
push eax
call fcn.004012c0
add esp, 0xc
mov ecx, ebx
push esi
call fcn.00401a30
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x24