Function at 0x421110
Capabilities:
Create thread
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450bcf
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x46718c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x468], edi
push 0x800
call dword [0x46704c]
push 0x208
lea eax, [ebp - 0x438]
push 0
push eax
call fcn.0042d3d0
add esp, 0xc
lea eax, [ebp - 0x438]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x421214
push 0x45f40c
lea eax, [ebp - 0x438]
push 0x104
push eax
call fcn.0043af8b
lea ecx, [ebp - 0x438]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4211a2
sub ecx, edx
mov dword [ebp - 0x464], str.version.dll
sar ecx, 1
lea eax, [ebp - 0x438]
mov edi, 0x104
mov dword [ebp - 0x460], str.cabinet.dll
xor esi, esi
sub edi, ecx
lea eax, [eax + ecx*2]
mov dword [ebp - 0x458], eax
nop dword [eax]
push dword [ebp + esi*4 - 0x464]
push edi
push eax
call fcn.0043affa
add esp, 0xc
test eax, eax
jne 0x421202
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [ebp - 0x458]
inc esi
cmp esi, 2
jb 0x4211e0
mov edi, dword [ebp - 0x468]
push 0
push 0x4ff
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
call fcn.00421e40
push eax
mov dword [0x469c90], eax
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
movzx eax, word [0x469c90]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
push 0x34
lea eax, [ebp - 0x4b8]
mov dword [ebp - method.eset::CFileVersionInfo.virtual_0], vtable.eset::CFileVersionInfo.0
push 0
push eax
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x480], 0
call fcn.0042d3d0
push dword [ebp - 0x484]
call fcn.0043030f
add esp, 0x10
mov dword [ebp - 0x484], 0
mov dword [ebp - 4], 1
call fcn.0041c100
mov dword [ebp - 0x458], eax
test eax, eax
je 0x421ca8
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x452384]
mov ecx, dword [ebp - 0x458]
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x458], esi
mov dword [ebp - 0x478], esi
mov byte [ebp - 4], 2
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x421302
push 0x104
lea ecx, [ebp - 0x478]
call fcn.0041ddb0
mov esi, dword [ebp - 0x478]
mov dword [ebp - 0x458], esi
cmp dword [esi - 8], 0x104
jl 0x421c9e
push 0x104
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
push eax
mov word [esi + 0x208], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x421415
push esi
lea ecx, [ebp - 0x4bc]
call fcn.0041e380
test eax, eax
je 0x4213d9
mov eax, dword [edi + 0x2c]
lea ecx, [edi + 0x2c]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
add eax, 0xffffff80
or eax, edx
jge 0x42136d
push 0x80
call fcn.0041ddb0
lea ecx, [edi + 0x2c]
mov edx, dword [ecx]
cmp dword [edx - 8], 0x80
jl 0x421c9e
mov dword [edx - 0xc], 0x80
mov eax, dword [ecx]
xor ecx, ecx
push 0x80
push edx
push ecx
mov word [eax + 0x100], cx
lea ecx, [ebp - 0x4bc]
call fcn.0041e4d0
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x4213ab
xor ecx, ecx
jmp 0x4213c1
push dword [eax - 8]
push eax
call fcn.0043bf00
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x421c9e
mov eax, dword [edi + 0x2c]
cmp ecx, dword [eax - 8]
jg 0x421c9e
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi + 0x2c]
mov word [eax + ecx*2], dx
push 0x34
lea eax, [ebp - 0x4b8]
mov dword [ebp - 0x47c], 0
push 0
push eax
mov dword [ebp - 0x480], 0
call fcn.0042d3d0
push dword [ebp - 0x484]
call fcn.0043030f
add esp, 0x10
mov dword [ebp - 0x484], 0
push dword [esi - 8]
push esi
call fcn.0043bf00
add esp, 8
test eax, eax
js 0x421c9e
cmp eax, dword [esi - 8]
jg 0x421c9e
xor ecx, ecx
mov dword [esi - 0xc], eax
push ecx
push str._EsetBootstrapperWnd
push ecx
push ecx
mov word [esi + eax*2], cx
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x42157b
lea ecx, [ebp - 0x474]
call fcn.00423e60
lea eax, [ebp - 0x464]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x474]
call fcn.00423bc0
lea ecx, [edi + 0xc8]
push eax
mov byte [ebp - 4], 4
call fcn.004243d0
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 3
call fcn.00423ee0
mov eax, dword [0x4696b8]
push 0x18
mov dword [ebp - 0x458], eax
call fcn.0042ad44
add esp, 4
mov ecx, eax
lea eax, [ebp - 0x474]
mov dword [ecx], 0
cmp ecx, eax
je 0x4214d3
mov eax, dword [ebp - 0x474]
mov dword [ecx], eax
mov al, byte [ebp - 0x470]
mov dword [ebp - 0x474], 0
mov byte [ecx + 4], al
mov al, byte [ebp - 0x46c]
mov byte [ecx + 4], 0
mov byte [ecx + 8], al
mov eax, dword [ebp - 0x458]
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0x422780
mov dword [ebp - 0x458], ecx
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 6
push eax
push 0
push ecx
push 0x4249d0
push 0
push 0
call fcn.0043c24c
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x464], ecx
test ecx, ecx
je 0x421cb7
cmp dword [edi + 0xc4], 0
mov dword [ebp - 0x458], 0
jne 0x421cb2
mov eax, dword [ebp - 0x460]
xorps xmm0, xmm0
mov dword [edi + 0xc0], ecx
lea ecx, [ebp - 0x474]
movlpd qword [ebp - 0x464], xmm0
mov dword [edi + 0xc4], eax
call fcn.00423c20
mov edi, 1
mov dword [ebp - 0x45c], edi
jmp 0x421c36
lea eax, [edi + 0xd0]
mov dword [ebp - 0x45c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea edi, [ebp - 0x13]
mov dword [ebp - 0x454], ecx
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
mov cl, dl
shl al, 2
add cl, al
mov eax, dword [ebp - 0x454]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [edi], al
mov eax, edx
mov dword [ebp - 0x454], eax
test eax, eax
jne 0x421598
push ecx
lea eax, [ebp - 0x13]
push eax
push edi
lea ecx, [ebp - 0x450]
call fcn.0040a2f0
mov edi, dword [ebp - 0x468]
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 7
cmp dword [ebp - 0x43c], 0x10
cmovae eax, dword [ebp - 0x450]
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x45c]
cmp byte [eax + 0x40], 0
je 0x42167f
add eax, 0x10
sub esp, 8
mov ecx, eax
mov dword [ebp - 0x454], eax
call fcn.00424320
mov ecx, eax
mov eax, dword [ebp - 0x454]
cmp dword [eax + 0x10], ecx
jb 0x421cc8
lfence
cmp dword [eax + 0x14], 0x10
mov edx, eax
jb 0x42163a
mov edx, dword [eax]
mov dword [eax + 0x10], ecx
sub esp, 8
mov byte [edx + ecx], 0
mov ecx, dword [ebp - 0x45c]
lea ecx, [ecx + 0x28]
call fcn.00424320
mov edx, eax
lea eax, [edi + 0xf8]
cmp dword [eax + 0x10], edx
lea ecx, [eax + 0x10]
jb 0x421cc8
cmp dword [eax + 0x14], 0x10
jb 0x421671
lfence
mov eax, dword [eax]
mov dword [ecx], edx
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x454]
jmp 0x421688
add eax, 0x10
mov dword [ebp - 0x454], eax
push 1
push 0x4604fc
mov ecx, eax
call fcn.00415180
mov ecx, dword [ebp - 0x46c]
mov edx, ecx
lea eax, [edx + 1]
mov dword [ebp - 0x45c], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x4216a7
sub edx, dword [ebp - 0x45c]
push edx
push ecx
mov ecx, dword [ebp - 0x454]
call fcn.00415180
lea eax, [edi + 0xf8]
push 1
push 0x4604fc
mov ecx, eax
mov dword [ebp - 0x45c], eax
call fcn.00415180
mov ecx, dword [ebp - 0x46c]
mov edx, ecx
lea eax, [edx + 1]
mov dword [ebp - 0x46c], eax
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4216f0
sub edx, dword [ebp - 0x46c]
push edx
push ecx
mov ecx, dword [ebp - 0x45c]
call fcn.00415180
lea ecx, [ebp - 0x450]
mov byte [edi + 0x110], 1
mov byte [ebp - 4], 2
call fcn.0040a810
lea ecx, [edi + 0xd0]
call fcn.0041fc60
mov eax, dword [0x469c90]
and eax, 0x3ff
mov ecx, eax
cmp ax, 1
je 0x421746
cmp ecx, 0xd
je 0x421746
xor al, al
jmp 0x421748
mov al, 1
mov ecx, edi
mov edx, 0x19
mov byte [ecx + edx], al
lea eax, [edi + 0x40]
mov dword [ebp - 0x454], eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x452384]
mov ecx, dword [ebp - 0x454]
call edi
mov eax, dword [ebp - 0x454]
mov ecx, dword [ebp - 0x468]
movaps xmm0, xmmword [0x461120]
sub ecx, 0xffffff80
push ecx
mov eax, dword [eax]
movups xmmword [ecx], xmm0
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x452384]
mov ecx, dword [ebp - 0x454]
call edi
mov edi, dword [ebp - 0x468]
mov edx, dword [edi + 0x74]
lea ecx, [edi + 0x70]
mov eax, edx
mov dword [ebp - 0x45c], edx
sub eax, dword [ecx]
sar eax, 6
mov dword [ebp - 0x46c], eax
cmp eax, 7
jbe 0x4217ce
mov eax, dword [ecx]
add eax, 0x1c0
mov dword [ecx + 4], eax
jmp 0x421823
jae 0x421823
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
sar eax, 6
cmp eax, 7
jae 0x4217ea
sub esp, 8
call fcn.00424750
lea ecx, [edi + 0x70]
jmp 0x421823
mov eax, 7
sub eax, dword [ebp - 0x46c]
mov dword [ebp - 0x46c], eax
je 0x421820
shl eax, 6
push eax
push 0
push edx
call fcn.0042d3d0
mov eax, dword [ebp - 0x46c]
lea ecx, [edi + 0x70]
mov edx, dword [ebp - 0x45c]
add esp, 0xc
shl eax, 6
add edx, eax
mov dword [ecx + 4], edx
mov eax, dword [ecx + 4]
xorps xmm2, xmm2
mov edx, dword [ecx]
mov dword [ebp - 0x46c], eax
cmp edx, eax
je 0x4218ee
movsd xmm3, qword [0x4610b0]
lea ecx, [edx + 0x38]
movaps xmm4, xmmword [0x461150]
mov esi, eax
movss xmm5, dword [0x461190]
movsd xmm6, qword [0x4610c0]
movss xmm7, dword [0x4610d0]
movsd qword [ebp - 0x464], xmm3
nop dword [eax]
mov eax, dword [edi + 0x88]
sub eax, dword [edi + 0x80]
lea edi, [ebp - 0x470]
mov dword [edx], 0x420780
movsd qword [ecx - 0x28], xmm6
mov byte [ecx - 8], 0
movd xmm0, eax
lea eax, [ebp - 0x464]
cvtdq2pd xmm0, xmm0
comisd xmm3, xmm0
movsd qword [ebp - 0x470], xmm0
cmovbe eax, edi
mov edi, dword [ebp - 0x468]
add edx, 0x40
movsd xmm0, qword [eax]
movsd qword [ecx], xmm0
movaps xmm1, xmm0
movhpd xmm1, qword [ecx]
movaps xmm0, xmm2
mulpd xmm1, xmm4
xorps xmm0, xmm5
addss xmm2, xmm7
cvtss2sd xmm0, xmm0
movups xmmword [ecx - 0x20], xmm1
movsd qword [ecx - 0x30], xmm0
add ecx, 0x40
cmp edx, esi
jne 0x421870
mov esi, dword [ebp - 0x458]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x208
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.0042d3d0
mov ecx, dword [ebp - 0x45c]
lea eax, [ebp - 0x230]
push 0x104
push eax
mov edx, 0x82
call fcn.00424b00
lea edx, [ebp - 0x230]
add esp, 0x14
lea eax, [edx + 2]
lea ecx, [edi + 0x20]
mov dword [ebp - 0x458], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x421940
sub edx, dword [ebp - 0x458]
lea eax, [ebp - 0x230]
sar edx, 1
push edx
push eax
call fcn.0041de20
mov ecx, dword [ebp - 0x45c]
lea eax, [ebp - 0x230]
push 0x104
push eax
mov edx, 0x83
call fcn.00424b00
lea edx, [ebp - 0x230]
add esp, 8
lea eax, [edx + 2]
lea ecx, [edi + 0x28]
mov dword [ebp - 0x458], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x421991
sub edx, dword [ebp - 0x458]
lea eax, [ebp - 0x230]
sar edx, 1
push edx
push eax
call fcn.0041de20
mov eax, dword [edi + 0x40]
lea ecx, [edi + 0x90]
movaps xmm0, xmmword [0x461140]
movups xmmword [ecx], xmm0
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x452384]
mov ecx, dword [ebp - 0x454]
call edi
mov eax, dword [ebp - 0x468]
add eax, 0x30
mov dword [ebp - 0x454], eax
push str._EsetBootstrapperWnd
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x452384]
mov ecx, dword [ebp - 0x454]
call edi
mov eax, dword [ebp - 0x454]
mov ecx, dword [ebp - 0x468]
push 0
push 0
mov eax, dword [eax]
push 0
mov edi, dword [eax + 0x24]
lea eax, [ecx + 0x90]
push eax
push 0x80000000
push dword [ecx + 0x2c]
mov ecx, edi
push str._EsetBootstrapperWnd
push 8
call dword [0x452384]
mov ecx, dword [ebp - 0x454]
call edi
mov edi, dword [ebp - 0x468]
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x46c], eax
call fcn.0041d2a0
test al, al
jne 0x421a96
mov eax, dword [0x4696c8]
mov dword [ebp - 0x458], 2
mov dword [ebp - 0x460], eax
test eax, eax
je 0x421a96
push 4
lea ecx, [ebp - 0x458]
push ecx
push 0x21
push dword [ebp - 0x46c]
mov ecx, eax
call dword [0x452384]
call dword [ebp - 0x460]
test eax, eax
js 0x421a96
mov al, 1
jmp 0x421a98
xor al, al
push 0
push 0x20
push 1
push dword [edi + 0x9c]
mov byte [edi + 0x1c], al
push dword [edi + 0x98]
call dword [sym.imp.GDI32.dll_CreateBitmap]
push 0x65
push dword [ebp - 0x45c]
mov dword [edi + 0xb4], eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edi, eax
mov eax, dword [ebp - 0x454]
push edi
push 1
push 0x80
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x454]
push edi
push 0
push 0x80
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [ebp - 0x468]
cmp dword [edi + 0x34], 0
jne 0x421b10
xor edi, edi
mov dword [ebp - 0x45c], edi
jmp 0x421c36
lea eax, [edi + 0x30]
push ecx
mov ecx, eax
mov dword [edi + 4], eax
call fcn.0041ca00
lea ecx, [ebp - 0x20]
call fcn.00423e60
lea eax, [ebp - 0x464]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x20]
call fcn.00423bc0
lea ecx, [edi + 0xc8]
push eax
mov byte [ebp - 4], 9
call fcn.004243d0
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 8
call fcn.00423ee0
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x460], eax
mov eax, dword [0x4696b8]
push 0x18
mov dword [ebp - 0x458], eax
call fcn.0042ad44
add esp, 4
mov ecx, eax
lea eax, [ebp - 0x20]
mov dword [ecx], 0
cmp ecx, eax
je 0x421b97
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov al, byte [ebp - 0x1c]
mov dword [ebp - 0x20], 0
mov byte [ecx + 4], al
mov al, byte [ebp - 0x18]
mov byte [ecx + 4], 0
mov byte [ecx + 8], al
mov eax, dword [ebp - 0x460]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x458]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0x422780
mov dword [ebp - 0x460], ecx
lea eax, [ebp - 0x46c]
mov byte [ebp - 4], 0xb
push eax
push 0
push ecx
push 0x4249d0
push 0
push 0
call fcn.0043c24c
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x470], ecx
test ecx, ecx
je 0x421cd2
cmp dword [edi + 0xc4], 0
mov dword [ebp - 0x460], 0
jne 0x421ccd
mov eax, dword [ebp - 0x46c]
xorps xmm0, xmm0
mov dword [edi + 0xc0], ecx
lea ecx, [ebp - 0x20]
mov dword [edi + 0xc4], eax
mov edi, 1
movlpd qword [ebp - 0x470], xmm0
mov dword [ebp - 0x45c], edi
call fcn.00423c20
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x421c63
lfence
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x452384]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x45c]
push 0x34
lea eax, [ebp - 0x4b8]
push 0
push eax
call fcn.0042d3d0
push dword [ebp - 0x484]
call fcn.0043030f
add esp, 0x10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ac9b
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0041be80
push 0x80004005
call fcn.0041be80
call fcn.0043c0b0
push 6
mov dword [ebp - 0x460], 0
call fcn.0042999a
call fcn.00402a60
call fcn.0043c0b0
push 6
mov dword [ebp - 0x46c], 0
call fcn.0042999a
int3