Function at 0x420760
Capabilities:
Copy file
Create directory
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46f338
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x48b370]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x48b370]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x58]
mov edx, dword [eax]
lea ecx, [ebx + 0x58]
mov dword [esp + 0x24], ebx
call edx
test al, al
jne 0x4208e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x34]
push eax
call fcn.00403575
push esi
push ecx
lea ecx, [esp + 0x3c]
push 0x4768dc
push ecx
mov dword [esp + 0x240], 0
call fcn.0040667a
add esp, 0xc
push eax
call fcn.004027f8
push str.firefox_installer::install
lea ecx, [esp + 0x10c]
call fcn.0040258f
push str.firefox_installer.cpp
lea ecx, [esp + 0x128]
mov byte [esp + 0x234], 1
call fcn.0040258f
lea edx, [esp + 0xec]
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x234], 2
call fcn.00403624
push eax
lea eax, [esp + 0x10c]
push eax
push 0x16
push 2
mov byte [esp + 0x240], 3
call fcn.00439dc3
lea ecx, [esp + 0x134]
mov ebx, eax
call fcn.00439e02
lea ecx, [esp + 0xec]
mov byte [esp + 0x230], 2
call fcn.004025cc
lea ecx, [esp + 0x124]
mov byte [esp + 0x230], 1
call fcn.004025cc
lea ecx, [esp + 0x108]
mov byte [esp + 0x230], 0
call fcn.004025cc
lea ecx, [esp + 0x84]
mov dword [esp + 0x230], 0xffffffff
call fcn.004035e1
lea ecx, [esp + 0x84]
call fcn.00402925
mov eax, 1
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0044cdc7
mov esp, ebp
pop ebp
ret
push 0x24
mov dword [esp + 0x20], 0
call fcn.0044d42e
add esp, 4
test eax, eax
je 0x420ebf
mov dword [eax], eax
mov dword [esp + 0x18], eax
mov dword [eax + 4], eax
lea ecx, [esp + 0x124]
add ebx, 0x5c
push 0x4779d8
push ecx
mov dword [esp + 0x238], 5
mov dword [esp + 0x1c], ebx
call fcn.0040680b
add esp, 8
lea edi, [esp + 0x18]
mov ecx, eax
mov byte [esp + 0x230], 6
call fcn.004287d0
lea esi, [esp + 0x124]
mov byte [esp + 0x230], 5
call fcn.004026c0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
cmp ecx, eax
je 0x420e6e
mov eax, dword [esp + 0x10]
xor edx, edx
push 0xffffffffffffffff
mov ebx, 7
add eax, 8
push edx
lea ecx, [esp + 0xf4]
mov dword [esp + 0x108], ebx
mov dword [esp + 0x104], 0
mov word [esp + 0xf4], dx
call fcn.00403f7d
mov byte [esp + 0x230], bl
mov eax, dword [esp + 0xfc]
mov esi, eax
cmp eax, 2
jb 0x4209b4
lea esi, [ebx - 5]
cmp dword [esp + 0x100], 8
mov edx, dword [esp + 0xec]
jae 0x4209cc
lea edx, [esp + 0xec]
mov ecx, 0x476fdc
test esi, esi
je 0x4209f0
mov di, word [edx]
cmp di, word [ecx]
jne 0x4209e8
add edx, 2
add ecx, 2
dec esi
jne 0x4209d5
jmp 0x4209f0
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jne 0x4209fd
cmp eax, 2
jb 0x420a05
xor ecx, ecx
cmp eax, 2
setne cl
test ecx, ecx
je 0x420e42
push 0x476fd8
mov edi, 1
lea ecx, [esp + 0xf0]
call fcn.0040d300
test eax, eax
je 0x420e42
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x1b0]
push 0x4768d4
push eax
call fcn.0040680b
lea ecx, [esp + 0xf4]
push ecx
lea edx, [esp + 0x210]
mov ebx, 8
push edx
mov ecx, eax
mov byte [esp + 0x240], bl
call fcn.0040d1e0
push eax
lea eax, [esp + 0x11c]
push eax
mov edx, 0x478928
mov byte [esp + 0x248], 9
call fcn.0040d250
add esp, 0x18
lea esi, [esp + 0x204]
mov byte [esp + 0x230], 0xb
call fcn.004026c0
lea esi, [esp + 0x1b0]
mov byte [esp + 0x230], 0xc
call fcn.004026c0
mov eax, dword [esp + 0x108]
cmp dword [esp + 0x11c], ebx
jae 0x420ab9
lea eax, [esp + 0x108]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call esi
push str._staged
mov edi, 7
lea eax, [esp + 0x10c]
call fcn.0040504b
mov eax, dword [esp + 0x108]
cmp dword [esp + 0x11c], ebx
jae 0x420af1
lea eax, [esp + 0x108]
push 0
push eax
call esi
lea eax, [esp + 0xd0]
call fcn.0040264e
lea ecx, [esp + 0x178]
push str.extension_b5m.com.xpi
push ecx
lea ebx, [esp + 0x110]
mov byte [esp + 0x238], 0xd
call fcn.0040680b
add esp, 8
mov esi, eax
lea edx, [esp + 0xd0]
mov byte [esp + 0x230], 0xe
cmp edx, esi
je 0x420bc9
mov edi, 8
cmp dword [esp + 0xe4], edi
jb 0x420b5d
mov eax, dword [esp + 0xd0]
push eax
call fcn.0044cdbc
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0xe4], 7
mov dword [esp + 0xe0], ebx
mov word [esp + 0xd0], cx
cmp dword [esi + 0x14], edi
jae 0x420b9b
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0xd4]
push esi
push eax
call fcn.0044cf60
add esp, 0xc
jmp 0x420ba6
mov ecx, dword [esi]
mov dword [esp + 0xd0], ecx
mov dword [esi], ebx
mov edx, dword [esi + 0x10]
mov dword [esp + 0xe0], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0xe4], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
lea esi, [esp + 0x178]
mov byte [esp + 0x230], 0xd
call fcn.004026c0
mov edi, dword [esp + 0x24]
lea ecx, [edi + 0x94]
lea edx, [esp + 0xd0]
call fcn.00428980
lea edx, [esp + 0x1e8]
push str.extension_b5m.com.json
push edx
lea ebx, [esp + 0x110]
call fcn.0040680b
add esp, 8
mov esi, eax
lea eax, [esp + 0xd0]
mov byte [esp + 0x230], 0xf
cmp eax, esi
je 0x420cbb
mov ebx, 8
cmp dword [esp + 0xe4], ebx
jb 0x420c46
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.0044cdbc
add esp, 4
xor edx, edx
mov dword [esp + 0xe4], 7
mov dword [esp + 0xe0], 0
mov word [esp + 0xd0], dx
cmp dword [esi + 0x14], ebx
jae 0x420c85
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
lea ecx, [esp + 0xd4]
push esi
push ecx
call fcn.0044cf60
add esp, 0xc
jmp 0x420c94
mov edx, dword [esi]
mov dword [esp + 0xd0], edx
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0xe0], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0xe4], ecx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
lea esi, [esp + 0x1e8]
mov byte [esp + 0x230], 0xd
call fcn.004026c0
lea ecx, [edi + 0x78]
lea edx, [esp + 0xd0]
call fcn.00428980
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x15c]
push 0x4768d4
push eax
call fcn.0040680b
lea ecx, [esp + 0xf4]
push ecx
lea edx, [esp + 0x14c]
push edx
mov ecx, eax
mov byte [esp + 0x240], 0x10
call fcn.0040d1e0
push eax
lea eax, [esp + 0x138]
push eax
mov edx, str._b5t.modules_b5t
mov byte [esp + 0x248], 0x11
call fcn.0040d250
add esp, 0x18
lea esi, [esp + 0x140]
mov byte [esp + 0x230], 0x13
call fcn.004026c0
lea esi, [esp + 0x15c]
mov byte [esp + 0x230], 0x14
call fcn.004026c0
lea ecx, [esp + 0x124]
call fcn.00428b90
lea ecx, [esp + 0x1cc]
push str.B5TAdaptorFx.dll
push ecx
lea ebx, [esp + 0x12c]
call fcn.0040680b
mov esi, eax
lea edx, [esp + 0x19c]
push str.NaMsgHostB5TAdaptorFx.dll
lea ebx, [edi + 4]
push edx
mov byte [esp + 0x240], 0x15
call fcn.0040680b
mov edi, eax
push esi
mov byte [esp + 0x244], 0x16
call fcn.0040d3a0
add esp, 0x14
test al, al
je 0x420dc1
mov ecx, esi
mov edx, edi
call fcn.00409e40
test al, al
jne 0x420dde
mov eax, 8
cmp dword [esi + 0x14], eax
jb 0x420dcd
mov esi, dword [esi]
cmp dword [edi + 0x14], eax
jb 0x420dd4
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea esi, [esp + 0x194]
mov byte [esp + 0x230], 0x15
call fcn.004026c0
lea esi, [esp + 0x1cc]
mov byte [esp + 0x230], 0x14
call fcn.004026c0
lea esi, [esp + 0x124]
mov byte [esp + 0x230], 0xd
call fcn.004026c0
lea esi, [esp + 0xd0]
mov byte [esp + 0x230], 0xc
call fcn.004026c0
lea esi, [esp + 0x108]
mov byte [esp + 0x230], 7
call fcn.004026c0
lea esi, [esp + 0xec]
mov byte [esp + 0x230], 5
call fcn.004026c0
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x18]
jne 0x420965
mov eax, dword [esp + 0x18]
mov dword [esp + 0x230], 0xffffffff
mov edi, dword [eax]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esp + 0x1c], 0
cmp edi, eax
je 0x420eaf
lea esp, [esp]
mov ebx, dword [edi]
lea esi, [edi + 8]
call fcn.004026c0
push edi
call fcn.0044cdbc
add esp, 4
mov edi, ebx
cmp ebx, dword [esp + 0x18]
jne 0x420e90
mov eax, dword [esp + 0x18]
push eax
call fcn.0044cdbc
add esp, 4
xor eax, eax
jmp 0x4208be
push 0
lea ecx, [esp + 0x2c]
call fcn.00401000
push 0x47fde4
lea ecx, [esp + 0x2c]
push ecx
call fcn.00451e4c
int3