Function at 0x40b360
Capabilities:
Encode data using xor
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5058a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x34], 0
push edi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
push 0x104
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x168]
mov dword [ebp - 0x34], 1
push eax
call fcn.004e14f0
add esp, 0xc
lea eax, [ebp - 0x168]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40b675
mov dword [ebp - 0x18], 0xaacfb7
xor ecx, ecx
mov byte [ebp - 0x14], 1
lea esp, [esp]
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 3
jb 0x40b3f0
xor eax, eax
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea edx, [ecx + 1]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
jmp 0x40b420
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b420
sub ecx, edx
lea eax, [ebp - 0x18]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00402ae0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xf]
sub esp, 0x18
mov word [ebp - 0xf], 0x3a
mov edx, esp
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [ebp - 0x18], esp
lea edi, [ecx + 1]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b468
sub ecx, edi
lea eax, [ebp - 0xf]
push ecx
push eax
mov ecx, edx
call fcn.00402ae0
sub esp, 0x18
mov byte [ebp - 4], 2
mov edx, esp
lea ecx, [ebp - 0x168]
xor eax, eax
lea edi, [ecx + 1]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b4a2
sub ecx, edi
lea eax, [ebp - 0x168]
push ecx
push eax
mov ecx, edx
call fcn.00402ae0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0040ab40
add esp, 0x30
mov byte [ebp - 4], 3
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40b5a4
mov dword [ebp - 0x10], 0x100a9ce
xor ecx, ecx
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, 2
jb 0x40b4f5
mov edx, dword [edi + 0x10]
lea ecx, [ebp - 0x10]
mov byte [ebp - 0xd], 0
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b510
mov eax, closesocket
sub ecx, ebx
sub eax, edx
cmp eax, ecx
jb 0x40b688
cmp dword [edi + 0x14], 0x10
jb 0x40b530
mov edi, dword [edi]
push ecx
lea eax, [ebp - 0x10]
push eax
push edx
push edi
push ecx
push dword [ebp - 0x17]
lea ecx, [ebp - 0x5c]
call fcn.004720e0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], 3
cmp ecx, 0x10
jb 0x40b57e
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b574
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b68d
push ecx
push edx
call fcn.004df511
add esp, 8
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x1c], eax
jmp 0x40b5aa
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], 0
lea edx, [ebp - 0x30]
cmp eax, 0x10
jb 0x40b5bb
mov edx, ecx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40b63d
push 0x104
lea eax, [ebp - 0x270]
push 0
push eax
call fcn.004e14f0
add esp, 0xc
mov dword [ebp - 0x10], 0x100add1
xor ecx, ecx
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, 2
jb 0x40b5f5
push dword [ebp - 0x38]
lea eax, [ebp - 0x10]
mov byte [ebp - 0xd], 0
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.00402f70
lea ecx, [ebp - 0x270]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b625
sub ecx, edx
lea eax, [ebp - 0x270]
push ecx
push eax
mov ecx, esi
call fcn.0046a350
lea ecx, [ebp - 0x44]
call fcn.0046c860
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x10
jb 0x40b675
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b66b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b68d
push ecx
push edx
call fcn.004df511
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00402270
call fcn.004e47b0
int3